public class BroomPartRegistry extends java.lang.Object implements IBroomPartRegistry
| Constructor and Description |
|---|
BroomPartRegistry() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.resources.model.ModelResourceLocation |
getPartModel(IBroomPart part)
Get the model resource location of the given part.
|
java.util.Collection<net.minecraft.client.resources.model.ModelResourceLocation> |
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> |
registerPart(P part)
Register a new broom part.
|
void |
registerPartModel(IBroomPart part,
net.minecraft.client.resources.model.ModelResourceLocation modelLocation)
Register a model resource location for the given part.
|
public <P extends IBroomPart> P registerPart(P part)
IBroomPartRegistryregisterPart in interface IBroomPartRegistryP - The type of part.part - The part.public java.util.Collection<IBroomPart> getParts()
getParts in interface IBroomPartRegistrypublic java.util.Collection<IBroomPart> getParts(IBroomPart.BroomPartType type)
getParts in interface IBroomPartRegistrytype - The type of parts to retrieve.public void registerPartModel(IBroomPart part, net.minecraft.client.resources.model.ModelResourceLocation modelLocation)
IBroomPartRegistryregisterPartModel in interface IBroomPartRegistrypart - The partmodelLocation - The model resource location.public net.minecraft.client.resources.model.ModelResourceLocation getPartModel(IBroomPart part)
IBroomPartRegistrygetPartModel in interface IBroomPartRegistrypart - The part.public java.util.Collection<net.minecraft.client.resources.model.ModelResourceLocation> getPartModels()
IBroomPartRegistrygetPartModels in interface IBroomPartRegistry