Class PoiHelper
java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.world.poi.PoiHelper
This class provides utilities to create a
PoiType.
A point of interest or POI is typically used by villagers to specify their workstation blocks, meeting zones and homes. Points of interest are also used by bees to specify where their bee hive is and nether portals to find existing portals.
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.entity.ai.village.poi.PoiTyperegister(net.minecraft.resources.Identifier id, int ticketCount, int searchDistance, Iterable<net.minecraft.world.level.block.state.BlockState> blocks) Creates and registers aPoiType.static net.minecraft.world.entity.ai.village.poi.PoiTyperegister(net.minecraft.resources.Identifier id, int ticketCount, int searchDistance, net.minecraft.world.level.block.Block... blocks) Creates and registers aPoiType.
-
Method Details
-
register
public static net.minecraft.world.entity.ai.village.poi.PoiType register(net.minecraft.resources.Identifier id, int ticketCount, int searchDistance, net.minecraft.world.level.block.Block... blocks) Creates and registers aPoiType.- Parameters:
id- The id of thisPoiType.ticketCount- the amount of tickets.searchDistance- the search distance.blocks- all the blocks where aPoiRecordof this type will be present.- Returns:
- a new
PoiType.
-
register
public static net.minecraft.world.entity.ai.village.poi.PoiType register(net.minecraft.resources.Identifier id, int ticketCount, int searchDistance, Iterable<net.minecraft.world.level.block.state.BlockState> blocks) Creates and registers aPoiType.- Parameters:
id- the id of thisPoiType.ticketCount- the amount of tickets.searchDistance- the search distance.blocks- allblock stateswhere aPoiRecordof this type will be present- Returns:
- a new
PoiType.
-