Class PartTypeRegistry
java.lang.Object
org.cyclops.integrateddynamics.core.part.PartTypeRegistry
- All Implemented Interfaces:
org.cyclops.cyclopscore.init.IRegistry,IPartTypeRegistry
Registry for
IPartType.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PartTypeRegistrygetPartType(net.minecraft.resources.ResourceLocation partName) Get the part type by unique name.<P extends IPartType<P,S>, S extends IPartState<P>>
Pregister(P partType) Register a new part type.
-
Method Details
-
getInstance
- Returns:
- The unique instance.
-
register
Description copied from interface:IPartTypeRegistryRegister a new part type.- Specified by:
registerin interfaceIPartTypeRegistry- Type Parameters:
P- The part type.S- The state type.- Parameters:
partType- The part type.- Returns:
- The registered part type.
-
getPartTypes
- Specified by:
getPartTypesin interfaceIPartTypeRegistry- Returns:
- All registered part types.
-
getPartType
Description copied from interface:IPartTypeRegistryGet the part type by unique name.- Specified by:
getPartTypein interfaceIPartTypeRegistry- Parameters:
partName- The unique part type name.- Returns:
- The associated part type or null.
-