Uses of Class
net.minecraft.util.math.GlobalPos
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
-
Uses of GlobalPos in net.minecraft.client.item
Modifier and TypeMethodDescription@Nullable GlobalPos
CompassAnglePredicateProvider.CompassTarget.getPos
(ClientWorld world, ItemStack stack, Entity entity) Modifier and TypeMethodDescriptionprivate boolean
CompassAnglePredicateProvider.canPointTo
(Entity entity, @Nullable GlobalPos pos) -
Uses of GlobalPos in net.minecraft.entity.ai.brain
Modifier and TypeFieldDescriptionstatic final MemoryModuleType<Set<GlobalPos>>
MemoryModuleType.DOORS_TO_CLOSE
static final MemoryModuleType<GlobalPos>
MemoryModuleType.HIDING_PLACE
static final MemoryModuleType<GlobalPos>
MemoryModuleType.HOME
static final MemoryModuleType<List<GlobalPos>>
MemoryModuleType.INTERACTABLE_DOORS
static final MemoryModuleType<GlobalPos>
MemoryModuleType.JOB_SITE
static final MemoryModuleType<GlobalPos>
MemoryModuleType.LIKED_NOTEBLOCK
static final MemoryModuleType<GlobalPos>
MemoryModuleType.MEETING_POINT
static final MemoryModuleType<GlobalPos>
MemoryModuleType.POTENTIAL_JOB_SITE
static final MemoryModuleType<List<GlobalPos>>
MemoryModuleType.SECONDARY_JOB_SITE
static final MemoryModuleType<List<GlobalPos>>
MemoryModuleType.SNIFFER_EXPLORED_POSITIONS
-
Uses of GlobalPos in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionOpenDoorsTask.storePos
(MemoryQueryResult<com.mojang.datafixers.kinds.OptionalBox.Mu, Set<GlobalPos>> queryResult, Optional<Set<GlobalPos>> doors, ServerWorld world, BlockPos pos) Modifier and TypeMethodDescriptionprivate static boolean
OpenDoorsTask.cannotReachDoor
(ServerWorld world, LivingEntity entity, GlobalPos doorPos) private void
FarmerWorkTask.compostSeeds
(ServerWorld world, VillagerEntity entity, GlobalPos pos, BlockState composterState) private static boolean
WorkStationCompetitionTask.isUsingWorkStationAt
(GlobalPos pos, RegistryEntry<PointOfInterestType> poiType, VillagerEntity villager) Modifier and TypeMethodDescriptionstatic 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 SingleTickTask<PathAwareEntity>
GoToIfNearbyTask.create
(MemoryModuleType<GlobalPos> posModule, float walkSpeed, int maxDistance) static Task<PathAwareEntity>
GoToNearbyPositionTask.create
(MemoryModuleType<GlobalPos> posModule, float walkSpeed, int completionRange, int maxDistance) static Task<VillagerEntity>
GoToSecondaryPositionTask.create
(MemoryModuleType<List<GlobalPos>> secondaryPositions, float speed, int completionRange, int primaryPositionActivationDistance, MemoryModuleType<GlobalPos> primaryPosition) static SingleTickTask<VillagerEntity>
VillagerWalkTowardsTask.create
(MemoryModuleType<GlobalPos> destination, float speed, int completionRange, int maxDistance, int maxRunTime) static void
OpenDoorsTask.pathToDoor
(ServerWorld world, LivingEntity entity, @Nullable PathNode lastNode, @Nullable PathNode currentNode, Set<GlobalPos> doors, Optional<List<LivingEntity>> otherMobs) OpenDoorsTask.storePos
(MemoryQueryResult<com.mojang.datafixers.kinds.OptionalBox.Mu, Set<GlobalPos>> queryResult, Optional<Set<GlobalPos>> doors, ServerWorld world, BlockPos pos) OpenDoorsTask.storePos
(MemoryQueryResult<com.mojang.datafixers.kinds.OptionalBox.Mu, Set<GlobalPos>> queryResult, Optional<Set<GlobalPos>> doors, ServerWorld world, BlockPos pos) -
Uses of GlobalPos in net.minecraft.entity.data
Modifier and TypeFieldDescriptionstatic final TrackedDataHandler<Optional<GlobalPos>>
TrackedDataHandlerRegistry.OPTIONAL_GLOBAL_POS
-
Uses of GlobalPos in net.minecraft.entity.passive
Modifier and TypeFieldDescriptionstatic final Map<MemoryModuleType<GlobalPos>,
BiPredicate<VillagerEntity, RegistryEntry<PointOfInterestType>>> VillagerEntity.POINTS_OF_INTEREST
Modifier and TypeMethodDescriptionprivate static boolean
AllayBrain.shouldGoTowardsNoteBlock
(LivingEntity allay, Brain<?> brain, GlobalPos pos) Modifier and TypeMethodDescriptionvoid
VillagerEntity.releaseTicketFor
(MemoryModuleType<GlobalPos> pos) -
Uses of GlobalPos in net.minecraft.entity.player
Modifier and TypeMethodDescriptionvoid
PlayerEntity.setLastDeathPos
(Optional<GlobalPos> lastDeathPos) -
Uses of GlobalPos in net.minecraft.item
Modifier and TypeMethodDescriptionstatic @Nullable GlobalPos
CompassItem.createLodestonePos
(NbtCompound nbt) static @Nullable GlobalPos
CompassItem.createSpawnPos
(World world) -
Uses of GlobalPos in net.minecraft.network
Modifier and TypeMethodDescriptionPacketByteBuf.readGlobalPos()
Reads a global position from this buf.Modifier and TypeMethodDescriptionvoid
PacketByteBuf.writeGlobalPos
(GlobalPos pos) Writes a global position to this buf. -
Uses of GlobalPos in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionCommonPlayerSpawnInfo.lastDeathLocation
The field for thelastDeathLocation
record component.Modifier and TypeMethodDescriptionCommonPlayerSpawnInfo.lastDeathLocation()
Returns the value of thelastDeathLocation
record component.ModifierConstructorDescriptionCommonPlayerSpawnInfo
(RegistryKey<DimensionType> registryKey, RegistryKey<World> registryKey2, long long2, GameMode gameMode, @Nullable GameMode gameMode2, boolean bool, boolean bool2, Optional<GlobalPos> optional, int int2) -
Uses of GlobalPos in net.minecraft.util.math
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<GlobalPos>
GlobalPos.CODEC
Modifier and TypeMethodDescriptionstatic GlobalPos
GlobalPos.create
(RegistryKey<World> dimension, BlockPos pos)