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 TypeMethodDescriptionCompassAnglePredicateProvider.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
-
Uses of GlobalPos in net.minecraft.entity.ai.brain.task
Modifier and TypeFieldDescriptionprivate final MemoryModuleType<GlobalPos>
VillagerWalkTowardsTask.destination
private final MemoryModuleType<GlobalPos>
ForgetCompletedPointOfInterestTask.memoryModule
private final MemoryModuleType<GlobalPos>
GoToNearbyPositionTask.memoryModuleType
private final MemoryModuleType<GlobalPos>
GoToSecondaryPositionTask.primaryPosition
private final MemoryModuleType<List<GlobalPos>>
GoToSecondaryPositionTask.secondaryPositions
private final MemoryModuleType<GlobalPos>
GoToIfNearbyTask.target
private final MemoryModuleType<GlobalPos>
FindPointOfInterestTask.targetMemoryModuleType
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 boolean
VillagerWalkTowardsTask.dimensionMismatches
(ServerWorld world, GlobalPos pos) private boolean
VillagerWalkTowardsTask.exceedsMaxRange
(VillagerEntity villager, GlobalPos pos) private boolean
WorkStationCompetitionTask.isUsingWorkStationAt
(GlobalPos pos, RegistryEntry<PointOfInterestType> poiType, VillagerEntity villager) private boolean
VillagerWalkTowardsTask.reachedDestination
(ServerWorld world, VillagerEntity villager, GlobalPos pos) Modifier and TypeMethodDescriptionprivate static ImmutableMap<MemoryModuleType<?>,
MemoryModuleState> FindPointOfInterestTask.create
(MemoryModuleType<GlobalPos> firstModule, MemoryModuleType<GlobalPos> secondModule) ModifierConstructorDescriptionFindPointOfInterestTask
(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> moduleType, boolean onlyRunIfChild, Optional<Byte> entityStatus) FindPointOfInterestTask
(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> moduleType, MemoryModuleType<GlobalPos> targetMemoryModuleType, boolean onlyRunIfChild, Optional<Byte> entityStatus) ForgetCompletedPointOfInterestTask
(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> memoryModule) GoToIfNearbyTask
(MemoryModuleType<GlobalPos> target, float walkSpeed, int maxDistance) GoToNearbyPositionTask
(MemoryModuleType<GlobalPos> memoryModuleType, float walkSpeed, int completionRange, int maxDistance) GoToSecondaryPositionTask
(MemoryModuleType<List<GlobalPos>> secondaryPositions, float speed, int completionRange, int primaryPositionActivationDistance, MemoryModuleType<GlobalPos> primaryPosition) VillagerWalkTowardsTask
(MemoryModuleType<GlobalPos> destination, float speed, int completionRange, int maxRange, int maxRunTime) -
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> memoryModuleType) -
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 TypeMethodDescriptionCompassItem.createLodestonePos
(NbtCompound nbt) 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 TypeFieldDescriptionGameJoinS2CPacket.lastDeathLocation
The field for thelastDeathLocation
record component.PlayerRespawnS2CPacket.lastDeathPos
Modifier and TypeMethodDescriptionPlayerRespawnS2CPacket.getLastDeathPos()
GameJoinS2CPacket.lastDeathLocation()
Returns the value of thelastDeathLocation
record component.ModifierConstructorDescriptionGameJoinS2CPacket
(int playerEntityId, boolean bool, GameMode previousGameMode, @Nullable GameMode gameMode, Set<RegistryKey<World>> set, DynamicRegistryManager.Immutable immutable, RegistryKey<DimensionType> registryKey, RegistryKey<World> registryKey2, long long2, int maxPlayers, int chunkLoadDistance, int int2, boolean bool2, boolean bool3, boolean bool4, boolean bool5, Optional<GlobalPos> optional) PlayerRespawnS2CPacket
(RegistryKey<DimensionType> dimensionType, RegistryKey<World> dimension, long sha256Seed, GameMode gameMode, @Nullable GameMode previousGameMode, boolean debugWorld, boolean flatWorld, boolean keepPlayerAttributes, Optional<GlobalPos> lastDeathPos) -
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)