Uses of Class
net.minecraft.util.math.Vec3d
Package
Description
-
Uses of Vec3d in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionboolean
LevitationCriterion.Conditions.matches
(ServerPlayerEntity player, Vec3d startPos, int duration) boolean
NetherTravelCriterion.Conditions.matches
(ServerWorld world, Vec3d enteredPos, double exitedPosX, double exitedPosY, double exitedPosZ) boolean
TargetHitCriterion.Conditions.test
(LootContext projectileContext, Vec3d hitPos, int signalStrength) void
LevitationCriterion.trigger
(ServerPlayerEntity player, Vec3d startPos, int duration) void
NetherTravelCriterion.trigger
(ServerPlayerEntity player, Vec3d enteredPos) void
TargetHitCriterion.trigger
(ServerPlayerEntity player, Entity projectile, Vec3d hitPos, int signalStrength) -
Uses of Vec3d in net.minecraft.block
Modifier and TypeFieldDescriptionprivate static final Int2ObjectMap<List<Vec3d>>
CandleBlock.CANDLES_TO_PARTICLE_OFFSETS
CandleCakeBlock.PARTICLE_OFFSETS
Modifier and TypeMethodDescriptionAbstractBlock.AbstractBlockState.getModelOffset
(BlockView world, BlockPos pos) Modifier and TypeMethodDescriptionRespawnAnchorBlock.findRespawnPosition
(EntityType<?> entity, CollisionView world, BlockPos pos) RespawnAnchorBlock.findRespawnPosition
(EntityType<?> entity, CollisionView world, BlockPos pos, boolean bool) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, float float2) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, int[][] int2, boolean bool) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, Direction direction, Direction direction2) AbstractCandleBlock.getParticleOffsets
(BlockState state) CandleBlock.getParticleOffsets
(BlockState state) CandleCakeBlock.getParticleOffsets
(BlockState state) Modifier and TypeMethodDescriptionprivate void
RedstoneWireBlock.addPoweredParticles
(World world, Random random, BlockPos pos, Vec3d color, Direction direction, Direction direction2, float float2, float float3) private static int
TargetBlock.calculatePower
(BlockHitResult hitResult, Vec3d pos) private static void
AbstractCandleBlock.spawnCandleParticles
(World world, Vec3d vec3d, Random random) -
Uses of Vec3d in net.minecraft.block.entity
Modifier and TypeMethodDescriptionprivate static Vec3d
EndGatewayBlockEntity.findTeleportLocation
(ServerWorld world, BlockPos pos) Modifier and TypeMethodDescriptionprivate static void
AbstractFurnaceBlockEntity.dropExperience
(ServerWorld world, Vec3d pos, int multiplier, float experience) private static WorldChunk
AbstractFurnaceBlockEntity.getRecipesUsedAndDropExperience
(ServerWorld world, Vec3d pos) private static boolean
EndGatewayBlockEntity.isChunkEmpty
(ServerWorld world, Vec3d pos) -
Uses of Vec3d in net.minecraft.client
Modifier and TypeMethodDescriptionprivate void
Keyboard.copyEntity
(Identifier id, Vec3d pos, @Nullable NbtCompound nbt) -
Uses of Vec3d in net.minecraft.client.gui.hud
-
Uses of Vec3d in net.minecraft.client.network
Modifier and TypeFieldDescriptionprivate final Object2ObjectLinkedOpenHashMap<com.mojang.datafixers.util.Pair<BlockPos,
PlayerActionC2SPacket.Action>, Vec3d> ClientPlayerInteractionManager.unacknowledgedPlayerActions
Modifier and TypeMethodDescriptionvoid
ClientPlayerEntity.move
(MovementType movementType, Vec3d movement) -
Uses of Vec3d in net.minecraft.client.particle
ModifierConstructorDescriptionprivate
EmitterParticle
(ClientWorld world, Entity entity, ParticleEffect parameters, int maxEmitterAge, Vec3d velocity) private
ItemPickupParticle
(EntityRenderDispatcher dispatcher, BufferBuilderStorage bufferStorage, ClientWorld world, Entity itemEntity, Entity interactingEntity, Vec3d velocity) -
Uses of Vec3d in net.minecraft.client.render
Modifier and TypeFieldDescription(package private) final Vec3d
Camera.class_6355.field_33622
private final Vec3d
Camera.class_6355.field_33623
private final Vec3d
Camera.class_6355.field_33624
private Vec3d
WorldRenderer.lastCloudsColor
private Vec3d
Camera.pos
Modifier and TypeMethodDescriptionabstract Vec3d
SkyProperties.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.SkyProperties.End.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.SkyProperties.Nether.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.SkyProperties.Overworld.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.Camera.getPos()
Camera.class_6355.method_36426()
Camera.class_6355.method_36427
(float float2, float float3) Camera.class_6355.method_36429()
Camera.class_6355.method_36430()
Camera.class_6355.method_36431()
Modifier and TypeMethodDescriptionabstract Vec3d
SkyProperties.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.SkyProperties.End.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.SkyProperties.Nether.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.SkyProperties.Overworld.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.private void
WorldRenderer.method_34808
(Frustum frustum, int int2, boolean bool, Vec3d vec3d, BlockPos blockPos, ChunkBuilder.BuiltChunk builtChunk, int int3, BlockPos blockPos2) private void
WorldRenderer.renderClouds
(BufferBuilder builder, double x, double y, double z, Vec3d color) protected void
void
WorldRenderer.setupFrustum
(MatrixStack matrices, Vec3d pos, Matrix4f projectionMatrix) ModifierConstructorDescription(package private)
class_6355
(Vec3d vec3d, Vec3d vec3d2, Vec3d vec3d3) -
Uses of Vec3d in net.minecraft.client.render.block.entity
Modifier and TypeMethodDescriptionboolean
BeaconBlockEntityRenderer.method_33892
(BeaconBlockEntity beaconBlockEntity, Vec3d vec3d) default boolean
BlockEntityRenderer.method_33892
(T t, Vec3d vec3d) -
Uses of Vec3d in net.minecraft.client.render.chunk
-
Uses of Vec3d in net.minecraft.client.render.debug
-
Uses of Vec3d in net.minecraft.client.render.entity
Modifier and TypeMethodDescriptionprivate Vec3d
GuardianEntityRenderer.fromLerpedPosition
(LivingEntity entity, double yOffset, float delta) EndermanEntityRenderer.getPositionOffset
(EndermanEntity endermanEntity, float float2) EntityRenderer.getPositionOffset
(T entity, float tickDelta) ItemFrameEntityRenderer.getPositionOffset
(T t, float float2) PlayerEntityRenderer.getPositionOffset
(AbstractClientPlayerEntity abstractClientPlayerEntity, float float2) ShulkerEntityRenderer.getPositionOffset
(ShulkerEntity shulkerEntity, float float2) -
Uses of Vec3d in net.minecraft.client.sound
Modifier and TypeMethodDescriptionvoid
SoundListener.setPosition
(Vec3d position) void
Source.setPosition
(Vec3d vec3d) -
Uses of Vec3d in net.minecraft.client.world
Modifier and TypeMethodDescriptionClientWorld.getCloudsColor
(float tickDelta) ClientWorld.method_23777
(Vec3d vec3d, float float2) -
Uses of Vec3d in net.minecraft.command
Modifier and TypeFieldDescriptionstatic final BiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.ARBITRARY
static final BiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.FURTHEST
static final BiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.NEAREST
EntitySelector.positionOffset
EntitySelector.positionOffset
static final BiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.RANDOM
private final BiConsumer<Vec3d,
List<? extends Entity>> EntitySelector.sorter
private BiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.sorter
Modifier and TypeMethodDescriptionBiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.getSorter()
Modifier and TypeMethodDescriptionprivate void
EntitySelector.appendEntitiesFromWorld
(List<Entity> list, ServerWorld serverWorld, Vec3d vec3d, Predicate<Entity> predicate) EntitySelector.getEntities
(Vec3d vec3d, List<T> list) EntitySelector.getPositionPredicate
(Vec3d vec3d) Modifier and TypeMethodDescriptionvoid
EntitySelectorReader.setSorter
(BiConsumer<Vec3d, List<? extends Entity>> sorter) ModifierConstructorDescriptionEntitySelector
(int count, boolean includesNonPlayers, boolean localWorldOnly, Predicate<Entity> basePredicate, NumberRange.FloatRange distance, Function<Vec3d, Vec3d> positionOffset, @Nullable Box box, BiConsumer<Vec3d, List<? extends Entity>> sorter, boolean senderOnly, @Nullable String playerName, @Nullable UUID uuid, @Nullable EntityType<?> type, boolean usesAt) EntitySelector
(int count, boolean includesNonPlayers, boolean localWorldOnly, Predicate<Entity> basePredicate, NumberRange.FloatRange distance, Function<Vec3d, Vec3d> positionOffset, @Nullable Box box, BiConsumer<Vec3d, List<? extends Entity>> sorter, boolean senderOnly, @Nullable String playerName, @Nullable UUID uuid, @Nullable EntityType<?> type, boolean usesAt) EntitySelector
(int count, boolean includesNonPlayers, boolean localWorldOnly, Predicate<Entity> basePredicate, NumberRange.FloatRange distance, Function<Vec3d, Vec3d> positionOffset, @Nullable Box box, BiConsumer<Vec3d, List<? extends Entity>> sorter, boolean senderOnly, @Nullable String playerName, @Nullable UUID uuid, @Nullable EntityType<?> type, boolean usesAt) -
Uses of Vec3d in net.minecraft.command.argument
Modifier and TypeFieldDescriptionprivate final BiFunction<Vec3d,
Entity, Vec3d> EntityAnchorArgumentType.EntityAnchor.offset
private final BiFunction<Vec3d,
Entity, Vec3d> EntityAnchorArgumentType.EntityAnchor.offset
Modifier and TypeMethodDescriptionstatic Vec3d
Vec3ArgumentType.getVec3
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) EntityAnchorArgumentType.EntityAnchor.positionAt
(Entity entity) EntityAnchorArgumentType.EntityAnchor.positionAt
(ServerCommandSource serverCommandSource) DefaultPosArgument.toAbsolutePos
(ServerCommandSource source) LookingPosArgument.toAbsolutePos
(ServerCommandSource source) PosArgument.toAbsolutePos
(ServerCommandSource source) ModifierConstructorDescriptionprivate
EntityAnchor
(String id, BiFunction<Vec3d, Entity, Vec3d> offset) private
EntityAnchor
(String id, BiFunction<Vec3d, Entity, Vec3d> offset) -
Uses of Vec3d in net.minecraft.entity
Modifier and TypeFieldDescriptionprotected Vec3d
Entity.movementMultiplier
private Vec3d
Entity.pos
private Vec3d
Entity.trackedPosition
private Vec3d
Entity.velocity
Modifier and TypeMethodDescriptionstatic Vec3d
Entity.adjustMovementForCollisions
(@Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, ShapeContext context, ReusableStream<VoxelShape> collisions) private Vec3d
Entity.adjustMovementForCollisions
(Vec3d movement) static Vec3d
Entity.adjustMovementForCollisions
(Vec3d movement, Box entityBoundingBox, ReusableStream<VoxelShape> collisions) protected Vec3d
Entity.adjustMovementForPiston
(Vec3d movement) protected Vec3d
Entity.adjustMovementForSneaking
(Vec3d movement, MovementType type) static Vec3d
Entity.adjustSingleAxisMovementForCollisions
(Vec3d movement, Box entityBoundingBox, WorldView world, ShapeContext context, ReusableStream<VoxelShape> collisions) private Vec3d
LivingEntity.applyClimbingSpeed
(Vec3d motion) Dismounting.findRespawnPos
(EntityType<?> entityType, CollisionView world, BlockPos pos, boolean ignoreInvalidPos) final Vec3d
Entity.getCameraPosVec
(float tickDelta) Entity.getClientCameraPosVec
(float tickDelta) final Vec3d
Entity.getEyePos()
Entity.getLeashOffset()
final Vec3d
Entity.getLerpedPos
(float delta) final Vec3d
Entity.getOppositeRotationVector
(float tickDelta) protected final Vec3d
Entity.getOppositeRotationVector
(float pitch, float yaw) protected static Vec3d
Entity.getPassengerDismountOffset
(double vehicleWidth, double passengerWidth, float passengerYaw) Entity.getPos()
final Vec3d
Entity.getRotationVec
(float tickDelta) Entity.getRotationVecClient()
Entity.getRotationVector()
protected final Vec3d
Entity.getRotationVector
(float pitch, float yaw) Entity.getTrackedPosition()
Entity.getVelocity()
LivingEntity.method_26317
(double double2, boolean bool, Vec3d vec3d) LivingEntity.method_26318
(Vec3d vec3d, float float2) Entity.method_30951
(float float2) private static Vec3d
Entity.movementInputToVelocity
(Vec3d movementInput, float speed, float yaw) protected Vec3d
Entity.positionInPortal
(Direction.Axis portalAxis, PortalUtil.Rectangle portalRect) protected Vec3d
LivingEntity.positionInPortal
(Direction.Axis portalAxis, PortalUtil.Rectangle portalRect) static Vec3d
LivingEntity.positionInPortal
(Vec3d pos) Entity.updatePassengerForDismount
(LivingEntity passenger) Modifier and TypeMethodDescriptionstatic Vec3d
Entity.adjustMovementForCollisions
(@Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, ShapeContext context, ReusableStream<VoxelShape> collisions) private Vec3d
Entity.adjustMovementForCollisions
(Vec3d movement) static Vec3d
Entity.adjustMovementForCollisions
(Vec3d movement, Box entityBoundingBox, ReusableStream<VoxelShape> collisions) protected Vec3d
Entity.adjustMovementForPiston
(Vec3d movement) protected Vec3d
Entity.adjustMovementForSneaking
(Vec3d movement, MovementType type) static Vec3d
Entity.adjustSingleAxisMovementForCollisions
(Vec3d movement, Box entityBoundingBox, WorldView world, ShapeContext context, ReusableStream<VoxelShape> collisions) private Vec3d
LivingEntity.applyClimbingSpeed
(Vec3d motion) static boolean
Dismounting.canPlaceEntityAt
(CollisionView world, Vec3d offset, LivingEntity entity, EntityPose pose) default Vec3f
CrossbowUser.getProjectileLaunchVelocity
(LivingEntity entity, Vec3d positionDelta, float multishotSpray) Entity.interactAt
(PlayerEntity player, Vec3d hitPos, Hand hand) void
Entity.lookAt
(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target) void
LivingEntity.lookAt
(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target) LivingEntity.method_26317
(double double2, boolean bool, Vec3d vec3d) LivingEntity.method_26318
(Vec3d vec3d, float float2) void
Entity.move
(MovementType movementType, Vec3d movement) private static Vec3d
Entity.movementInputToVelocity
(Vec3d movementInput, float speed, float yaw) static Vec3d
LivingEntity.positionInPortal
(Vec3d pos) void
Entity.refreshPositionAfterTeleport
(Vec3d pos) void
ItemSteerable.setMovementInput
(Vec3d movementInput) final void
Entity.setPosition
(Vec3d pos) void
Entity.setVelocity
(Vec3d velocity) void
Entity.slowMovement
(BlockState state, Vec3d multiplier) static void
ExperienceOrbEntity.spawn
(ServerWorld world, Vec3d pos, int amount) double
Entity.squaredDistanceTo
(Vec3d vector) default boolean
ItemSteerable.travel
(MobEntity entity, SaddledComponent saddledEntity, Vec3d movementInput) void
void
Entity.updateTrackedPosition
(Vec3d pos) void
Entity.updateVelocity
(float speed, Vec3d movementInput) private static boolean
ExperienceOrbEntity.wasMergedIntoExistingOrb
(ServerWorld world, Vec3d pos, int amount) -
Uses of Vec3d in net.minecraft.entity.ai
Modifier and TypeMethodDescriptionAboveGroundTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, double x, double z, float angle, int maxAboveSolid, int minAboveSolid) FuzzyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange) FuzzyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, ToDoubleFunction<BlockPos> scorer) NoPenaltySolidTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, double directionX, double directionZ, double rangeAngle) NoPenaltyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange) NoPenaltyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d direction) NoPenaltyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end, double angleRange) NoWaterTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, Vec3d direction, double angleRange) FuzzyTargeting.findFrom
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start) FuzzyTargeting.findTo
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end) FuzzyTargeting.findValid
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d direction, boolean posTargetInRange) FuzzyPositions.guessBest
(Supplier<BlockPos> factory, ToDoubleFunction<BlockPos> scorer) Returns thebottom center
of a highest scoring position, as determined byscorer
, out of 10 tries on positions obtained fromfactory
.FuzzyPositions.guessBestPathTarget
(PathAwareEntity entity, Supplier<BlockPos> factory) CallsFuzzyPositions.guessBest(Supplier, ToDoubleFunction)
with theentity
's path finding favor as thescorer
.Modifier and TypeMethodDescriptionNoPenaltyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d direction) NoPenaltyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end, double angleRange) NoWaterTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, Vec3d direction, double angleRange) FuzzyTargeting.findFrom
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start) FuzzyTargeting.findTo
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end) FuzzyTargeting.findValid
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d direction, boolean posTargetInRange) -
Uses of Vec3d in net.minecraft.entity.ai.brain
Modifier and TypeFieldDescriptionstatic final MemoryModuleType<Vec3d>
MemoryModuleType.RAM_TARGET
-
Uses of Vec3d in net.minecraft.entity.ai.brain.task
Modifier and TypeFieldDescriptionprivate Vec3d
RamImpactTask.direction
private final Vec3d
LongJumpTask.Target.ramVelocity
Modifier and TypeMethodDescriptionprivate Vec3d
PrepareRamTask.calculateRamTarget
(BlockPos start, BlockPos end) LookTargetUtil.find
(PathAwareEntity entity, int horizontalRange, int verticalRange) SeekSkyTask.findNearbySky
(ServerWorld world, LivingEntity entity) protected Vec3d
AquaticStrollTask.findWalkTarget
(PathAwareEntity entity) StrollTask.findWalkTarget
(PathAwareEntity entity) private Vec3d
GoToRememberedPositionTask.getPos
(PathAwareEntity entity) LongJumpTask.Target.getRammingVelocity()
Modifier and TypeMethodDescriptionLongJumpTask.getRammingVelocity
(MobEntity entity, Vec3d pos) LongJumpTask.getRammingVelocity
(MobEntity entity, Vec3d pos, int range) Modifier and TypeMethodDescriptionprivate boolean
LongJumpTask.getRammingVelocity
(MobEntity entity, Vec3d pos) LongJumpTask.getRammingVelocity
(MobEntity entity, Vec3d pos, int range) static void
LookTargetUtil.give
(LivingEntity entity, ItemStack stack, Vec3d targetLocation) private static void
GoToRememberedPositionTask.setWalkTarget
(PathAwareEntity entity, Vec3d pos, float speed) ModifierConstructorDescriptionGoToRememberedPositionTask
(MemoryModuleType<T> memoryType, float speed, int range, boolean requiresWalkTarget, Function<T, Vec3d> posRetriever) -
Uses of Vec3d in net.minecraft.entity.ai.control
-
Uses of Vec3d in net.minecraft.entity.ai.goal
Modifier and TypeMethodDescriptionIronGolemWanderAroundGoal.findRandomBlockPos()
IronGolemWanderAroundGoal.findRandomInRange()
IronGolemWanderAroundGoal.findVillagerPos()
FlyOntoTreeGoal.getTreeTarget()
FlyOntoTreeGoal.getWanderTarget()
IronGolemWanderAroundGoal.getWanderTarget()
SwimAroundGoal.getWanderTarget()
WanderAroundFarGoal.getWanderTarget()
WanderAroundGoal.getWanderTarget()
WanderAroundPointOfInterestGoal.getWanderTarget()
EscapeSunlightGoal.locateShadedPos()
-
Uses of Vec3d in net.minecraft.entity.ai.pathing
Modifier and TypeMethodDescriptionPath.getNodePosition
(Entity entity) Path.getNodePosition
(Entity entity, int index) protected Vec3d
BirdNavigation.getPos()
The position to act as if the entity is at for pathfinding purposesprotected abstract Vec3d
EntityNavigation.getPos()
The position to act as if the entity is at for pathfinding purposesprotected Vec3d
MobNavigation.getPos()
The position to act as if the entity is at for pathfinding purposesPathNode.getPos()
protected Vec3d
SwimNavigation.getPos()
The position to act as if the entity is at for pathfinding purposesModifier and TypeMethodDescriptionprivate boolean
MobNavigation.allVisibleArePassable
(int x, int y, int z, int sizeX, int sizeY, int sizeZ, Vec3d entityPos, double lookVecX, double lookVecZ) Checks whether all blocks in the box which are visible (in front of) the mob can be pathed throughprivate boolean
MobNavigation.allVisibleAreSafe
(int centerX, int centerY, int centerZ, int sizeX, int sizeY, int sizeZ, Vec3d entityPos, double lookVecX, double lookVecZ) protected boolean
BirdNavigation.canPathDirectlyThrough
(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ) protected abstract boolean
EntityNavigation.canPathDirectlyThrough
(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ) protected boolean
MobNavigation.canPathDirectlyThrough
(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ) protected boolean
SwimNavigation.canPathDirectlyThrough
(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ) protected void
EntityNavigation.checkTimeouts
(Vec3d currentPos) protected void
SwimNavigation.checkTimeouts
(Vec3d currentPos) private boolean
EntityNavigation.shouldJumpToNextNode
(Vec3d currentPos) -
Uses of Vec3d in net.minecraft.entity.boss
Modifier and TypeMethodDescriptionvoid
WitherEntity.slowMovement
(BlockState state, Vec3d multiplier) -
Uses of Vec3d in net.minecraft.entity.boss.dragon
-
Uses of Vec3d in net.minecraft.entity.boss.dragon.phase
Modifier and TypeFieldDescriptionprivate Vec3d
ChargingPlayerPhase.pathTarget
private Vec3d
HoldingPatternPhase.pathTarget
private Vec3d
LandingApproachPhase.pathTarget
private Vec3d
StrafePlayerPhase.pathTarget
private Vec3d
TakeoffPhase.pathTarget
private Vec3d
DyingPhase.target
private Vec3d
HoverPhase.target
private Vec3d
LandingPhase.target
Modifier and TypeMethodDescriptionAbstractPhase.getPathTarget()
ChargingPlayerPhase.getPathTarget()
DyingPhase.getPathTarget()
HoldingPatternPhase.getPathTarget()
HoverPhase.getPathTarget()
LandingApproachPhase.getPathTarget()
LandingPhase.getPathTarget()
Phase.getPathTarget()
StrafePlayerPhase.getPathTarget()
TakeoffPhase.getPathTarget()
-
Uses of Vec3d in net.minecraft.entity.damage
-
Uses of Vec3d in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionArmorStandEntity.getClientCameraPosVec
(float tickDelta) LeashKnotEntity.method_30951
(float float2) Modifier and TypeMethodDescriptionArmorStandEntity.interactAt
(PlayerEntity player, Vec3d hitPos, Hand hand) void
AbstractDecorationEntity.move
(MovementType movementType, Vec3d movement) void
ItemFrameEntity.move
(MovementType movementType, Vec3d movement) private EquipmentSlot
ArmorStandEntity.slotFromPosition
(Vec3d hitPos) void
-
Uses of Vec3d in net.minecraft.entity.mob
Modifier and TypeFieldDescriptionprivate final Vec3d[][]
IllusionerEntity.field_7297
(package private) Vec3d
PhantomEntity.targetPosition
Modifier and TypeMethodDescriptionprivate static Vec3d
PiglinBrain.findGround
(PiglinEntity piglin) ShulkerEntity.getVelocity()
DrownedEntity.WanderAroundOnSurfaceGoal.getWanderTarget()
Vec3d[]
IllusionerEntity.method_7065
(float float2) Modifier and TypeMethodDescriptionprivate static void
PiglinBrain.drop
(PiglinEntity piglin, List<ItemStack> list, Vec3d vec3d) void
ShulkerEntity.move
(MovementType movementType, Vec3d movement) void
VexEntity.move
(MovementType movementType, Vec3d movement) void
ShulkerEntity.setVelocity
(Vec3d velocity) void
SpiderEntity.slowMovement
(BlockState state, Vec3d multiplier) void
void
void
private boolean
GhastEntity.GhastMoveControl.willCollide
(Vec3d direction, int steps) -
Uses of Vec3d in net.minecraft.entity.passive
Modifier and TypeFieldDescriptionprivate Vec3d
BeeEntity.PollinateGoal.nextTarget
private Vec3d
PandaEntity.playingJump
Modifier and TypeMethodDescriptionprivate Vec3d
SquidEntity.applyBodyRotations
(Vec3d shootVector) BeeEntity.getLeashOffset()
FoxEntity.getLeashOffset()
IronGolemEntity.getLeashOffset()
LlamaEntity.getLeashOffset()
OcelotEntity.getLeashOffset()
ParrotEntity.getLeashOffset()
PigEntity.getLeashOffset()
RabbitEntity.getLeashOffset()
SnowGolemEntity.getLeashOffset()
StriderEntity.getLeashOffset()
WolfEntity.getLeashOffset()
BeeEntity.BeeWanderAroundGoal.getRandomLocation()
HorseBaseEntity.method_27930
(Vec3d vec3d, LivingEntity livingEntity) MerchantEntity.method_30951
(float float2) HorseBaseEntity.updatePassengerForDismount
(LivingEntity passenger) PigEntity.updatePassengerForDismount
(LivingEntity passenger) StriderEntity.updatePassengerForDismount
(LivingEntity passenger) Modifier and TypeMethodDescriptionprivate Vec3d
SquidEntity.applyBodyRotations
(Vec3d shootVector) HorseBaseEntity.method_27930
(Vec3d vec3d, LivingEntity livingEntity) void
PigEntity.setMovementInput
(Vec3d movementInput) void
StriderEntity.setMovementInput
(Vec3d movementInput) void
void
void
void
void
void
void
void
-
Uses of Vec3d in net.minecraft.entity.player
Modifier and TypeMethodDescriptionprotected Vec3d
PlayerEntity.adjustMovementForSneaking
(Vec3d movement, MovementType type) PlayerEntity.method_30951
(float float2) Modifier and TypeMethodDescriptionPlayerEntity.findRespawnPosition
(ServerWorld world, BlockPos pos, float float2, boolean bool, boolean bool2) Modifier and TypeMethodDescriptionprotected Vec3d
PlayerEntity.adjustMovementForSneaking
(Vec3d movement, MovementType type) void
PlayerEntity.slowMovement
(BlockState state, Vec3d multiplier) void
-
Uses of Vec3d in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionprotected @Nullable EntityHitResult
PersistentProjectileEntity.getEntityCollision
(Vec3d currentPosition, Vec3d nextPosition) static @Nullable EntityHitResult
ProjectileUtil.getEntityCollision
(World world, Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate) protected @Nullable EntityHitResult
TridentEntity.getEntityCollision
(Vec3d currentPosition, Vec3d nextPosition) static @Nullable EntityHitResult
ProjectileUtil.method_37226
(World world, Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate, float float2) void
PersistentProjectileEntity.move
(MovementType movementType, Vec3d movement) static @Nullable EntityHitResult
ProjectileUtil.raycast
(Entity entity, Vec3d vec3d, Vec3d vec3d2, Box box, Predicate<Entity> predicate, double double2) -
Uses of Vec3d in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptionCommandBlockMinecartEntity.CommandExecutor.getPos()
protected Vec3d
AbstractMinecartEntity.positionInPortal
(Direction.Axis portalAxis, PortalUtil.Rectangle portalRect) protected Vec3d
BoatEntity.positionInPortal
(Direction.Axis portalAxis, PortalUtil.Rectangle portalRect) AbstractMinecartEntity.snapPositionToRail
(double x, double y, double z) AbstractMinecartEntity.snapPositionToRailWithOffset
(double x, double y, double z, double offset) This method is used to determine the minecart's render orientation, by computing a position along the rail slightly before and slightly after the minecart's actual position.AbstractMinecartEntity.updatePassengerForDismount
(LivingEntity passenger) BoatEntity.updatePassengerForDismount
(LivingEntity passenger) -
Uses of Vec3d in net.minecraft.fluid
Modifier and TypeMethodDescriptionEmptyFluid.getVelocity
(BlockView world, BlockPos pos, FluidState state) FlowableFluid.getVelocity
(BlockView world, BlockPos pos, FluidState state) protected abstract Vec3d
Fluid.getVelocity
(BlockView world, BlockPos pos, FluidState state) FluidState.getVelocity
(BlockView world, BlockPos pos) -
Uses of Vec3d in net.minecraft.item
Modifier and TypeMethodDescriptionSpawnEggItem.spawnBaby
(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack) -
Uses of Vec3d in net.minecraft.loot.context
Modifier and TypeFieldDescriptionstatic final LootContextParameter<Vec3d>
LootContextParameters.ORIGIN
-
Uses of Vec3d in net.minecraft.network.packet.c2s.play
Modifier and TypeFieldDescriptionprivate final Vec3d
PlayerInteractEntityC2SPacket.InteractAtHandler.pos
Modifier and TypeMethodDescriptionvoid
PlayerInteractEntityC2SPacket.Handler.interactAt
(Hand hand, Vec3d pos) PlayerInteractEntityC2SPacket.interactAt
(Entity entity, boolean playerSneaking, Hand hand, Vec3d pos) -
Uses of Vec3d in net.minecraft.network.packet.s2c.play
Modifier and TypeMethodDescriptionEntityS2CPacket.calculateDeltaPosition
(Vec3d orig) static Vec3d
EntityS2CPacket.decodePacketCoordinates
(long x, long y, long z) LookAtS2CPacket.getTargetPosition
(World world) ModifierConstructorDescriptionEntitySpawnS2CPacket
(int id, UUID uuid, double x, double y, double z, float pitch, float yaw, EntityType<?> entityTypeId, int entityData, Vec3d velocity) EntityVelocityUpdateS2CPacket
(int id, Vec3d velocity) ExplosionS2CPacket
(double x, double y, double z, float radius, List<BlockPos> affectedBlocks, @Nullable Vec3d playerVelocity) PlaySoundIdS2CPacket
(Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch) -
Uses of Vec3d in net.minecraft.predicate.entity
Modifier and TypeMethodDescriptionboolean
DamageSourcePredicate.test
(ServerWorld world, Vec3d pos, DamageSource damageSource) boolean
boolean
LightningBoltPredicate.test
(Entity lightningBolt, ServerWorld world, @Nullable Vec3d vec3d) -
Uses of Vec3d in net.minecraft.server.command
Modifier and TypeFieldDescriptionprivate final Vec3d
ServerCommandSource.position
private final Vec3d
TeleportCommand.LookTarget.targetPos
Modifier and TypeMethodDescriptionprivate static int
ParticleCommand.execute
(ServerCommandSource source, ParticleEffect parameters, Vec3d pos, Vec3d delta, float speed, int count, boolean force, Collection<ServerPlayerEntity> viewers) private static int
PlaySoundCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, float minVolume) private static int
SummonCommand.execute
(ServerCommandSource source, Identifier entity, Vec3d pos, NbtCompound nbt, boolean initialize) private static int
LootCommand.executeSpawn
(ServerCommandSource source, Vec3d pos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) ServerCommandSource.withLookingAt
(Vec3d position) ServerCommandSource.withPosition
(Vec3d position) ModifierConstructorDescriptionLookTarget
(Vec3d targetPos) ServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String simpleName, Text name, MinecraftServer server, @Nullable Entity entity) protected
ServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String simpleName, Text name, MinecraftServer server, @Nullable Entity entity, boolean silent, com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, EntityAnchorArgumentType.EntityAnchor entityAnchor) -
Uses of Vec3d in net.minecraft.server.network
Modifier and TypeFieldDescriptionServerPlayerEntity.enteredNetherPos
private Vec3d
ServerPlayerEntity.levitationStartPos
ServerPlayNetworkHandler.requestedTeleportPos
private Vec3d
EntityTrackerEntry.velocity
Modifier and TypeMethodDescriptionEntityTrackerEntry.getLastPos()
Decodes lastX/Y/Z into a position vectorModifier and TypeMethodDescriptionvoid
ServerPlayerEntity.lookAt
(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target) -
Uses of Vec3d in net.minecraft.structure
Modifier and TypeMethodDescriptionstatic Vec3d
Structure.transformAround
(Vec3d point, BlockMirror mirror, BlockRotation rotation, BlockPos pivot) Modifier and TypeMethodDescriptionstatic Vec3d
Structure.transformAround
(Vec3d point, BlockMirror mirror, BlockRotation rotation, BlockPos pivot) -
Uses of Vec3d in net.minecraft.test
Modifier and TypeMethodDescriptionTestContext.getAbsolute
(Vec3d pos) <E extends Entity>
ETestContext.spawnEntity
(EntityType<E> type, Vec3d pos) <E extends MobEntity>
ETestContext.spawnMob
(EntityType<E> type, Vec3d pos) -
Uses of Vec3d in net.minecraft.util
Modifier and TypeMethodDescriptionCubicSampler.RgbFetcher.fetch
(int x, int y, int z) static Vec3d
CubicSampler.sampleColor
(Vec3d pos, CubicSampler.RgbFetcher rgbFetcher) Modifier and TypeMethodDescriptionstatic Vec3d
CubicSampler.sampleColor
(Vec3d pos, CubicSampler.RgbFetcher rgbFetcher) -
Uses of Vec3d in net.minecraft.util.hit
Modifier and TypeMethodDescriptionstatic BlockHitResult
BlockHitResult.createMissed
(Vec3d pos, Direction side, BlockPos blockPos) ModifierConstructorDescriptionprivate
BlockHitResult
(boolean missed, Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock) BlockHitResult
(Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock) EntityHitResult
(Entity entity, Vec3d pos) protected
-
Uses of Vec3d in net.minecraft.util.math
Modifier and TypeMethodDescriptionVec3d.add
(double x, double y, double z) Returns the sum of this vector and the given vector.Returns the sum of this vector and the given vector.Vec3d.crossProduct
(Vec3d vec) Returns the cross product of this vector and the given vector.Vec3d.floorAlongAxes
(EnumSet<Direction.Axis> axes) Applies the floor function to the coordinates chosen by the given axes.static Vec3d
Vec3d.fromPolar
(float pitch, float yaw) Converts pitch and yaw into a direction vector.static Vec3d
Converts pitch and yaw into a direction vector.Box.getCenter()
Returns the center position of this box.Performs linear interpolation from this vector to the given vector.static Vec3d
MathHelper.method_34946
(Vec3d vec3d, Vec3d vec3d2, Vec3d vec3d3, Vec3d vec3d4, double double2) Vec3d.multiply
(double value) Return a vector whose coordinates are the coordinates of this vector each multiplied by the given scalar value.Vec3d.multiply
(double x, double y, double z) Returns a vector whose coordinates are the product of each pair of coordinates in this vector and the given vector.Returns a vector whose coordinates are the product of each pair of coordinates in this vector and the given vector.Vec3d.negate()
Creates a vector with the same length but with the opposite direction.Vec3d.normalize()
Normalizes this vector.static Vec3d
Copies the given vector.static Vec3d
Vec3d.ofBottomCenter
(Vec3i vec) Creates a vector representing the bottom center of the given block position.static Vec3d
Creates a vector representing the center of the given block position.static Vec3d
Creates a vector representing the center of the given block position but with the given offset for the Y coordinate.Vec3d.relativize
(Vec3d vec) Subtracts this vector from the given vector.Vec3d.rotateX
(float angle) Rotates this vector by the given angle counterclockwise around the X axis.Vec3d.rotateY
(float angle) Rotates this vector by the given angle counterclockwise around the Y axis.Vec3d.rotateZ
(float angle) Rotates this vector by the given angle counterclockwise around the Z axis.Vec3d.subtract
(double x, double y, double z) Subtracts the given vector from this vector.Subtracts the given vector from this vector.static Vec3d
Vec3d.unpackRgb
(int rgb) Converts a packed RGB color into a vector of (red, green, blue).Modifier and TypeMethodDescriptionReturns the sum of this vector and the given vector.boolean
Checks if the given position is in this box.Vec3d.crossProduct
(Vec3d vec) Returns the cross product of this vector and the given vector.double
Vec3d.distanceTo
(Vec3d vec) Returns the distance between this vector and the given vector.double
Vec3d.dotProduct
(Vec3d vec) Returns the dot product of this vector and the given vector.static Box
boolean
Box.intersects
(Vec3d pos1, Vec3d pos2) Checks if this box intersects the box of the given positions as corners.Performs linear interpolation from this vector to the given vector.static boolean
MathHelper.method_34945
(Vec3d vec3d, Vec3d vec3d2, Box box) static Vec3d
MathHelper.method_34946
(Vec3d vec3d, Vec3d vec3d2, Vec3d vec3d3, Vec3d vec3d4, double double2) Returns a vector whose coordinates are the product of each pair of coordinates in this vector and the given vector.static Box
Creates a box that is translated byvec.x
,vec.y
,vec.z
on each axis from this box.static @Nullable BlockHitResult
Vec3d.relativize
(Vec3d vec) Subtracts this vector from the given vector.double
Vec3d.squaredDistanceTo
(Vec3d vec) Returns the squared distance between this vector and the given vector.Subtracts the given vector from this vector.Box.traceCollisionSide
(Box box, Vec3d intersectingVector, double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ) -
Uses of Vec3d in net.minecraft.util.shape
Modifier and TypeMethodDescriptionVoxelShape.getClosestPointTo
(Vec3d target) Returns the closest point in the shape totarget
.Modifier and TypeMethodDescriptionVoxelShape.getClosestPointTo
(Vec3d target) Returns the closest point in the shape totarget
. -
Uses of Vec3d in net.minecraft.village
Modifier and TypeMethodDescriptionZombieSiegeManager.getSpawnVector
(ServerWorld world, BlockPos pos) -
Uses of Vec3d in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final Vec3d
BlockStateRaycastContext.end
private final Vec3d
RaycastContext.end
final Vec3d
TeleportTarget.position
private final Vec3d
BlockStateRaycastContext.start
private final Vec3d
RaycastContext.start
final Vec3d
TeleportTarget.velocity
Modifier and TypeMethodDescriptionBlockStateRaycastContext.getEnd()
RaycastContext.getEnd()
abstract Vec3d
CommandBlockExecutor.getPos()
BlockStateRaycastContext.getStart()
RaycastContext.getStart()
Modifier and TypeMethodDescriptionCollisionView.findClosestCollision
(@Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z) Modifier and TypeMethodDescriptionCollisionView.findClosestCollision
(@Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z) static <T,
C> T BlockView.raycast
(Vec3d start, Vec3d end, C context, BiFunction<C, BlockPos, T> blockHitFactory, Function<C, T> missFactory) default @Nullable BlockHitResult
BlockView.raycastBlock
(Vec3d start, Vec3d end, BlockPos pos, VoxelShape shape, BlockState state) ModifierConstructorDescriptionBlockStateRaycastContext
(Vec3d start, Vec3d end, Predicate<BlockState> statePredicate) RaycastContext
(Vec3d start, Vec3d end, RaycastContext.ShapeType shapeType, RaycastContext.FluidHandling fluidHandling, Entity entity) TeleportTarget
(Vec3d position, Vec3d velocity, float yaw, float pitch) -
Uses of Vec3d in net.minecraft.world.dimension
Modifier and TypeMethodDescriptionstatic Vec3d
AreaHelper.entityPosInPortal
(PortalUtil.Rectangle portalRect, Direction.Axis portalAxis, Vec3d entityPos, EntityDimensions entityDimensions) Modifier and TypeMethodDescriptionstatic Vec3d
AreaHelper.entityPosInPortal
(PortalUtil.Rectangle portalRect, Direction.Axis portalAxis, Vec3d entityPos, EntityDimensions entityDimensions) static TeleportTarget
AreaHelper.getNetherTeleportTarget
(ServerWorld destination, PortalUtil.Rectangle portalRect, Direction.Axis portalAxis, Vec3d offset, EntityDimensions dimensions, Vec3d velocity, float yaw, float pitch) Determines aTeleportTarget
based on a specific portal. -
Uses of Vec3d in net.minecraft.world.explosion
Modifier and TypeMethodDescriptionstatic float
Explosion.getExposure
(Vec3d source, Entity entity) -
Uses of Vec3d in net.minecraft.world.gen.feature