public final class PointOfInterestHelper extends Object
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.
Modifier and Type | Method and Description |
---|---|
static net.minecraft.world.poi.PointOfInterestType |
register(net.minecraft.util.Identifier id,
int ticketCount,
int searchDistance,
net.minecraft.block.Block... blocks)
Creates and registers a
PointOfInterestType . |
static net.minecraft.world.poi.PointOfInterestType |
register(net.minecraft.util.Identifier id,
int ticketCount,
int searchDistance,
Iterable<net.minecraft.block.BlockState> blocks)
Creates and registers a
PointOfInterestType . |
static net.minecraft.world.poi.PointOfInterestType |
register(net.minecraft.util.Identifier id,
int ticketCount,
Predicate<net.minecraft.world.poi.PointOfInterestType> completionCondition,
int searchDistance,
net.minecraft.block.Block... blocks)
Creates and registers a
PointOfInterestType . |
static net.minecraft.world.poi.PointOfInterestType |
register(net.minecraft.util.Identifier id,
int ticketCount,
Predicate<net.minecraft.world.poi.PointOfInterestType> typePredicate,
int searchDistance,
Iterable<net.minecraft.block.BlockState> states)
Creates and registers a
PointOfInterestType . |
public static net.minecraft.world.poi.PointOfInterestType register(net.minecraft.util.Identifier id, int ticketCount, int searchDistance, net.minecraft.block.Block... blocks)
PointOfInterestType
.id
- The id of this PointOfInterestType
.ticketCount
- the amount of tickets.searchDistance
- the search distance.blocks
- all the blocks where a PointOfInterest
of this type will be present.PointOfInterestType
.public static net.minecraft.world.poi.PointOfInterestType register(net.minecraft.util.Identifier id, int ticketCount, Predicate<net.minecraft.world.poi.PointOfInterestType> completionCondition, int searchDistance, net.minecraft.block.Block... blocks)
PointOfInterestType
.id
- The id of this PointOfInterestType
.ticketCount
- the amount of tickets.completionCondition
- a Predicate
which determines if two PointOfInterestType
s are the same.searchDistance
- the search distance.blocks
- all blocks where a PointOfInterest
of this type will be presentPointOfInterestType
.public static net.minecraft.world.poi.PointOfInterestType register(net.minecraft.util.Identifier id, int ticketCount, int searchDistance, Iterable<net.minecraft.block.BlockState> blocks)
PointOfInterestType
.id
- the id of this PointOfInterestType
.ticketCount
- the amount of tickets.searchDistance
- the search distance.blocks
- all block states
where a PointOfInterest
of this type will be presentPointOfInterestType
.public static net.minecraft.world.poi.PointOfInterestType register(net.minecraft.util.Identifier id, int ticketCount, Predicate<net.minecraft.world.poi.PointOfInterestType> typePredicate, int searchDistance, Iterable<net.minecraft.block.BlockState> states)
PointOfInterestType
.id
- the id of this PointOfInterestType
.ticketCount
- the amount of tickets.typePredicate
- a Predicate
which determines if two PointOfInterestType
s are the same.searchDistance
- the search distance.states
- all block states
where a PointOfInterest
of this type will be presentPointOfInterestType
.