Class PointOfInterestHelper
java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.world.poi.PointOfInterestHelper
This class provides utilities to create a
PointOfInterestType.
A point of interest 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 PointOfInterestTyperegister(Identifier id, int ticketCount, int searchDistance, Iterable<BlockState> blocks) Creates and registers aPointOfInterestType.static PointOfInterestTyperegister(Identifier id, int ticketCount, int searchDistance, Block... blocks) Creates and registers aPointOfInterestType.
-
Method Details
-
register
public static PointOfInterestType register(Identifier id, int ticketCount, int searchDistance, Block... blocks) Creates and registers aPointOfInterestType.- Parameters:
id- The id of thisPointOfInterestType.ticketCount- the amount of tickets.searchDistance- the search distance.blocks- all the blocks where aPointOfInterestof this type will be present.- Returns:
- a new
PointOfInterestType.
-
register
public static PointOfInterestType register(Identifier id, int ticketCount, int searchDistance, Iterable<BlockState> blocks) Creates and registers aPointOfInterestType.- Parameters:
id- the id of thisPointOfInterestType.ticketCount- the amount of tickets.searchDistance- the search distance.blocks- allblock stateswhere aPointOfInterestof this type will be present- Returns:
- a new
PointOfInterestType.
-