Uses of Class
net.minecraft.util.math.GlobalPos
Packages that use 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
Methods in net.minecraft.client.item that return GlobalPosModifier and TypeMethodDescriptionCompassAnglePredicateProvider.CompassTarget.getPos(ClientWorld world, ItemStack stack, Entity entity) Methods in net.minecraft.client.item with parameters of type GlobalPosModifier and TypeMethodDescriptionprivate booleanCompassAnglePredicateProvider.canPointTo(Entity entity, @Nullable GlobalPos pos) -
Uses of GlobalPos in net.minecraft.entity.ai.brain
Fields in net.minecraft.entity.ai.brain with type parameters of type GlobalPosModifier and TypeFieldDescriptionstatic final MemoryModuleType<Set<GlobalPos>>MemoryModuleType.DOORS_TO_CLOSEstatic final MemoryModuleType<GlobalPos>MemoryModuleType.HIDING_PLACEstatic final MemoryModuleType<GlobalPos>MemoryModuleType.HOMEstatic final MemoryModuleType<List<GlobalPos>>MemoryModuleType.INTERACTABLE_DOORSstatic final MemoryModuleType<GlobalPos>MemoryModuleType.JOB_SITEstatic final MemoryModuleType<GlobalPos>MemoryModuleType.LIKED_NOTEBLOCKstatic final MemoryModuleType<GlobalPos>MemoryModuleType.MEETING_POINTstatic final MemoryModuleType<GlobalPos>MemoryModuleType.POTENTIAL_JOB_SITEstatic final MemoryModuleType<List<GlobalPos>>MemoryModuleType.SECONDARY_JOB_SITE -
Uses of GlobalPos in net.minecraft.entity.ai.brain.task
Fields in net.minecraft.entity.ai.brain.task declared as GlobalPosFields in net.minecraft.entity.ai.brain.task with type parameters of type GlobalPosModifier and TypeFieldDescriptionprivate final MemoryModuleType<GlobalPos>VillagerWalkTowardsTask.destinationprivate final MemoryModuleType<GlobalPos>ForgetCompletedPointOfInterestTask.memoryModuleprivate final MemoryModuleType<GlobalPos>GoToNearbyPositionTask.memoryModuleTypeprivate final MemoryModuleType<GlobalPos>GoToSecondaryPositionTask.primaryPositionprivate final MemoryModuleType<List<GlobalPos>>GoToSecondaryPositionTask.secondaryPositionsprivate final MemoryModuleType<GlobalPos>GoToIfNearbyTask.targetprivate final MemoryModuleType<GlobalPos>FindPointOfInterestTask.targetMemoryModuleTypeMethods in net.minecraft.entity.ai.brain.task with parameters of type GlobalPosModifier and TypeMethodDescriptionprivate static booleanOpenDoorsTask.cannotReachDoor(ServerWorld world, LivingEntity entity, GlobalPos doorPos) private voidFarmerWorkTask.compostSeeds(ServerWorld world, VillagerEntity entity, GlobalPos pos, BlockState composterState) private booleanVillagerWalkTowardsTask.dimensionMismatches(ServerWorld world, GlobalPos pos) private booleanVillagerWalkTowardsTask.exceedsMaxRange(VillagerEntity villager, GlobalPos pos) private booleanWorkStationCompetitionTask.isUsingWorkStationAt(GlobalPos pos, RegistryEntry<PointOfInterestType> poiType, VillagerEntity villager) private booleanVillagerWalkTowardsTask.reachedDestination(ServerWorld world, VillagerEntity villager, GlobalPos pos) Method parameters in net.minecraft.entity.ai.brain.task with type arguments of type GlobalPosModifier and TypeMethodDescriptionprivate static ImmutableMap<MemoryModuleType<?>,MemoryModuleState> FindPointOfInterestTask.create(MemoryModuleType<GlobalPos> firstModule, MemoryModuleType<GlobalPos> secondModule) Constructor parameters in net.minecraft.entity.ai.brain.task with type arguments of type GlobalPosModifierConstructorDescriptionFindPointOfInterestTask(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
Fields in net.minecraft.entity.data with type parameters of type GlobalPosModifier and TypeFieldDescriptionstatic final TrackedDataHandler<Optional<GlobalPos>>TrackedDataHandlerRegistry.OPTIONAL_GLOBAL_POS -
Uses of GlobalPos in net.minecraft.entity.passive
Fields in net.minecraft.entity.passive with type parameters of type GlobalPosModifier and TypeFieldDescriptionstatic final Map<MemoryModuleType<GlobalPos>,BiPredicate<VillagerEntity, RegistryEntry<PointOfInterestType>>> VillagerEntity.POINTS_OF_INTERESTMethods in net.minecraft.entity.passive with parameters of type GlobalPosModifier and TypeMethodDescriptionprivate static booleanAllayBrain.shouldGoTowardsNoteBlock(LivingEntity allay, Brain<?> brain, GlobalPos pos) Method parameters in net.minecraft.entity.passive with type arguments of type GlobalPosModifier and TypeMethodDescriptionvoidVillagerEntity.releaseTicketFor(MemoryModuleType<GlobalPos> memoryModuleType) -
Uses of GlobalPos in net.minecraft.entity.player
Fields in net.minecraft.entity.player with type parameters of type GlobalPosMethods in net.minecraft.entity.player that return types with arguments of type GlobalPosMethod parameters in net.minecraft.entity.player with type arguments of type GlobalPosModifier and TypeMethodDescriptionvoidPlayerEntity.setLastDeathPos(Optional<GlobalPos> lastDeathPos) -
Uses of GlobalPos in net.minecraft.item
Methods in net.minecraft.item that return GlobalPosModifier and TypeMethodDescriptionCompassItem.createLodestonePos(NbtCompound nbt) CompassItem.createSpawnPos(World world) -
Uses of GlobalPos in net.minecraft.network
Methods in net.minecraft.network that return GlobalPosModifier and TypeMethodDescriptionPacketByteBuf.readGlobalPos()Reads a global position from this buf.Methods in net.minecraft.network with parameters of type GlobalPosModifier and TypeMethodDescriptionvoidPacketByteBuf.writeGlobalPos(GlobalPos pos) Writes a global position to this buf. -
Uses of GlobalPos in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play with type parameters of type GlobalPosModifier and TypeFieldDescriptionGameJoinS2CPacket.lastDeathLocationThe field for thelastDeathLocationrecord component.PlayerRespawnS2CPacket.lastDeathPosMethods in net.minecraft.network.packet.s2c.play that return types with arguments of type GlobalPosModifier and TypeMethodDescriptionPlayerRespawnS2CPacket.getLastDeathPos()GameJoinS2CPacket.lastDeathLocation()Returns the value of thelastDeathLocationrecord component.Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type GlobalPosModifierConstructorDescriptionGameJoinS2CPacket(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
Fields in net.minecraft.util.math with type parameters of type GlobalPosModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<GlobalPos>GlobalPos.CODECMethods in net.minecraft.util.math that return GlobalPosModifier and TypeMethodDescriptionstatic GlobalPosGlobalPos.create(RegistryKey<World> dimension, BlockPos pos)