Uses of Class
net.minecraft.util.math.Vec3d
Packages that use Vec3d
Package
Description
This and its subpackages make up the brain system used by some modern Minecraft entities,
such as villagers, piglins, and axolotls.
The basic AI system for Minecraft living entities.
-
Uses of Vec3d in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type Vec3dModifier and TypeMethodDescriptionboolean
LevitationCriterion.Conditions.matches
(ServerPlayerEntity player, Vec3d startPos, int duration) boolean
TravelCriterion.Conditions.matches
(ServerWorld world, Vec3d startPos, Vec3d endPos) boolean
TargetHitCriterion.Conditions.test
(LootContext projectileContext, Vec3d hitPos, int signalStrength) void
LevitationCriterion.trigger
(ServerPlayerEntity player, Vec3d startPos, int duration) void
TargetHitCriterion.trigger
(ServerPlayerEntity player, Entity projectile, Vec3d hitPos, int signalStrength) void
TravelCriterion.trigger
(ServerPlayerEntity player, Vec3d startPos) -
Uses of Vec3d in net.minecraft.block
Fields in net.minecraft.block declared as Vec3dFields in net.minecraft.block with type parameters of type Vec3dModifier and TypeFieldDescriptionprivate static final Int2ObjectMap<List<Vec3d>>
CandleBlock.CANDLES_TO_PARTICLE_OFFSETS
CandleCakeBlock.PARTICLE_OFFSETS
Methods in net.minecraft.block that return Vec3dModifier and TypeMethodDescriptionAbstractBlock.AbstractBlockState.getModelOffset
(BlockView world, BlockPos pos) Methods in net.minecraft.block that return types with arguments of type Vec3dModifier and TypeMethodDescriptionRespawnAnchorBlock.findRespawnPosition
(EntityType<?> entity, CollisionView world, BlockPos pos) RespawnAnchorBlock.findRespawnPosition
(EntityType<?> entity, CollisionView world, BlockPos pos, boolean ignoreInvalidPos) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, float spawnAngle) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, int[][] possibleOffsets, boolean ignoreInvalidPos) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, Direction respawnDirection) AbstractCandleBlock.getParticleOffsets
(BlockState state) CandleBlock.getParticleOffsets
(BlockState state) CandleCakeBlock.getParticleOffsets
(BlockState state) Methods in net.minecraft.block with parameters of type Vec3dModifier 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
Methods in net.minecraft.block.entity that return Vec3dModifier and TypeMethodDescriptionprivate static Vec3d
EndGatewayBlockEntity.findTeleportLocation
(ServerWorld world, BlockPos pos) Methods in net.minecraft.block.entity with parameters of type Vec3dModifier 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
Methods in net.minecraft.client with parameters of type Vec3dModifier and TypeMethodDescriptionprivate void
Keyboard.copyEntity
(Identifier id, Vec3d pos, @Nullable NbtCompound nbt) -
Uses of Vec3d in net.minecraft.client.gui.hud
Fields in net.minecraft.client.gui.hud declared as Vec3dMethods in net.minecraft.client.gui.hud that return Vec3dMethods in net.minecraft.client.gui.hud with parameters of type Vec3dConstructors in net.minecraft.client.gui.hud with parameters of type Vec3d -
Uses of Vec3d in net.minecraft.client.network
Fields in net.minecraft.client.network declared as Vec3dModifier and TypeFieldDescription(package private) final Vec3d
PendingUpdateManager.PendingUpdate.playerPos
Methods in net.minecraft.client.network that return Vec3dModifier and TypeMethodDescriptionClientPlayerEntity.getLeashPos
(float delta) Returns the position of the leash this entity holds.Methods in net.minecraft.client.network with parameters of type Vec3dModifier and TypeMethodDescriptionprotected boolean
ClientPlayerEntity.hasCollidedSoftly
(Vec3d adjustedMovement) void
ClientPlayerEntity.move
(MovementType movementType, Vec3d movement) Constructors in net.minecraft.client.network with parameters of type Vec3dModifierConstructorDescription(package private)
PendingUpdate
(int sequence, BlockState blockState, Vec3d playerPos) -
Uses of Vec3d in net.minecraft.client.particle
Constructors in net.minecraft.client.particle with parameters of type Vec3dModifierConstructorDescriptionprivate
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
Fields in net.minecraft.client.render declared as Vec3dModifier and TypeFieldDescription(package private) final Vec3d
Camera.Projection.center
private Vec3d
WorldRenderer.lastCloudsColor
private Vec3d
Camera.pos
private final Vec3d
Camera.Projection.x
Half of the width (x) of the rectangle.private final Vec3d
Camera.Projection.y
Half of the height (y) of the rectangle.Methods in net.minecraft.client.render that return Vec3dModifier and TypeMethodDescriptionabstract Vec3d
DimensionEffects.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.DimensionEffects.End.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.DimensionEffects.Nether.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.DimensionEffects.Overworld.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.Camera.Projection.getBottomLeft()
Camera.Projection.getBottomRight()
Camera.getPos()
Camera.Projection.getPosition
(float factorX, float factorY) Camera.Projection.getTopLeft()
Camera.Projection.getTopRight()
Methods in net.minecraft.client.render with parameters of type Vec3dModifier and TypeMethodDescriptionabstract Vec3d
DimensionEffects.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.DimensionEffects.End.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.DimensionEffects.Nether.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.DimensionEffects.Overworld.adjustFogColor
(Vec3d color, float sunHeight) Transforms the given fog color based on the current height of the sun.private void
WorldRenderer.collectRenderableChunks
(LinkedHashSet<WorldRenderer.ChunkInfo> chunks, WorldRenderer.ChunkInfoList chunkInfoList, Vec3d cameraPos, Queue<WorldRenderer.ChunkInfo> queue, boolean chunkCullingEnabled) private BufferBuilder.BuiltBuffer
WorldRenderer.renderClouds
(BufferBuilder builder, double x, double y, double z, Vec3d color) protected void
void
WorldRenderer.setupFrustum
(MatrixStack matrices, Vec3d pos, Matrix4f projectionMatrix) Constructors in net.minecraft.client.render with parameters of type Vec3d -
Uses of Vec3d in net.minecraft.client.render.block.entity
Methods in net.minecraft.client.render.block.entity with parameters of type Vec3dModifier and TypeMethodDescriptionboolean
BeaconBlockEntityRenderer.isInRenderDistance
(BeaconBlockEntity beaconBlockEntity, Vec3d vec3d) default boolean
BlockEntityRenderer.isInRenderDistance
(T blockEntity, Vec3d pos) -
Uses of Vec3d in net.minecraft.client.render.chunk
Fields in net.minecraft.client.render.chunk declared as Vec3dMethods in net.minecraft.client.render.chunk that return Vec3dMethods in net.minecraft.client.render.chunk with parameters of type Vec3d -
Uses of Vec3d in net.minecraft.client.render.debug
Fields in net.minecraft.client.render.debug declared as Vec3dModifier and TypeFieldDescriptionprivate final Vec3d
GameEventDebugRenderer.Entry.pos
The field for thepos
record component.Methods in net.minecraft.client.render.debug that return Vec3dModifier and TypeMethodDescriptionGameEventDebugRenderer.Entry.pos()
Returns the value of thepos
record component.Methods in net.minecraft.client.render.debug that return types with arguments of type Vec3dModifier and TypeMethodDescriptionMethods in net.minecraft.client.render.debug with parameters of type Vec3dModifier and TypeMethodDescriptionvoid
boolean
Constructors in net.minecraft.client.render.debug with parameters of type Vec3d -
Uses of Vec3d in net.minecraft.client.render.entity
Methods in net.minecraft.client.render.entity that return Vec3dModifier 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
Fields in net.minecraft.client.sound declared as Vec3dMethods in net.minecraft.client.sound that return Vec3dMethods in net.minecraft.client.sound with parameters of type Vec3dModifier and TypeMethodDescriptionvoid
SoundListener.setPosition
(Vec3d position) void
Source.setPosition
(Vec3d pos) -
Uses of Vec3d in net.minecraft.client.util
Methods in net.minecraft.client.util that return Vec3dModifier and TypeMethodDescriptionprivate static Vec3d
ParticleUtil.getRandomVelocity
(Random random) Methods in net.minecraft.client.util with parameters of type Vec3dModifier and TypeMethodDescriptionstatic void
ParticleUtil.spawnParticle
(World world, BlockPos pos, Direction direction, ParticleEffect effect, Vec3d velocity, double offsetMultiplier) Method parameters in net.minecraft.client.util with type arguments of type Vec3dModifier and TypeMethodDescriptionstatic void
ParticleUtil.spawnParticles
(World world, BlockPos pos, ParticleEffect effect, IntProvider count, Direction direction, Supplier<Vec3d> velocity, double offsetMultiplier) -
Uses of Vec3d in net.minecraft.client.world
Methods in net.minecraft.client.world that return Vec3dModifier and TypeMethodDescriptionClientWorld.getCloudsColor
(float tickDelta) ClientWorld.getSkyColor
(Vec3d cameraPos, float tickDelta) Methods in net.minecraft.client.world with parameters of type Vec3dModifier and TypeMethodDescriptionvoid
ClientWorld.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.ClientWorld.getSkyColor
(Vec3d cameraPos, float tickDelta) void
ClientWorld.processPendingUpdate
(BlockPos pos, BlockState state, Vec3d playerPos) -
Uses of Vec3d in net.minecraft.command
Fields in net.minecraft.command with type parameters of type Vec3dModifier 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
Methods in net.minecraft.command that return types with arguments of type Vec3dModifier and TypeMethodDescriptionBiConsumer<Vec3d,
List<? extends Entity>> EntitySelectorReader.getSorter()
Methods in net.minecraft.command with parameters of type Vec3dModifier and TypeMethodDescriptionprivate void
EntitySelector.appendEntitiesFromWorld
(List<Entity> result, ServerWorld world, Vec3d pos, Predicate<Entity> predicate) EntitySelector.getEntities
(Vec3d pos, List<T> entities) EntitySelector.getPositionPredicate
(Vec3d pos) Method parameters in net.minecraft.command with type arguments of type Vec3dModifier and TypeMethodDescriptionvoid
EntitySelectorReader.setSorter
(BiConsumer<Vec3d, List<? extends Entity>> sorter) Constructor parameters in net.minecraft.command with type arguments of type Vec3dModifierConstructorDescriptionEntitySelector
(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
Fields in net.minecraft.command.argument with type parameters of type Vec3dModifier and TypeFieldDescriptionprivate final BiFunction<Vec3d,
Entity, Vec3d> EntityAnchorArgumentType.EntityAnchor.offset
private final BiFunction<Vec3d,
Entity, Vec3d> EntityAnchorArgumentType.EntityAnchor.offset
Methods in net.minecraft.command.argument that return Vec3dModifier and TypeMethodDescriptionstatic Vec3d
Vec3ArgumentType.getVec3
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) EntityAnchorArgumentType.EntityAnchor.positionAt
(Entity entity) EntityAnchorArgumentType.EntityAnchor.positionAt
(ServerCommandSource source) DefaultPosArgument.toAbsolutePos
(ServerCommandSource source) LookingPosArgument.toAbsolutePos
(ServerCommandSource source) PosArgument.toAbsolutePos
(ServerCommandSource source) Constructor parameters in net.minecraft.command.argument with type arguments of type Vec3dModifierConstructorDescriptionprivate
EntityAnchor
(String id, BiFunction<Vec3d, Entity, Vec3d> offset) private
EntityAnchor
(String id, BiFunction<Vec3d, Entity, Vec3d> offset) -
Uses of Vec3d in net.minecraft.entity
Fields in net.minecraft.entity declared as Vec3dModifier and TypeFieldDescriptionprotected Vec3d
Entity.movementMultiplier
private Vec3d
Entity.pos
private Vec3d
TrackedPosition.pos
private Vec3d
Entity.velocity
Methods in net.minecraft.entity that return Vec3dModifier and TypeMethodDescriptionstatic Vec3d
Entity.adjustMovementForCollisions
(@Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, List<VoxelShape> collisions) private Vec3d
Entity.adjustMovementForCollisions
(Vec3d movement) private static Vec3d
Entity.adjustMovementForCollisions
(Vec3d movement, Box entityBoundingBox, List<VoxelShape> collisions) protected Vec3d
Entity.adjustMovementForPiston
(Vec3d movement) protected Vec3d
Entity.adjustMovementForSneaking
(Vec3d movement, MovementType type) private Vec3d
LivingEntity.applyClimbingSpeed
(Vec3d motion) LivingEntity.applyFluidMovingSpeed
(double gravity, boolean falling, Vec3d motion) LivingEntity.applyMovementInput
(Vec3d movementInput, float slipperiness) Dismounting.findRespawnPos
(EntityType<?> entityType, CollisionView world, BlockPos pos, boolean ignoreInvalidPos) final Vec3d
Entity.getCameraPosVec
(float tickDelta) Entity.getClientCameraPosVec
(float tickDelta) final Vec3d
Entity.getEyePos()
Returns the position of the eye.Entity.getHandPosOffset
(Item item) Returns the offset of the hand that holdsitem
.Entity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.Entity.getLeashPos
(float delta) Returns the position of the leash this entity holds.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) Returns the offset for dismounting the passenger.Entity.getPos()
Returns the exact position of the entity.final Vec3d
Entity.getRotationVec
(float tickDelta) Entity.getRotationVecClient()
Entity.getRotationVector()
protected final Vec3d
Entity.getRotationVector
(float pitch, float yaw) Entity.getSyncedPos()
Returns the position of the entity synced to clients.Entity.getVelocity()
private static Vec3d
Entity.movementInputToVelocity
(Vec3d movementInput, float speed, float yaw) Returns a vector with the horizontal direction beingyaw
degrees and the absolute value beingmovementInput
normalized and multiplied byspeed
.protected Vec3d
Entity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.protected Vec3d
LivingEntity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.static Vec3d
LivingEntity.positionInPortal
(Vec3d pos) Entity.updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
.TrackedPosition.withDelta
(long x, long y, long z) Methods in net.minecraft.entity with parameters of type Vec3dModifier and TypeMethodDescriptionstatic Vec3d
Entity.adjustMovementForCollisions
(@Nullable Entity entity, Vec3d movement, Box entityBoundingBox, World world, List<VoxelShape> collisions) private Vec3d
Entity.adjustMovementForCollisions
(Vec3d movement) private static Vec3d
Entity.adjustMovementForCollisions
(Vec3d movement, Box entityBoundingBox, List<VoxelShape> collisions) protected Vec3d
Entity.adjustMovementForPiston
(Vec3d movement) protected Vec3d
Entity.adjustMovementForSneaking
(Vec3d movement, MovementType type) private Vec3d
LivingEntity.applyClimbingSpeed
(Vec3d motion) LivingEntity.applyFluidMovingSpeed
(double gravity, boolean falling, Vec3d motion) LivingEntity.applyMovementInput
(Vec3d movementInput, float slipperiness) static boolean
Dismounting.canPlaceEntityAt
(CollisionView world, Vec3d offset, LivingEntity entity, EntityPose pose) long
long
long
default Vec3f
CrossbowUser.getProjectileLaunchVelocity
(LivingEntity entity, Vec3d positionDelta, float multishotSpray) protected boolean
Entity.hasCollidedSoftly
(Vec3d adjustedMovement) Entity.interactAt
(PlayerEntity player, Vec3d hitPos, Hand hand) Called when the player interacts with the entity at the specific position.void
Entity.lookAt
(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target) Changes this entity's pitch and yaw to look attarget
.void
LivingEntity.lookAt
(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target) Changes this entity's pitch and yaw to look attarget
.void
Entity.move
(MovementType movementType, Vec3d movement) private static Vec3d
Entity.movementInputToVelocity
(Vec3d movementInput, float speed, float yaw) Returns a vector with the horizontal direction beingyaw
degrees and the absolute value beingmovementInput
normalized and multiplied byspeed
.static Vec3d
LivingEntity.positionInPortal
(Vec3d pos) void
Entity.refreshPositionAfterTeleport
(Vec3d pos) void
ItemSteerable.setMovementInput
(Vec3d movementInput) void
final void
Entity.setPosition
(Vec3d pos) Sets the position and refreshes the bounding box.void
Entity.setVelocity
(Vec3d velocity) void
Entity.slowMovement
(BlockState state, Vec3d multiplier) CallsEntity.onLanding()
and slows this entity.static void
ExperienceOrbEntity.spawn
(ServerWorld world, Vec3d pos, int amount) double
Entity.squaredDistanceTo
(Vec3d vector) Returns the squared distance between this entity and the given position.default boolean
ItemSteerable.travel
(MobEntity entity, SaddledComponent saddledEntity, Vec3d movementInput) void
Allows you to do certain speed and velocity calculations.void
Entity.updateVelocity
(float speed, Vec3d movementInput) Updates the entity's velocity to add a vector in the direction of the entity's yaw whose absolute value ismovementInput
normalized and multiplied byspeed
.private static boolean
ExperienceOrbEntity.wasMergedIntoExistingOrb
(ServerWorld world, Vec3d pos, int amount) -
Uses of Vec3d in net.minecraft.entity.ai
Methods in net.minecraft.entity.ai that return Vec3dModifier 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) Paths to a random reachable position with positive path-finding favorability.FuzzyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, ToDoubleFunction<BlockPos> scorer) Paths to a random reachable position with positive path-finding favorability computed by a given function.NoPenaltySolidTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, double directionX, double directionZ, double rangeAngle) NoPenaltyTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange) Paths to a random reachable position with no penalty.NoWaterTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, Vec3d direction, double angleRange) FuzzyTargeting.findFrom
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start) Paths to a random reachable position leading away from a given starting point.NoPenaltyTargeting.findFrom
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start) Paths to a position leading away from a given starting point.FuzzyTargeting.findTo
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end) Paths to a random reachable position leading towards a given end-point.NoPenaltyTargeting.findTo
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end, double angleRange) Paths to a position leading towards a given end-point.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
.Methods in net.minecraft.entity.ai with parameters of type Vec3dModifier and TypeMethodDescriptionNoWaterTargeting.find
(PathAwareEntity entity, int horizontalRange, int verticalRange, int startHeight, Vec3d direction, double angleRange) FuzzyTargeting.findFrom
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start) Paths to a random reachable position leading away from a given starting point.NoPenaltyTargeting.findFrom
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d start) Paths to a position leading away from a given starting point.FuzzyTargeting.findTo
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end) Paths to a random reachable position leading towards a given end-point.NoPenaltyTargeting.findTo
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d end, double angleRange) Paths to a position leading towards a given end-point.FuzzyTargeting.findValid
(PathAwareEntity entity, int horizontalRange, int verticalRange, Vec3d direction, boolean posTargetInRange) -
Uses of Vec3d in net.minecraft.entity.ai.brain
Fields in net.minecraft.entity.ai.brain declared as Vec3dFields in net.minecraft.entity.ai.brain with type parameters of type Vec3dModifier and TypeFieldDescriptionstatic final MemoryModuleType<Vec3d>
MemoryModuleType.RAM_TARGET
Methods in net.minecraft.entity.ai.brain that return Vec3dModifier and TypeMethodDescriptionBlockPosLookTarget.getPos()
EntityLookTarget.getPos()
LookTarget.getPos()
Constructors in net.minecraft.entity.ai.brain with parameters of type Vec3d -
Uses of Vec3d in net.minecraft.entity.ai.brain.task
Fields in net.minecraft.entity.ai.brain.task declared as Vec3dModifier and TypeFieldDescriptionprivate Vec3d
RamImpactTask.direction
LongJumpTask.lastTarget
private Vec3d
FrogEatEntityTask.targetPos
Fields in net.minecraft.entity.ai.brain.task with type parameters of type Vec3dMethods in net.minecraft.entity.ai.brain.task that return Vec3dModifier and TypeMethodDescriptionprivate Vec3d
PrepareRamTask.calculateRamTarget
(BlockPos start, BlockPos end) LookTargetUtil.find
(PathAwareEntity entity, int horizontalRange, int verticalRange) SeekSkyTask.findNearbySky
(ServerWorld world, LivingEntity entity) WalkTask.findTarget
(PathAwareEntity entity, ServerWorld world) AquaticStrollTask.findWalkTarget
(PathAwareEntity entity) protected Vec3d
NoPenaltyStrollTask.findWalkTarget
(PathAwareEntity entity) StrollTask.findWalkTarget
(PathAwareEntity entity) private Vec3d
GoToRememberedPositionTask.getPos
(PathAwareEntity entity) LongJumpTask.getRammingVelocity
(MobEntity entity, Vec3d pos) LongJumpTask.getRammingVelocity
(MobEntity entity, Vec3d pos, int range) private static Vec3d
GiveInventoryToLookTargetTask.offsetTarget
(LookTarget target) Methods in net.minecraft.entity.ai.brain.task with parameters of type Vec3dModifier 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) static void
LookTargetUtil.give
(LivingEntity entity, ItemStack stack, Vec3d targetLocation, Vec3d velocityFactor, float yOffset) static void
GiveInventoryToLookTargetTask.playThrowSound
(LivingEntity entity, ItemStack stack, Vec3d target) private static void
GoToRememberedPositionTask.setWalkTarget
(PathAwareEntity entity, Vec3d pos, float speed) Constructor parameters in net.minecraft.entity.ai.brain.task with type arguments of type Vec3dModifierConstructorDescriptionGoToRememberedPositionTask
(MemoryModuleType<T> memoryType, float speed, int range, boolean requiresWalkTarget, Function<T, Vec3d> posRetriever) -
Uses of Vec3d in net.minecraft.entity.ai.control
Methods in net.minecraft.entity.ai.control with parameters of type Vec3d -
Uses of Vec3d in net.minecraft.entity.ai.goal
Methods in net.minecraft.entity.ai.goal that return Vec3dModifier and TypeMethodDescriptionIronGolemWanderAroundGoal.findRandomBlockPos()
IronGolemWanderAroundGoal.findRandomInRange()
IronGolemWanderAroundGoal.findVillagerPos()
FlyGoal.getWanderTarget()
IronGolemWanderAroundGoal.getWanderTarget()
SwimAroundGoal.getWanderTarget()
WanderAroundFarGoal.getWanderTarget()
WanderAroundGoal.getWanderTarget()
WanderAroundPointOfInterestGoal.getWanderTarget()
EscapeSunlightGoal.locateShadedPos()
-
Uses of Vec3d in net.minecraft.entity.ai.pathing
Fields in net.minecraft.entity.ai.pathing declared as Vec3dMethods in net.minecraft.entity.ai.pathing that return Vec3dModifier 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 purposesMethods in net.minecraft.entity.ai.pathing with parameters of type Vec3dModifier and TypeMethodDescriptionprotected double
EntityNavigation.adjustTargetY
(Vec3d pos) protected double
SwimNavigation.adjustTargetY
(Vec3d pos) protected boolean
EntityNavigation.canPathDirectlyThrough
(Vec3d origin, Vec3d target) protected boolean
SwimNavigation.canPathDirectlyThrough
(Vec3d origin, Vec3d target) protected void
EntityNavigation.checkTimeouts
(Vec3d currentPos) protected static boolean
EntityNavigation.doesNotCollide
(MobEntity entity, Vec3d startPos, Vec3d entityPos) private boolean
EntityNavigation.shouldJumpToNextNode
(Vec3d currentPos) -
Uses of Vec3d in net.minecraft.entity.boss
Methods in net.minecraft.entity.boss with parameters of type Vec3dModifier and TypeMethodDescriptionvoid
WitherEntity.slowMovement
(BlockState state, Vec3d multiplier) CallsEntity.onLanding()
and slows this entity. -
Uses of Vec3d in net.minecraft.entity.boss.dragon
Methods in net.minecraft.entity.boss.dragon that return Vec3d -
Uses of Vec3d in net.minecraft.entity.boss.dragon.phase
Fields in net.minecraft.entity.boss.dragon.phase declared as Vec3dModifier and TypeFieldDescriptionChargingPlayerPhase.pathTarget
HoldingPatternPhase.pathTarget
LandingApproachPhase.pathTarget
StrafePlayerPhase.pathTarget
TakeoffPhase.pathTarget
DyingPhase.target
HoverPhase.target
LandingPhase.target
Methods in net.minecraft.entity.boss.dragon.phase that return Vec3dModifier and TypeMethodDescriptionAbstractPhase.getPathTarget()
ChargingPlayerPhase.getPathTarget()
DyingPhase.getPathTarget()
HoldingPatternPhase.getPathTarget()
HoverPhase.getPathTarget()
LandingApproachPhase.getPathTarget()
LandingPhase.getPathTarget()
Phase.getPathTarget()
StrafePlayerPhase.getPathTarget()
TakeoffPhase.getPathTarget()
Methods in net.minecraft.entity.boss.dragon.phase with parameters of type Vec3d -
Uses of Vec3d in net.minecraft.entity.damage
Methods in net.minecraft.entity.damage that return Vec3d -
Uses of Vec3d in net.minecraft.entity.decoration
Methods in net.minecraft.entity.decoration that return Vec3dModifier and TypeMethodDescriptionArmorStandEntity.getClientCameraPosVec
(float tickDelta) LeashKnotEntity.getLeashPos
(float delta) Returns the position of the leash this entity holds.Methods in net.minecraft.entity.decoration with parameters of type Vec3dModifier and TypeMethodDescriptionprivate EquipmentSlot
ArmorStandEntity.getSlotFromPosition
(Vec3d hitPos) ArmorStandEntity.interactAt
(PlayerEntity player, Vec3d hitPos, Hand hand) Called when the player interacts with the entity at the specific position.void
AbstractDecorationEntity.move
(MovementType movementType, Vec3d movement) void
ItemFrameEntity.move
(MovementType movementType, Vec3d movement) void
Allows you to do certain speed and velocity calculations. -
Uses of Vec3d in net.minecraft.entity.decoration.painting
Methods in net.minecraft.entity.decoration.painting that return Vec3dModifier and TypeMethodDescriptionPaintingEntity.getSyncedPos()
Returns the position of the entity synced to clients. -
Uses of Vec3d in net.minecraft.entity.effect
Methods in net.minecraft.entity.effect with parameters of type Vec3dModifier and TypeMethodDescriptionstatic List<ServerPlayerEntity>
StatusEffectUtil.addEffectToPlayersWithinDistance
(ServerWorld world, @Nullable Entity entity, Vec3d origin, double range, StatusEffectInstance statusEffectInstance, int duration) -
Uses of Vec3d in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob declared as Vec3dModifier and TypeFieldDescriptionprivate final Vec3d[][]
IllusionerEntity.field_7297
(package private) Vec3d
PhantomEntity.targetPosition
Methods in net.minecraft.entity.mob that return Vec3dModifier and TypeMethodDescriptionprivate static Vec3d
PiglinBrain.findGround
(PiglinEntity piglin) ShulkerEntity.getVelocity()
DrownedEntity.WanderAroundOnSurfaceGoal.getWanderTarget()
Vec3d[]
IllusionerEntity.method_7065
(float float2) Methods in net.minecraft.entity.mob that return types with arguments of type Vec3dMethods in net.minecraft.entity.mob with parameters of type Vec3dModifier and TypeMethodDescriptionstatic void
WardenEntity.addDarknessToClosePlayers
(ServerWorld world, Vec3d pos, @Nullable Entity entity, int range) private static void
PiglinBrain.drop
(PiglinEntity piglin, List<ItemStack> items, Vec3d pos) 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) CallsEntity.onLanding()
and slows this entity.void
Allows you to do certain speed and velocity calculations.void
Allows you to do certain speed and velocity calculations.void
Allows you to do certain speed and velocity calculations.private boolean
GhastEntity.GhastMoveControl.willCollide
(Vec3d direction, int steps) -
Uses of Vec3d in net.minecraft.entity.passive
Fields in net.minecraft.entity.passive declared as Vec3dModifier and TypeFieldDescriptionBeeEntity.PollinateGoal.nextTarget
private Vec3d
PandaEntity.playingJump
Methods in net.minecraft.entity.passive that return Vec3dModifier and TypeMethodDescriptionprivate Vec3d
SquidEntity.applyBodyRotations
(Vec3d shootVector) AllayEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.BeeEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.FoxEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.IronGolemEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.LlamaEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.OcelotEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.ParrotEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.PigEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.RabbitEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.SnowGolemEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.StriderEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.WolfEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.MerchantEntity.getLeashPos
(float delta) Returns the position of the leash this entity holds.protected Vec3d
AxolotlSwimNavigation.getPos()
The position to act as if the entity is at for pathfinding purposesBeeEntity.BeeWanderAroundGoal.getRandomLocation()
ParrotEntity.FlyOntoTreeGoal.getWanderTarget()
AbstractHorseEntity.locateSafeDismountingPos
(Vec3d offset, LivingEntity passenger) ParrotEntity.FlyOntoTreeGoal.locateTree()
AbstractHorseEntity.updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
.PigEntity.updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
.StriderEntity.updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
.Methods in net.minecraft.entity.passive with parameters of type Vec3dModifier and TypeMethodDescriptionprotected double
AxolotlSwimNavigation.adjustTargetY
(Vec3d pos) private Vec3d
SquidEntity.applyBodyRotations
(Vec3d shootVector) protected boolean
AxolotlSwimNavigation.canPathDirectlyThrough
(Vec3d origin, Vec3d target) AbstractHorseEntity.locateSafeDismountingPos
(Vec3d offset, LivingEntity passenger) void
PigEntity.setMovementInput
(Vec3d movementInput) void
StriderEntity.setMovementInput
(Vec3d movementInput) void
Allows you to do certain speed and velocity calculations.void
Allows you to do certain speed and velocity calculations.void
Allows you to do certain speed and velocity calculations.void
Allows you to do certain speed and velocity calculations.void
Allows you to do certain speed and velocity calculations.void
Allows you to do certain speed and velocity calculations.void
Allows you to do certain speed and velocity calculations.void
Allows you to do certain speed and velocity calculations.void
Allows you to do certain speed and velocity calculations.void
Allows you to do certain speed and velocity calculations. -
Uses of Vec3d in net.minecraft.entity.player
Methods in net.minecraft.entity.player that return Vec3dModifier and TypeMethodDescriptionprotected Vec3d
PlayerEntity.adjustMovementForSneaking
(Vec3d movement, MovementType type) PlayerEntity.getLeashPos
(float delta) Returns the position of the leash this entity holds.Methods in net.minecraft.entity.player that return types with arguments of type Vec3dModifier and TypeMethodDescriptionPlayerEntity.findRespawnPosition
(ServerWorld world, BlockPos pos, float angle, boolean forced, boolean alive) Finds the precise respawn position from aBlockPos
in a world.Methods in net.minecraft.entity.player with parameters of type Vec3dModifier and TypeMethodDescriptionprotected Vec3d
PlayerEntity.adjustMovementForSneaking
(Vec3d movement, MovementType type) void
PlayerEntity.slowMovement
(BlockState state, Vec3d multiplier) CallsEntity.onLanding()
and slows this entity.void
Allows you to do certain speed and velocity calculations. -
Uses of Vec3d in net.minecraft.entity.projectile
Methods in net.minecraft.entity.projectile with parameters of type Vec3dModifier and TypeMethodDescriptionprotected @Nullable EntityHitResult
PersistentProjectileEntity.getEntityCollision
(Vec3d currentPosition, Vec3d nextPosition) static @Nullable EntityHitResult
ProjectileUtil.getEntityCollision
(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate) static @Nullable EntityHitResult
ProjectileUtil.getEntityCollision
(World world, Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, float float2) protected @Nullable EntityHitResult
TridentEntity.getEntityCollision
(Vec3d currentPosition, Vec3d nextPosition) void
PersistentProjectileEntity.move
(MovementType movementType, Vec3d movement) static @Nullable EntityHitResult
ProjectileUtil.raycast
(Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, double double2) -
Uses of Vec3d in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle that return Vec3dModifier and TypeMethodDescriptionCommandBlockMinecartEntity.CommandExecutor.getPos()
VehicleInventory.getPos()
protected Vec3d
AbstractMinecartEntity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.protected Vec3d
BoatEntity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.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) Returns the position of the dismountedpassenger
.BoatEntity.updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
. -
Uses of Vec3d in net.minecraft.fluid
Methods in net.minecraft.fluid that return Vec3dModifier 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
Methods in net.minecraft.item that return Vec3dMethods in net.minecraft.item with parameters of type Vec3dModifier 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
Fields in net.minecraft.loot.context with type parameters of type Vec3dModifier and TypeFieldDescriptionstatic final LootContextParameter<Vec3d>
LootContextParameters.ORIGIN
-
Uses of Vec3d in net.minecraft.network.packet.c2s.play
Fields in net.minecraft.network.packet.c2s.play declared as Vec3dModifier and TypeFieldDescriptionprivate final Vec3d
PlayerInteractEntityC2SPacket.InteractAtHandler.pos
Methods in net.minecraft.network.packet.c2s.play with parameters of type Vec3dModifier and TypeMethodDescriptionvoid
PlayerInteractEntityC2SPacket.Handler.interactAt
(Hand hand, Vec3d pos) PlayerInteractEntityC2SPacket.interactAt
(Entity entity, boolean playerSneaking, Hand hand, Vec3d pos) Constructors in net.minecraft.network.packet.c2s.play with parameters of type Vec3d -
Uses of Vec3d in net.minecraft.network.packet.s2c.play
Methods in net.minecraft.network.packet.s2c.play that return Vec3dConstructors in net.minecraft.network.packet.s2c.play with parameters of type Vec3dModifierConstructorDescriptionEntitySpawnS2CPacket
(int id, UUID uuid, double x, double y, double z, float pitch, float yaw, EntityType<?> entityTypeId, int entityData, Vec3d velocity, double headYaw) 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, long seed) -
Uses of Vec3d in net.minecraft.predicate.entity
Methods in net.minecraft.predicate.entity with parameters of type Vec3dModifier and TypeMethodDescriptionboolean
DamageSourcePredicate.test
(ServerWorld world, Vec3d pos, DamageSource damageSource) boolean
boolean
FishingHookPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
LightningBoltPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
PlayerPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
SlimePredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
TypeSpecificPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) -
Uses of Vec3d in net.minecraft.server.chase
Fields in net.minecraft.server.chase declared as Vec3dModifier and TypeFieldDescriptionprivate final Vec3d
ChaseClient.TeleportPos.pos
The field for thepos
record component.Methods in net.minecraft.server.chase that return Vec3dModifier and TypeMethodDescriptionChaseClient.TeleportPos.pos()
Returns the value of thepos
record component.Constructors in net.minecraft.server.chase with parameters of type Vec3dModifierConstructorDescription(package private)
TeleportPos
(RegistryKey<World> dimension, Vec3d pos, Vec2f rot) Creates an instance of aTeleportPos
record class. -
Uses of Vec3d in net.minecraft.server.command
Fields in net.minecraft.server.command declared as Vec3dModifier and TypeFieldDescriptionprivate final Vec3d
ServerCommandSource.position
private final Vec3d
TeleportCommand.LookTarget.targetPos
Methods in net.minecraft.server.command that return Vec3dMethods in net.minecraft.server.command with parameters of type Vec3dModifier 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) Constructors in net.minecraft.server.command with parameters of type Vec3dModifierConstructorDescriptionLookTarget
(Vec3d targetPos) ServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity) protected
ServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity, boolean silent, @Nullable com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, EntityAnchorArgumentType.EntityAnchor entityAnchor, SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue) -
Uses of Vec3d in net.minecraft.server.network
Fields in net.minecraft.server.network declared as Vec3dModifier and TypeFieldDescriptionServerPlayerEntity.enteredNetherPos
ServerPlayerEntity.fallStartPos
ServerPlayerEntity.levitationStartPos
ServerPlayNetworkHandler.requestedTeleportPos
ServerPlayerEntity.vehicleInLavaRidingPos
private Vec3d
EntityTrackerEntry.velocity
Methods in net.minecraft.server.network with parameters of type Vec3dModifier and TypeMethodDescriptionvoid
ServerPlayerEntity.lookAt
(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target) Changes this entity's pitch and yaw to look attarget
.static void
DebugInfoSender.sendGameEvent
(World world, GameEvent event, Vec3d pos) -
Uses of Vec3d in net.minecraft.server.world
Methods in net.minecraft.server.world with parameters of type Vec3dModifier and TypeMethodDescriptionvoid
ServerWorld.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event. -
Uses of Vec3d in net.minecraft.structure
Fields in net.minecraft.structure declared as Vec3dMethods in net.minecraft.structure that return Vec3dModifier and TypeMethodDescriptionstatic Vec3d
StructureTemplate.transformAround
(Vec3d point, BlockMirror mirror, BlockRotation rotation, BlockPos pivot) Methods in net.minecraft.structure with parameters of type Vec3dModifier and TypeMethodDescriptionstatic Vec3d
StructureTemplate.transformAround
(Vec3d point, BlockMirror mirror, BlockRotation rotation, BlockPos pivot) Constructors in net.minecraft.structure with parameters of type Vec3d -
Uses of Vec3d in net.minecraft.test
Methods in net.minecraft.test that return Vec3dMethods in net.minecraft.test with parameters of type Vec3dModifier 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
Methods in net.minecraft.util that return Vec3dModifier and TypeMethodDescriptionCubicSampler.RgbFetcher.fetch
(int x, int y, int z) static Vec3d
CubicSampler.sampleColor
(Vec3d pos, CubicSampler.RgbFetcher rgbFetcher) Methods in net.minecraft.util with parameters of type Vec3dModifier and TypeMethodDescriptionstatic Vec3d
CubicSampler.sampleColor
(Vec3d pos, CubicSampler.RgbFetcher rgbFetcher) -
Uses of Vec3d in net.minecraft.util.hit
Fields in net.minecraft.util.hit declared as Vec3dMethods in net.minecraft.util.hit that return Vec3dMethods in net.minecraft.util.hit with parameters of type Vec3dModifier and TypeMethodDescriptionstatic BlockHitResult
BlockHitResult.createMissed
(Vec3d pos, Direction side, BlockPos blockPos) Constructors in net.minecraft.util.hit with parameters of type Vec3dModifierConstructorDescriptionprivate
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
Fields in net.minecraft.util.math declared as Vec3dFields in net.minecraft.util.math with type parameters of type Vec3dMethods in net.minecraft.util.math that return Vec3dModifier 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).Vec3d.withAxis
(Direction.Axis axis, double value) Methods in net.minecraft.util.math that return types with arguments of type Vec3dMethods in net.minecraft.util.math with parameters of type Vec3dModifier 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) Constructors in net.minecraft.util.math with parameters of type Vec3d -
Uses of Vec3d in net.minecraft.util.shape
Methods in net.minecraft.util.shape that return types with arguments of type Vec3dModifier and TypeMethodDescriptionVoxelShape.getClosestPointTo
(Vec3d target) Returns the closest point in the shape totarget
.Methods in net.minecraft.util.shape with parameters of type Vec3dModifier and TypeMethodDescriptionVoxelShape.getClosestPointTo
(Vec3d target) Returns the closest point in the shape totarget
. -
Uses of Vec3d in net.minecraft.village
Methods in net.minecraft.village that return Vec3dModifier and TypeMethodDescriptionZombieSiegeManager.getSpawnVector
(ServerWorld world, BlockPos pos) -
Uses of Vec3d in net.minecraft.world
Fields in net.minecraft.world declared as Vec3dModifier 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
Methods in net.minecraft.world that return Vec3dModifier and TypeMethodDescriptionBlockStateRaycastContext.getEnd()
RaycastContext.getEnd()
abstract Vec3d
CommandBlockExecutor.getPos()
BlockStateRaycastContext.getStart()
RaycastContext.getStart()
Methods in net.minecraft.world that return types with arguments of type Vec3dModifier and TypeMethodDescriptionCollisionView.findClosestCollision
(@Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z) Methods in net.minecraft.world with parameters of type Vec3dModifier and TypeMethodDescriptionvoid
ChunkRegion.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.default void
WorldAccess.emitGameEvent
(@Nullable Entity entity, GameEvent event, Vec3d pos) void
WorldAccess.emitGameEvent
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.CollisionView.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) Constructors in net.minecraft.world with parameters of type Vec3dModifierConstructorDescriptionBlockStateRaycastContext
(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
Methods in net.minecraft.world.dimension that return Vec3dModifier and TypeMethodDescriptionstatic Vec3d
AreaHelper.entityPosInPortal
(BlockLocating.Rectangle portalRect, Direction.Axis portalAxis, Vec3d entityPos, EntityDimensions entityDimensions) Methods in net.minecraft.world.dimension with parameters of type Vec3dModifier and TypeMethodDescriptionstatic Vec3d
AreaHelper.entityPosInPortal
(BlockLocating.Rectangle portalRect, Direction.Axis portalAxis, Vec3d entityPos, EntityDimensions entityDimensions) static TeleportTarget
AreaHelper.getNetherTeleportTarget
(ServerWorld destination, BlockLocating.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.event
Fields in net.minecraft.world.event declared as Vec3dMethods in net.minecraft.world.event that return Vec3dMethods in net.minecraft.world.event that return types with arguments of type Vec3dModifier and TypeMethodDescriptionConstructors in net.minecraft.world.event with parameters of type Vec3dModifierConstructorDescriptionMessage
(GameEvent event, Vec3d emitterPos, GameEvent.Emitter emitter, GameEventListener listener, Vec3d listenerPos) -
Uses of Vec3d in net.minecraft.world.event.listener
Fields in net.minecraft.world.event.listener declared as Vec3dModifier and TypeFieldDescriptionprivate final Vec3d
VibrationListener.Vibration.pos
The field for thepos
record component.Methods in net.minecraft.world.event.listener that return Vec3dModifier and TypeMethodDescriptionVibrationListener.Vibration.pos()
Returns the value of thepos
record component.Methods in net.minecraft.world.event.listener that return types with arguments of type Vec3dModifier and TypeMethodDescriptionSimpleGameEventDispatcher.dispatchTo
(ServerWorld world, Vec3d listenerPos, GameEventListener listener) Methods in net.minecraft.world.event.listener with parameters of type Vec3dModifier and TypeMethodDescriptionboolean
GameEventDispatcher.dispatch
(GameEvent event, Vec3d pos, GameEvent.Emitter emitter, BiConsumer<GameEventListener, Vec3d> onListenerAccept) Dispatches an event to all the listeners in this dispatcher.boolean
SimpleGameEventDispatcher.dispatch
(GameEvent event, Vec3d pos, GameEvent.Emitter emitter, BiConsumer<GameEventListener, Vec3d> onListenerAccept) Dispatches an event to all the listeners in this dispatcher.SimpleGameEventDispatcher.dispatchTo
(ServerWorld world, Vec3d listenerPos, GameEventListener listener) private static boolean
VibrationListener.isOccluded
(World world, Vec3d start, Vec3d end) private void
VibrationListener.listen
(ServerWorld world, GameEvent gameEvent, GameEvent.Emitter emitter, Vec3d start, Vec3d end) Method parameters in net.minecraft.world.event.listener with type arguments of type Vec3dModifier and TypeMethodDescriptionboolean
GameEventDispatcher.dispatch
(GameEvent event, Vec3d pos, GameEvent.Emitter emitter, BiConsumer<GameEventListener, Vec3d> onListenerAccept) Dispatches an event to all the listeners in this dispatcher.boolean
SimpleGameEventDispatcher.dispatch
(GameEvent event, Vec3d pos, GameEvent.Emitter emitter, BiConsumer<GameEventListener, Vec3d> onListenerAccept) Dispatches an event to all the listeners in this dispatcher.Constructors in net.minecraft.world.event.listener with parameters of type Vec3d -
Uses of Vec3d in net.minecraft.world.explosion
Fields in net.minecraft.world.explosion with type parameters of type Vec3dMethods in net.minecraft.world.explosion that return types with arguments of type Vec3dMethods in net.minecraft.world.explosion with parameters of type Vec3dModifier and TypeMethodDescriptionstatic float
Explosion.getExposure
(Vec3d source, Entity entity) -
Uses of Vec3d in net.minecraft.world.gen.feature
Fields in net.minecraft.world.gen.feature declared as Vec3d