Uses of Record Class
net.minecraft.world.poi.PointOfInterestType
Package
Description
-
Uses of PointOfInterestType in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionprivate static boolean
TakeJobSiteTask.canReachJobSite
(PathAwareEntity entity, BlockPos pos, PointOfInterestType poiType) Modifier and TypeMethodDescriptionprivate boolean
VillagerBreedTask.canReachHome
(VillagerEntity villager, BlockPos pos, RegistryEntry<PointOfInterestType> poiType) private static boolean
TakeJobSiteTask.canUseJobSite
(RegistryEntry<PointOfInterestType> poiType, VillagerEntity villager, BlockPos pos) static Task<PathAwareEntity>
FindPointOfInterestTask.create
(Predicate<RegistryEntry<PointOfInterestType>> poiPredicate, MemoryModuleType<GlobalPos> poiPosModule, boolean onlyRunIfChild, Optional<Byte> entityStatus) static Task<PathAwareEntity>
FindPointOfInterestTask.create
(Predicate<RegistryEntry<PointOfInterestType>> poiPredicate, MemoryModuleType<GlobalPos> poiPosModule, MemoryModuleType<GlobalPos> potentialPoiPosModule, boolean onlyRunIfChild, Optional<Byte> entityStatus) static Task<LivingEntity>
ForgetCompletedPointOfInterestTask.create
(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> poiPosModule) static @Nullable Path
FindPointOfInterestTask.findPathToPoi
(MobEntity entity, Set<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>, BlockPos>> pois) private static boolean
WorkStationCompetitionTask.isCompletedWorkStation
(RegistryEntry<PointOfInterestType> poiType, VillagerProfession profession) private static boolean
WorkStationCompetitionTask.isUsingWorkStationAt
(GlobalPos pos, RegistryEntry<PointOfInterestType> poiType, VillagerEntity villager) -
Uses of PointOfInterestType in net.minecraft.entity.passive
Modifier and TypeFieldDescriptionstatic final Map<MemoryModuleType<GlobalPos>,
BiPredicate<VillagerEntity, RegistryEntry<PointOfInterestType>>> VillagerEntity.POINTS_OF_INTEREST
-
Uses of PointOfInterestType in net.minecraft.registry
Modifier and TypeFieldDescriptionstatic final Registry<PointOfInterestType>
Registries.POINT_OF_INTEREST_TYPE
static final RegistryKey<Registry<PointOfInterestType>>
RegistryKeys.POINT_OF_INTEREST_TYPE
-
Uses of PointOfInterestType in net.minecraft.registry.tag
Modifier and TypeFieldDescriptionstatic final TagKey<PointOfInterestType>
PointOfInterestTypeTags.ACQUIRABLE_JOB_SITE
static final TagKey<PointOfInterestType>
PointOfInterestTypeTags.BEE_HOME
static final TagKey<PointOfInterestType>
PointOfInterestTypeTags.VILLAGE
-
Uses of PointOfInterestType in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
LocateCommand.executeLocatePoi
(ServerCommandSource source, RegistryEntryPredicateArgumentType.EntryPredicate<PointOfInterestType> predicate) -
Uses of PointOfInterestType in net.minecraft.village
Modifier and TypeFieldDescriptionprivate final Predicate<RegistryEntry<PointOfInterestType>>
VillagerProfession.acquirableWorkstation
The field for theacquirableWorkstation
record component.private final Predicate<RegistryEntry<PointOfInterestType>>
VillagerProfession.heldWorkstation
The field for theheldWorkstation
record component.static final Predicate<RegistryEntry<PointOfInterestType>>
VillagerProfession.IS_ACQUIRABLE_JOB_SITE
Modifier and TypeMethodDescriptionVillagerProfession.acquirableWorkstation()
Returns the value of theacquirableWorkstation
record component.VillagerProfession.heldWorkstation()
Returns the value of theheldWorkstation
record component.Modifier and TypeMethodDescriptionprivate static VillagerProfession
VillagerProfession.register
(String id, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable SoundEvent workSound) private static VillagerProfession
VillagerProfession.register
(String id, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, @Nullable SoundEvent workSound) private static VillagerProfession
VillagerProfession.register
(String id, RegistryKey<PointOfInterestType> heldWorkstation, ImmutableSet<Item> gatherableItems, ImmutableSet<Block> secondaryJobSites, @Nullable SoundEvent workSound) private static VillagerProfession
VillagerProfession.register
(String id, RegistryKey<PointOfInterestType> heldWorkstation, @Nullable SoundEvent workSound) ModifierConstructorDescriptionVillagerProfession
(String id, Predicate<RegistryEntry<PointOfInterestType>> predicate, Predicate<RegistryEntry<PointOfInterestType>> predicate2, ImmutableSet<Item> immutableSet, ImmutableSet<Block> immutableSet2, @Nullable SoundEvent soundEvent) -
Uses of PointOfInterestType in net.minecraft.world.poi
Modifier and TypeFieldDescriptionstatic final RegistryKey<PointOfInterestType>
PointOfInterestTypes.ARMORER
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.BEE_NEST
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.BEEHIVE
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.BUTCHER
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.CARTOGRAPHER
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.CLERIC
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.FARMER
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.FISHERMAN
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.FLETCHER
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.HOME
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.LEATHERWORKER
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.LIBRARIAN
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.LIGHTNING_ROD
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.LODESTONE
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.MASON
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.MEETING
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.NETHER_PORTAL
static final Predicate<RegistryEntry<PointOfInterestType>>
PointOfInterestType.NONE
private static final Map<BlockState,
RegistryEntry<PointOfInterestType>> PointOfInterestTypes.POI_STATES_TO_TYPE
private final Map<RegistryEntry<PointOfInterestType>,
Set<PointOfInterest>> PointOfInterestSet.pointsOfInterestByType
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.SHEPHERD
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.TOOLSMITH
private final RegistryEntry<PointOfInterestType>
PointOfInterest.type
static final RegistryKey<PointOfInterestType>
PointOfInterestTypes.WEAPONSMITH
Modifier and TypeMethodDescriptionprivate static PointOfInterestType
PointOfInterestTypes.register
(Registry<PointOfInterestType> registry, RegistryKey<PointOfInterestType> key, Set<BlockState> states, int ticketCount, int searchDistance) static PointOfInterestType
PointOfInterestTypes.registerAndGetDefault
(Registry<PointOfInterestType> registry) Modifier and TypeMethodDescriptionOptional<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getNearestTypeAndPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) Stream<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getSortedTypesAndPositions
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterest.getType()
static Optional<RegistryEntry<PointOfInterestType>>
PointOfInterestTypes.getTypeForState
(BlockState state) Stream<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getTypesAndPositions
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) private static RegistryKey<PointOfInterestType>
Modifier and TypeMethodDescriptionvoid
PointOfInterestSet.add
(BlockPos pos, RegistryEntry<PointOfInterestType> type) void
PointOfInterestStorage.add
(BlockPos pos, RegistryEntry<PointOfInterestType> type) long
PointOfInterestStorage.count
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestSet.get
(Predicate<RegistryEntry<PointOfInterestType>> predicate, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getInChunk
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, ChunkPos chunkPos, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getInCircle
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getInSquare
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getNearestPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getNearestPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) Optional<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getNearestTypeAndPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BiPredicate<RegistryEntry<PointOfInterestType>, BlockPos> biPredicate, BlockPos pos, int radius) PointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BiPredicate<RegistryEntry<PointOfInterestType>, BlockPos> biPredicate, BlockPos pos, int radius) PointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) PointOfInterestStorage.getPosition
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> positionPredicate, PointOfInterestStorage.OccupationStatus occupationStatus, BlockPos pos, int radius, Random random) PointOfInterestStorage.getPositions
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) Stream<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getSortedTypesAndPositions
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) Stream<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,
BlockPos>> PointOfInterestStorage.getTypesAndPositions
(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) boolean
PointOfInterestStorage.hasTypeAt
(RegistryKey<PointOfInterestType> type, BlockPos pos) private static PointOfInterestType
PointOfInterestTypes.register
(Registry<PointOfInterestType> registry, RegistryKey<PointOfInterestType> key, Set<BlockState> states, int ticketCount, int searchDistance) private static PointOfInterestType
PointOfInterestTypes.register
(Registry<PointOfInterestType> registry, RegistryKey<PointOfInterestType> key, Set<BlockState> states, int ticketCount, int searchDistance) static PointOfInterestType
PointOfInterestTypes.registerAndGetDefault
(Registry<PointOfInterestType> registry) private static void
PointOfInterestTypes.registerStates
(RegistryEntry<PointOfInterestType> poiTypeEntry, Set<BlockState> states) private void
PointOfInterestStorage.scanAndPopulate
(ChunkSection chunkSection, ChunkSectionPos sectionPos, BiConsumer<BlockPos, RegistryEntry<PointOfInterestType>> populator) boolean
PointOfInterestSet.test
(BlockPos pos, Predicate<RegistryEntry<PointOfInterestType>> predicate) boolean
PointOfInterestStorage.test
(BlockPos pos, Predicate<RegistryEntry<PointOfInterestType>> predicate) void
PointOfInterestSet.updatePointsOfInterest
(Consumer<BiConsumer<BlockPos, RegistryEntry<PointOfInterestType>>> updater) ModifierConstructorDescriptionprivate
PointOfInterest
(BlockPos pos, RegistryEntry<PointOfInterestType> type, int freeTickets, Runnable updateListener) PointOfInterest
(BlockPos pos, RegistryEntry<PointOfInterestType> type, Runnable updateListener)