Interface IPartTypeRegistry
- All Superinterfaces:
org.cyclops.cyclopscore.init.IRegistry
- All Known Implementing Classes:
PartTypeRegistry
public interface IPartTypeRegistry
extends org.cyclops.cyclopscore.init.IRegistry
Registry for
IPartType
.-
Method Summary
Modifier and TypeMethodDescriptiongetPartType
(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
-
register
Register a new part type.- Type Parameters:
P
- The part type.S
- The state type.- Parameters:
partType
- The part type.- Returns:
- The registered part type.
-
getPartTypes
Collection<IPartType> getPartTypes()- Returns:
- All registered part types.
-
getPartType
Get the part type by unique name.- Parameters:
partName
- The unique part type name.- Returns:
- The associated part type or null.
-