Object CustomBlockRegistry
-
- All Implemented Interfaces:
public class CustomBlockRegistry
-
-
Field Summary
Fields Modifier and Type Field Description private final Object2ObjectOpenHashMap<String, Int2ObjectOpenHashMap<Key>>DATASprivate final <Error class: unknown class>registryprivate final List<String>namesprivate final List<CustomBlockType<?>>typespublic final static CustomBlockRegistryINSTANCE
-
Method Summary
Modifier and Type Method Description final <T extends CustomBlockMechanic> CustomBlockType<CustomBlockMechanic>getByClass(Class<T> mechanicClass)final CustomBlockMechanicgetMechanic(String itemId)final CustomBlockMechanicgetMechanic(Block block)final CustomBlockMechanicgetMechanic(BlockData blockData)final <T extends CustomBlockMechanic> Unitregister(CustomBlockType<T> blockType)final <Error class: unknown class>get(String name)final CustomBlockType<?>fromMechanicSection(ConfigurationSection section)final IntegergenerateVariation(ConfigurationSection section)final IntegergenerateVariation(Key model, String type, Boolean reuse)final Object2ObjectOpenHashMap<String, Int2ObjectOpenHashMap<Key>>getDATAS()final <Error class: unknown class>getRegistry()final List<String>getNames()final List<CustomBlockType<?>>getTypes()-
-
Method Detail
-
getByClass
final <T extends CustomBlockMechanic> CustomBlockType<CustomBlockMechanic> getByClass(Class<T> mechanicClass)
-
getMechanic
final CustomBlockMechanic getMechanic(String itemId)
-
getMechanic
final CustomBlockMechanic getMechanic(Block block)
-
getMechanic
final CustomBlockMechanic getMechanic(BlockData blockData)
-
register
final <T extends CustomBlockMechanic> Unit register(CustomBlockType<T> blockType)
-
fromMechanicSection
final CustomBlockType<?> fromMechanicSection(ConfigurationSection section)
-
generateVariation
final Integer generateVariation(ConfigurationSection section)
-
generateVariation
final Integer generateVariation(Key model, String type, Boolean reuse)
-
getRegistry
final <Error class: unknown class> getRegistry()
-
getTypes
final List<CustomBlockType<?>> getTypes()
-
-
-
-