public interface IBroomPartRegistry
extends org.cyclops.cyclopscore.init.IRegistry
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<BroomModifier,java.lang.Float> |
getBaseModifiersFromBroom(net.minecraft.item.ItemStack broomStack)
Get the broom base modifiers from the given itemstack.
|
<P extends IBroomPart> |
getBaseModifiersFromPart(P part)
Get the base modifiers for the given part.
|
java.util.Collection<IBroomPart> |
getBroomParts(net.minecraft.item.ItemStack broomStack)
Get the broom parts in the given itemstack.
|
<P extends IBroomPart> |
getItemsFromPart(P part)
Get the identifying items of the given part.
|
IBroomPart |
getPart(net.minecraft.util.ResourceLocation partId)
Get the part from the given id.
|
<P extends IBroomPart> |
getPartFromItem(net.minecraft.item.ItemStack item)
Get the part of the given item-form.
|
net.minecraft.util.ResourceLocation |
getPartModel(IBroomPart part)
Get the model resource location of the given part.
|
java.util.Collection<net.minecraft.util.ResourceLocation> |
getPartModels()
Get all registered model resource locations for the parts.
|
java.util.Collection<IBroomPart> |
getParts() |
java.util.Collection<IBroomPart> |
getParts(IBroomPart.BroomPartType type) |
<P extends IBroomPart> |
registerBaseModifiers(P part,
BroomModifier modifier,
float modifierValue)
Assign base modifier to the given part.
|
<P extends IBroomPart> |
registerBaseModifiers(P part,
java.util.Map<BroomModifier,java.lang.Float> modifiers)
Assign base modifiers to the given part.
|
<P extends IBroomPart> |
registerPart(P part)
Register a new broom part.
|
<P extends IBroomPart> |
registerPartItem(P part,
net.minecraft.item.ItemStack item)
Assign a part item to the given part.
|
void |
registerPartModel(IBroomPart part,
net.minecraft.util.ResourceLocation modelLocation)
Register a model resource location for the given part.
|
void |
setBroomParts(net.minecraft.item.ItemStack broomStack,
java.util.Collection<IBroomPart> broomParts)
Apply the given broom parts to the given itemstack.
|
<P extends IBroomPart> P registerPart(P part)
P - The type of part.part - The part.<P extends IBroomPart> void registerPartItem(@Nullable P part, net.minecraft.item.ItemStack item)
P - The type of part.part - The part.item - The item-form of this part.<P extends IBroomPart> void registerBaseModifiers(@Nullable P part, java.util.Map<BroomModifier,java.lang.Float> modifiers)
P - The type of part.part - The part.modifiers - The modifiers.<P extends IBroomPart> void registerBaseModifiers(@Nullable P part, BroomModifier modifier, float modifierValue)
P - The type of part.part - The part.modifier - The modifier.modifierValue - The modifier value.<P extends IBroomPart> java.util.Map<BroomModifier,java.lang.Float> getBaseModifiersFromPart(P part)
P - The part type.part - The part.java.util.Map<BroomModifier,java.lang.Float> getBaseModifiersFromBroom(net.minecraft.item.ItemStack broomStack)
broomStack - The broom item stack<P extends IBroomPart> java.util.Collection<net.minecraft.item.ItemStack> getItemsFromPart(P part)
P - The part type.part - The part.<P extends IBroomPart> P getPartFromItem(net.minecraft.item.ItemStack item)
P - The part type.item - The item-form of this part.java.util.Collection<IBroomPart> getParts()
IBroomPart getPart(net.minecraft.util.ResourceLocation partId)
partId - The unique part id.java.util.Collection<IBroomPart> getParts(IBroomPart.BroomPartType type)
type - The type of parts to retrieve.void registerPartModel(IBroomPart part, net.minecraft.util.ResourceLocation modelLocation)
part - The partmodelLocation - The model resource location.net.minecraft.util.ResourceLocation getPartModel(IBroomPart part)
part - The part.java.util.Collection<net.minecraft.util.ResourceLocation> getPartModels()
java.util.Collection<IBroomPart> getBroomParts(net.minecraft.item.ItemStack broomStack)
broomStack - The broom item stackvoid setBroomParts(net.minecraft.item.ItemStack broomStack,
java.util.Collection<IBroomPart> broomParts)
broomStack - The broom item stackbroomParts - The broom parts.