Class ExtendPoiTypesEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.common.world.poi.ExtendPoiTypesEvent
- All Implemented Interfaces:
IModBusEvent
Fired in order to add additional
BlockStates to foreign PoiTypes.
This event is fired on the mod-specific event bus.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExtendPoiTypesEvent(BiConsumer<ResourceKey<PoiType>, Set<BlockState>> registrar) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlockToPoi(ResourceKey<PoiType> typeKey, Block block) voidaddStatesToPoi(ResourceKey<PoiType> typeKey, Set<BlockState> states)
-
Field Details
-
registrar
-
-
Constructor Details
-
ExtendPoiTypesEvent
ExtendPoiTypesEvent(BiConsumer<ResourceKey<PoiType>, Set<BlockState>> registrar)
-
-
Method Details
-
addBlockToPoi
- Parameters:
typeKey- TheResourceKeyof thePoiTypeto append the states toblock- TheBlockwhoseBlockStates to append to the PoI type
-
addStatesToPoi
- Parameters:
typeKey- TheResourceKeyof thePoiTypeto append the states tostates- TheBlockStates to append to the PoI type
-