Class BuildingExtensionRegistries.BuildingExtensionEntry
java.lang.Object
com.minecolonies.api.colony.buildingextensions.registry.BuildingExtensionRegistries.BuildingExtensionEntry
- Enclosing class:
- BuildingExtensionRegistries
Entry for the
IBuildingExtension registry. Makes it possible to create a single registry for a IBuildingExtension. Used to lookup how to create IBuildingExtension.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class forBuildingExtensionRegistries.BuildingExtensionEntry. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet all building extension module producers.net.minecraft.resources.ResourceLocationGet the assigned registry name.inthashCode()produceExtension(net.minecraft.core.BlockPos position) Produces a building extension instance based on a colony and block pos.
-
Method Details
-
produceExtension
Produces a building extension instance based on a colony and block pos.- Parameters:
position- the position the building extension is at.- Returns:
- the building extension instance.
-
getExtensionModuleProducers
Get all building extension module producers.- Returns:
- a list of all the building extension module producers.
-
getRegistryName
public net.minecraft.resources.ResourceLocation getRegistryName()Get the assigned registry name.- Returns:
- the resource location.
-
hashCode
public int hashCode() -
equals
-