Uses of Class
net.minecraft.util.math.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.
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of Vec3d in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionboolean
FallAfterExplosionCriterion.Conditions.matches
(ServerWorld world, Vec3d startPosition, Vec3d endPosition, @Nullable LootContext cause) boolean
LevitationCriterion.Conditions.matches
(ServerPlayerEntity player, Vec3d distance, int duration) boolean
TravelCriterion.Conditions.matches
(ServerWorld world, Vec3d pos, Vec3d endPos) boolean
TargetHitCriterion.Conditions.test
(LootContext projectile, Vec3d hitPos, int signalStrength) void
FallAfterExplosionCriterion.trigger
(ServerPlayerEntity player, Vec3d startPosition, @Nullable Entity cause) 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
Modifier and TypeFieldDescriptionprivate static final Int2ObjectMap
<List<Vec3d>> CandleBlock.CANDLES_TO_PARTICLE_OFFSETS
CandleCakeBlock.PARTICLE_OFFSETS
Modifier and TypeMethodDescriptionAbstractBlock.Offsetter.evaluate
(BlockState state, BlockPos pos) AbstractSignBlock.getCenter
(BlockState state) WallSignBlock.getCenter
(BlockState state) AbstractBlock.AbstractBlockState.getModelOffset
(BlockPos pos) Modifier 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, int[][] possibleOffsets, boolean ignoreInvalidPos) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, float spawnAngle) BedBlock.findWakeUpPosition
(EntityType<?> type, CollisionView world, BlockPos pos, Direction bedDirection, Direction respawnDirection) AbstractCandleBlock.getParticleOffsets
(BlockState state) CandleBlock.getParticleOffsets
(BlockState state) CandleCakeBlock.getParticleOffsets
(BlockState state) Modifier and TypeMethodDescriptionprivate static int
TargetBlock.calculatePower
(BlockHitResult hitResult, Vec3d pos) private static TeleportTarget
NetherPortalBlock.getExitPortalTarget
(ServerWorld world, BlockLocating.Rectangle exitPortalRectangle, Direction.Axis axis, Vec3d positionInPortal, Entity entity, TeleportTarget.PostDimensionTransition postDimensionTransition) static Position
DispenserBlock.getOutputLocation
(BlockPointer pointer, double facingOffset, Vec3d constantOffset) 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) private static Vec3d
VaultBlockEntity.Client.getConnectedParticlesOrigin
(BlockPos pos, Direction direction) private static Vec3d
VaultBlockEntity.Client.getDeactivateParticlesPos
(BlockPos pos, Random random) EndGatewayBlockEntity.getOrCreateExitPortalPos
(ServerWorld world, BlockPos pos) private static Vec3d
VaultBlockEntity.Client.getRegularParticlesPos
(BlockPos pos, Random random) Modifier and TypeMethodDescriptionprivate static void
AbstractFurnaceBlockEntity.dropExperience
(ServerWorld world, Vec3d pos, int multiplier, float experience) private static WorldChunk
List
<RecipeEntry<?>> AbstractFurnaceBlockEntity.getRecipesUsedAndDropExperience
(ServerWorld world, Vec3d pos) private static boolean
EndGatewayBlockEntity.isChunkEmpty
(ServerWorld world, Vec3d pos) boolean
SculkCatalystBlockEntity.Listener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.private static void
VaultBlockEntity.Client.spawnConnectedParticlesFor
(World world, Vec3d pos, PlayerEntity player) -
Uses of Vec3d in net.minecraft.block.enums
Modifier and TypeMethodDescriptionTrialSpawnerState.getPosAbove
(Entity entity, ServerWorld world) TrialSpawnerState.getPosToSpawnItemSpawner
(ServerWorld world, BlockPos pos, TrialSpawnerLogic logic, TrialSpawnerData data) Modifier and TypeMethodDescriptionprivate static void
TrialSpawnerState.ParticleEmitter.emitParticle
(SimpleParticleType type, Vec3d pos, World world) -
Uses of Vec3d in net.minecraft.block.spawner
Modifier and TypeMethodDescriptionprivate static boolean
EntityDetector.hasLineOfSight
(World world, Vec3d pos, Vec3d entityEyePos) private static boolean
TrialSpawnerLogic.hasLineOfSight
(World world, Vec3d spawnerPos, Vec3d spawnPos) -
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
Modifier and TypeFieldDescriptionprivate final Vec3d
SubtitlesHud.SoundEntry.location
The field for thelocation
record component.Modifier and TypeMethodDescriptionSubtitlesHud.SoundEntry.location()
Returns the value of thelocation
record component.Modifier and TypeMethodDescriptionboolean
SubtitlesHud.SubtitleEntry.canHearFrom
(Vec3d pos) SubtitlesHud.SubtitleEntry.getNearestSound
(Vec3d pos) void
ModifierConstructorDescription(package private)
SoundEntry
(Vec3d vec3d, long long2) SubtitleEntry
(Text text, float range, Vec3d pos) -
Uses of Vec3d in net.minecraft.client.network
Modifier and TypeFieldDescriptionprivate Vec3d
OtherClientPlayerEntity.clientVelocity
protected Vec3d
AbstractClientPlayerEntity.lastVelocity
(package private) final Vec3d
PendingUpdateManager.PendingUpdate.playerPos
Modifier and TypeMethodDescriptionClientPlayerEntity.getLeashPos
(float delta) Returns the position of the leash this entity holds.AbstractClientPlayerEntity.lerpVelocity
(float tickDelta) Modifier and TypeMethodDescriptionprotected boolean
ClientPlayerEntity.hasCollidedSoftly
(Vec3d adjustedMovement) void
ClientPlayerEntity.move
(MovementType type, Vec3d movement) ModifierConstructorDescription(package private)
PendingUpdate
(int sequence, BlockState blockState, Vec3d playerPos) -
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) (package private)
TrailParticle
(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, Vec3d target, int color) -
Uses of Vec3d in net.minecraft.client.render
Modifier and TypeFieldDescription(package private) final Vec3d
Camera.Projection.center
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.Modifier 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()
Modifier 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
WeatherRendering.buildPrecipitationPieces
(World world, int ticks, float delta, Vec3d pos, int range, List<WeatherRendering.Piece> rainOut, List<WeatherRendering.Piece> snowOut) static void
VertexRendering.drawVector
(MatrixStack matrices, VertexConsumer vertexConsumers, Vector3f offset, Vec3d vec, int argb) private static HitResult
GameRenderer.ensureTargetInRange
(HitResult hitResult, Vec3d cameraPos, double interactionRange) private void
ChunkRenderingDataPreparer.method_52825
(ChunkRenderingDataPreparer.RenderableChunks renderableChunks, Vec3d pos, Queue<ChunkRenderingDataPreparer.ChunkInfo> queue, boolean cullChunks, Consumer<ChunkBuilder.BuiltChunk> consumer, LongOpenHashSet longOpenHashSet) private void
ChunkRenderingDataPreparer.method_52835
(boolean bool, Frustum frustum, List<ChunkBuilder.BuiltChunk> builtChunks, Vec3d cameraPos, LongOpenHashSet activeSections) private void
WorldRenderer.method_64060
(ChunkBuilder.BuiltChunk builtChunk, ChunkBuilder.NormalizedRelativePos normalizedRelativePos, Vec3d vec3d, boolean bool, boolean bool2) void
WorldBorderRendering.render
(WorldBorder border, Vec3d vec3d, double double2, double double3) void
CloudRenderer.renderClouds
(int color, CloudRenderMode cloudRenderMode, float cloudHeight, Matrix4f positionMatrix, Matrix4f projectionMatrix, Vec3d cameraPos, float ticks) private void
WorldRenderer.renderClouds
(FrameGraphBuilder frameGraphBuilder, Matrix4f positionMatrix, Matrix4f projectionMatrix, CloudRenderMode renderMode, Vec3d cameraPos, float ticks, int color, float cloudHeight) private void
WorldRenderer.renderLateDebug
(FrameGraphBuilder frameGraphBuilder, Vec3d pos, Fog fog) private void
WeatherRendering.renderPieces
(Tessellator tessellator, List<WeatherRendering.Piece> pieces, Vec3d pos, float intensity, int range, float gradient) private void
WeatherRendering.renderPrecipitation
(LightmapTextureManager lightmapTextureManager, Vec3d pos, int range, float gradient, List<WeatherRendering.Piece> rainPieces, List<WeatherRendering.Piece> snowPieces) void
WeatherRendering.renderPrecipitation
(World world, LightmapTextureManager lightmapTextureManager, int ticks, float delta, Vec3d pos) private void
WorldRenderer.renderWeather
(FrameGraphBuilder frameGraphBuilder, LightmapTextureManager lightmapTextureManager, Vec3d pos, float tickDelta, Fog fog) protected void
void
WorldRenderer.setupFrustum
(Vec3d pos, Matrix4f positionMatrix, Matrix4f projectionMatrix) private void
WorldRenderer.translucencySort
(Vec3d cameraPos) private void
ChunkRenderingDataPreparer.updateTerrain
(boolean cullChunks, Camera camera, Vec3d cameraPos, LongOpenHashSet activeSections) -
Uses of Vec3d in net.minecraft.client.render.block.entity
Modifier and TypeFieldDescriptionprivate static final Vec3d
HangingSignBlockEntityRenderer.TEXT_OFFSET
private static final Vec3d
SignBlockEntityRenderer.TEXT_OFFSET
Modifier and TypeMethodDescription(package private) Vec3d
HangingSignBlockEntityRenderer.getTextOffset()
(package private) Vec3d
SignBlockEntityRenderer.getTextOffset()
Modifier and TypeMethodDescriptionboolean
BeaconBlockEntityRenderer.isInRenderDistance
(BeaconBlockEntity beaconBlockEntity, Vec3d vec3d) default boolean
BlockEntityRenderer.isInRenderDistance
(T blockEntity, Vec3d pos) private void
SignBlockEntityRenderer.setTextAngles
(MatrixStack matrices, boolean front, Vec3d translation) -
Uses of Vec3d in net.minecraft.client.render.chunk
Modifier and TypeMethodDescriptionChunkRenderTaskScheduler.dequeueNearest
(Vec3d pos) void
ChunkBuilder.setCameraPosition
(Vec3d cameraPosition) -
Uses of Vec3d in net.minecraft.client.render.debug
Modifier and TypeFieldDescriptionprivate final Vec3d
GameEventDebugRenderer.Entry.pos
The field for thepos
record component.Modifier and TypeMethodDescriptionprivate static Vec3d
DebugRenderer.hueToRgb
(float hue) GameEventDebugRenderer.Entry.pos()
Returns the value of thepos
record component.private static Vec3d
DebugRenderer.shiftHue
(float r, float g, float b, float dHue) Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionvoid
GameEventDebugRenderer.addEvent
(RegistryKey<GameEvent> eventKey, Vec3d pos) private static void
BreezeDebugRenderer.drawCurve
(Matrix4f matrix, double cameraX, double cameraY, double cameraZ, VertexConsumer vertexConsumer, Vec3d targetPos, float multiplier, int color) private static void
BreezeDebugRenderer.drawCurvePart
(int index, Matrix4f matrix, double cameraX, double cameraY, double cameraZ, VertexConsumer vertexConsumer, Vec3d targetPos, float multiplier, int color) private static void
BreezeDebugRenderer.drawLine
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, double cameraX, double cameraY, double cameraZ, Vec3d entityPos, Vec3d targetPos, int color) boolean
boolean
GameEventDebugRenderer.Listener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.ModifierConstructorDescription(package private)
Entry
(long startingMs, RegistryKey<GameEvent> registryKey, Vec3d pos) -
Uses of Vec3d in net.minecraft.client.render.entity
Modifier and TypeMethodDescriptionprivate Vec3d
GuardianEntityRenderer.fromLerpedPosition
(LivingEntity entity, double yOffset, float delta) private Vec3d
FishingBobberEntityRenderer.getHandPos
(PlayerEntity player, float float2, float tickDelta) AbstractMinecartEntityRenderer.getPositionOffset
(S s) EndermanEntityRenderer.getPositionOffset
(EndermanEntityRenderState endermanEntityRenderState) EntityRenderer.getPositionOffset
(S state) ItemFrameEntityRenderer.getPositionOffset
(ItemFrameEntityRenderState itemFrameEntityRenderState) PlayerEntityRenderer.getPositionOffset
(PlayerEntityRenderState playerEntityRenderState) ShulkerEntityRenderer.getPositionOffset
(ShulkerEntityRenderState shulkerEntityRenderState) Modifier and TypeMethodDescriptionprivate static void
GuardianEntityRenderer.renderBeam
(MatrixStack matrices, VertexConsumer vertexConsumer, Vec3d vec3d, float beamTicks, float float2, float float3) -
Uses of Vec3d in net.minecraft.client.render.entity.state
Modifier and TypeFieldDescriptionEndCrystalEntityRenderState.beamOffset
GuardianEntityRenderState.beamTargetPos
GuardianEntityRenderState.cameraPosVec
EnderDragonEntityRenderState.crystalBeamPos
EntityRenderState.LeashData.endPos
MinecartEntityRenderState.futurePos
MinecartEntityRenderState.lerpedPos
GuardianEntityRenderState.lookAtPos
Vec3d[]
IllusionerEntityRenderState.mirrorCopyOffsets
EntityRenderState.nameLabelPos
EntityRenderState.LeashData.offset
MinecartEntityRenderState.pastPos
FishingBobberEntityState.pos
EntityRenderState.positionOffset
MinecartEntityRenderState.presentPos
ShulkerEntityRenderState.renderPositionOffset
GuardianEntityRenderState.rotationVec
EntityRenderState.LeashData.startPos
-
Uses of Vec3d in net.minecraft.client.sound
Modifier and TypeFieldDescriptionprivate final Vec3d
SoundListenerTransform.forward
The field for theforward
record component.private final Vec3d
SoundListenerTransform.position
The field for theposition
record component.private final Vec3d
SoundListenerTransform.up
The field for theup
record component.Modifier and TypeMethodDescriptionSoundListenerTransform.forward()
Returns the value of theforward
record component.SoundListenerTransform.position()
Returns the value of theposition
record component.SoundListenerTransform.right()
SoundListenerTransform.up()
Returns the value of theup
record component.Modifier and TypeMethodDescriptionstatic PositionedSoundInstance
PositionedSoundInstance.record
(SoundEvent sound, Vec3d pos) void
Source.setPosition
(Vec3d pos) -
Uses of Vec3d in net.minecraft.client.util.math
-
Uses of Vec3d in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.emitGameEvent
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.int
ClientWorld.getSkyColor
(Vec3d cameraPos, float tickDelta) void
ClientWorld.processPendingUpdate
(BlockPos pos, BlockState state, Vec3d playerPos) -
Uses of Vec3d in net.minecraft.command
Modifier and TypeFieldDescriptionstatic final BiConsumer
<Vec3d, List<? extends Entity>> EntitySelector.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 TypeMethodDescriptionEntitySelector.getEntities
(Vec3d pos, List<T> entities) EntitySelector.getOffsetBox
(Vec3d offset) EntitySelector.getPositionPredicate
(Vec3d pos, @Nullable Box box, @Nullable FeatureSet enabledFeatures) Modifier and TypeMethodDescriptionvoid
EntitySelectorReader.setSorter
(BiConsumer<Vec3d, List<? extends Entity>> sorter) ModifierConstructorDescriptionEntitySelector
(int count, boolean includesNonPlayers, boolean localWorldOnly, List<Predicate<Entity>> predicates, NumberRange.DoubleRange 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, List<Predicate<Entity>> predicates, NumberRange.DoubleRange 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, List<Predicate<Entity>> predicates, NumberRange.DoubleRange 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 TypeMethodDescriptionDefaultPosArgument.getPos
(ServerCommandSource source) LookingPosArgument.getPos
(ServerCommandSource source) PosArgument.getPos
(ServerCommandSource source) static Vec3d
Vec3ArgumentType.getVec3
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) EntityAnchorArgumentType.EntityAnchor.positionAt
(Entity entity) EntityAnchorArgumentType.EntityAnchor.positionAt
(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.enchantment
Modifier and TypeMethodDescriptionprivate static LootContext
Enchantment.createEnchantedEntityLootContext
(ServerWorld world, int level, Entity entity, Vec3d pos) private static LootContext
Enchantment.createHitBlockLootContext
(ServerWorld world, int level, Entity entity, Vec3d pos, BlockState state) void
Enchantment.onHitBlock
(ServerWorld world, int level, EnchantmentEffectContext context, Entity enchantedEntity, Vec3d pos, BlockState state) static void
EnchantmentHelper.onHitBlock
(ServerWorld world, ItemStack stack, @Nullable LivingEntity user, Entity enchantedEntity, @Nullable EquipmentSlot slot, Vec3d pos, BlockState state, Consumer<Item> onBreak) -
Uses of Vec3d in net.minecraft.enchantment.effect
Modifier and TypeMethodDescriptionvoid
AllOfEnchantmentEffects.EntityEffects.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
AllOfEnchantmentEffects.LocationBasedEffects.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
AttributeEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
EnchantmentEntityEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) default void
EnchantmentEntityEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
EnchantmentLocationBasedEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos, boolean newlyApplied) void
AllOfEnchantmentEffects.LocationBasedEffects.remove
(EnchantmentEffectContext context, Entity user, Vec3d pos, int level) void
AttributeEnchantmentEffect.remove
(EnchantmentEffectContext context, Entity user, Vec3d pos, int level) default void
EnchantmentLocationBasedEffect.remove
(EnchantmentEffectContext context, Entity user, Vec3d pos, int level) -
Uses of Vec3d in net.minecraft.enchantment.effect.entity
Modifier and TypeFieldDescriptionprivate final Vec3d
ExplodeEnchantmentEffect.offset
The field for theoffset
record component.Modifier and TypeMethodDescriptionExplodeEnchantmentEffect.offset()
Returns the value of theoffset
record component.Modifier and TypeMethodDescriptionvoid
ApplyMobEffectEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ChangeItemDamageEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
DamageEntityEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ExplodeEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
IgniteEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
PlaySoundEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ReplaceBlockEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
ReplaceDiskEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
RunFunctionEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SetBlockPropertiesEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SpawnParticlesEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) void
SummonEntityEnchantmentEffect.apply
(ServerWorld world, int level, EnchantmentEffectContext context, Entity user, Vec3d pos) private @Nullable DamageSource
ExplodeEnchantmentEffect.getDamageSource
(Entity user, Vec3d pos) ModifierConstructorDescriptionExplodeEnchantmentEffect
(boolean bool, Optional<RegistryEntry<DamageType>> optional, Optional<EnchantmentLevelBasedValue> optional2, Optional<RegistryEntryList<Block>> optional3, Vec3d vec3d, EnchantmentLevelBasedValue enchantmentLevelBasedValue, boolean bool2, World.ExplosionSourceType explosionSourceType, ParticleEffect particleEffect, ParticleEffect particleEffect2, RegistryEntry<SoundEvent> registryEntry) -
Uses of Vec3d in net.minecraft.entity
Modifier and TypeFieldDescriptionprivate final Vec3d
Entity.QueuedCollisionCheck.from
The field for thefrom
record component.protected Vec3d
Entity.movementMultiplier
private Vec3d
Entity.pos
private Vec3d
TrackedPosition.pos
private final Vec3d
Entity.QueuedCollisionCheck.to
The field for theto
record component.private Vec3d
Entity.velocity
Modifier and TypeFieldDescriptionEntityAttachmentType.Point.NONE
private final Map
<EntityAttachmentType, List<Vec3d>> EntityAttachments.Builder.points
private final Map
<EntityAttachmentType, List<Vec3d>> EntityAttachments.points
Modifier 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) private Vec3d
LivingEntity.applyMovementInput
(Vec3d movementInput, float slipperiness) private Vec3d
LivingEntity.calcGlidingVelocity
(Vec3d oldVelocity) Dismounting.findRespawnPos
(EntityType<?> entityType, CollisionView world, BlockPos pos, boolean ignoreInvalidPos) Entity.QueuedCollisionCheck.from()
Returns the value of thefrom
record component.final Vec3d
Entity.getCameraPosVec
(float tickDelta) Entity.getClientCameraPosVec
(float tickDelta) protected Vec3d
LivingEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) final Vec3d
Entity.getEyePos()
Returns the position of the eye.Entity.getHandPosOffset
(Item item) Returns the offset of the hand that holdsitem
.final Vec3d
Entity.getLastRenderPos()
protected Vec3d
Entity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.Entity.getLeashOffset
(float tickDelta) Entity.getLeashPos
(float delta) Returns the position of the leash this entity holds.final Vec3d
Entity.getLerpedPos
(float delta) Entity.getMovement()
final Vec3d
Entity.getOppositeRotationVector
(float tickDelta) protected final Vec3d
Entity.getOppositeRotationVector
(float pitch, float yaw) protected Vec3d
Entity.getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) protected static Vec3d
Entity.getPassengerAttachmentPos
(Entity vehicle, Entity passenger, EntityAttachments attachments) protected static Vec3d
Entity.getPassengerDismountOffset
(double vehicleWidth, double passengerWidth, float passengerYaw) Returns the offset for dismounting the passenger.Entity.getPassengerRidingPos
(Entity passenger) LivingEntity.getPassengerRidingPos
(Entity passenger) EntityAttachments.getPoint
(EntityAttachmentType type, int index, float yaw) EntityAttachments.getPointNullable
(EntityAttachmentType type, int index, float yaw) EntityAttachments.getPointOrDefault
(EntityAttachmentType type, int index, float yaw) Entity.getPos()
Returns the exact position of the entity.TrackedPosition.getPos()
final Vec3d
Entity.getRotationVec
(float tickDelta) Entity.getRotationVecClient()
Entity.getRotationVector()
final Vec3d
Entity.getRotationVector
(float pitch, float yaw) Entity.getSyncedPos()
Returns the position of the entity synced to clients.Entity.getVehicleAttachmentPos
(Entity vehicle) Entity.getVelocity()
protected 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
.Entity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.LivingEntity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.static Vec3d
LivingEntity.positionInPortal
(Vec3d pos) private static Vec3d
EntityAttachments.rotatePoint
(Vec3d point, float yaw) Entity.QueuedCollisionCheck.to()
Returns the value of theto
record component.Entity.updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
.TrackedPosition.withDelta
(long x, long y, long z) Modifier and TypeMethodDescriptionEntityAttachmentType.Point.create
(float width, float height) EntityAttachmentType.createPoint
(float width, float height) EntityAttachments.scalePoints
(List<Vec3d> points, float xScale, float yScale, float zScale) Modifier and TypeMethodDescriptionEntityAttachments.Builder.add
(EntityAttachmentType type, Vec3d point) void
Entity.addVelocity
(Vec3d velocity) void
Entity.addVelocityInternal
(Vec3d velocity) static 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) private void
Entity.applyMoveEffect
(Entity.MoveEffect moveEffect, Vec3d movement, BlockPos landingPos, BlockState landingState) private Vec3d
LivingEntity.applyMovementInput
(Vec3d movementInput, float slipperiness) EntityType.Builder.attachment
(EntityAttachmentType type, Vec3d offset) private Vec3d
LivingEntity.calcGlidingVelocity
(Vec3d oldVelocity) static boolean
Dismounting.canPlaceEntityAt
(CollisionView world, Vec3d offset, LivingEntity entity, EntityPose pose) private boolean
Entity.collides
(Vec3d oldPos, Vec3d newPos, BlockPos blockPos, VoxelShape shape) protected Vec3d
LivingEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) long
long
long
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 type, Vec3d movement) protected 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
.EntityType.Builder.passengerAttachments
(Vec3d[] passengerAttachments) static Vec3d
LivingEntity.positionInPortal
(Vec3d pos) void
Entity.queueBlockCollisionCheck
(Vec3d oldPos, Vec3d newPos) void
Entity.refreshPositionAfterTeleport
(Vec3d pos) void
Entity.refreshPositionAndAngles
(Vec3d pos, float yaw, float pitch) private static Vec3d
EntityAttachments.rotatePoint
(Vec3d point, float yaw) void
Entity.setMovement
(boolean onGround, boolean horizontalCollision, Vec3d movement) void
final void
Entity.setPosition
(Vec3d pos) Sets the position and refreshes the bounding box.private void
Entity.setPrevPosition
(Vec3d pos) final void
Entity.setPrevPositionAndAngles
(Vec3d pos, float yaw, float pitch) 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.private boolean
Entity.stepOnBlock
(BlockPos pos, BlockState state, boolean playSound, boolean emitEvent, Vec3d movement) void
Entity.tickBlockCollision
(Vec3d lastRenderPos, Vec3d pos) protected void
LivingEntity.tickControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) void
Allows you to do certain speed and velocity calculations.private void
LivingEntity.travelControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) private void
LivingEntity.travelInFluid
(Vec3d movementInput) private void
LivingEntity.travelMidAir
(Vec3d movementInput) protected void
Entity.updateSupportingBlockPos
(boolean onGround, @Nullable Vec3d movement) 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
.EntityType.Builder.vehicleAttachment
(Vec3d vehicleAttachment) private static boolean
ExperienceOrbEntity.wasMergedIntoExistingOrb
(ServerWorld world, Vec3d pos, int amount) Modifier and TypeMethodDescriptionEntityAttachments.scalePoints
(List<Vec3d> points, float xScale, float yScale, float zScale) ModifierConstructorDescription(package private)
EntityAttachments
(Map<EntityAttachmentType, List<Vec3d>> points) -
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) 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
.Modifier 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
Modifier and TypeFieldDescriptionstatic final MemoryModuleType
<Vec3d> MemoryModuleType.RAM_TARGET
Modifier and TypeMethodDescriptionBlockPosLookTarget.getPos()
EntityLookTarget.getPos()
LookTarget.getPos()
ModifierConstructorDescriptionBlockPosLookTarget
(Vec3d pos) WalkTarget
(Vec3d pos, float speed, int completionRange) -
Uses of Vec3d in net.minecraft.entity.ai.brain.task
Modifier and TypeFieldDescriptionLongJumpTask.currentTarget
private Vec3d
RamImpactTask.direction
private Vec3d
FrogEatEntityTask.targetPos
Modifier and TypeMethodDescriptionprivate Vec3d
PrepareRamTask.calculateRamTarget
(BlockPos start, BlockPos end) TargetUtil.find
(PathAwareEntity entity, int horizontalRange, int verticalRange) SeekSkyTask.findNearbySky
(ServerWorld world, LivingEntity entity) FleeTask.findTarget
(E entity, ServerWorld world) StrollTask.findTargetPos
(PathAwareEntity entity) StrollTask.findTargetPos
(PathAwareEntity entity, int horizontalRadius, int verticalRadius) LongJumpTask.getJumpingVelocity
(MobEntity entity, Vec3d targetPos) static Vec3d
BreezeMovementUtil.getRandomPosBehindTarget
(LivingEntity target, Random random) private static Vec3d
BreezeSlideTowardsTargetTask.getRandomPosInMediumRange
(BreezeEntity breeze, LivingEntity target) private static Vec3d
GiveInventoryToLookTargetTask.offsetTarget
(LookTarget target) Modifier and TypeMethodDescriptionBreezeJumpTask.getJumpingVelocity
(BreezeEntity breeze, Random random, Vec3d jumpTarget) Modifier and TypeMethodDescriptionstatic boolean
BreezeMovementUtil.canMoveTo
(BreezeEntity breeze, Vec3d pos) BreezeJumpTask.getJumpingVelocity
(BreezeEntity breeze, Random random, Vec3d jumpTarget) LongJumpTask.getJumpingVelocity
(MobEntity entity, Vec3d targetPos) BreezeJumpTask.getPosToJumpTo
(LivingEntity breeze, Vec3d pos) static void
TargetUtil.give
(LivingEntity entity, ItemStack stack, Vec3d targetLocation) static void
TargetUtil.give
(LivingEntity entity, ItemStack stack, Vec3d targetLocation, Vec3d velocityFactor, float yOffset) static void
GiveInventoryToLookTargetTask.playThrowSound
(LivingEntity entity, ItemStack stack, Vec3d target) Modifier and TypeMethodDescriptionprivate static <T> SingleTickTask
<PathAwareEntity> GoToRememberedPositionTask.create
(MemoryModuleType<T> posSource, float speed, int range, boolean requiresWalkTarget, Function<T, Vec3d> posGetter) private static SingleTickTask
<PathAwareEntity> StrollTask.create
(float speed, Function<PathAwareEntity, Vec3d> targetGetter, Predicate<PathAwareEntity> shouldRun) -
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()
FlyGoal.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
AmphibiousSwimNavigation.getPos()
The position to act as if the entity is at for pathfinding purposesprotected 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 TypeMethodDescriptionprotected double
AmphibiousSwimNavigation.adjustTargetY
(Vec3d pos) protected double
EntityNavigation.adjustTargetY
(Vec3d pos) protected double
SwimNavigation.adjustTargetY
(Vec3d pos) protected boolean
AmphibiousSwimNavigation.canPathDirectlyThrough
(Vec3d origin, Vec3d target) protected boolean
BirdNavigation.canPathDirectlyThrough
(Vec3d origin, Vec3d target) 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, boolean includeFluids) private boolean
EntityNavigation.shouldJumpToNextNode
(Vec3d currentPos) -
Uses of Vec3d in net.minecraft.entity.boss
Modifier and TypeMethodDescriptionvoid
WitherEntity.slowMovement
(BlockState state, Vec3d multiplier) CallsEntity.onLanding()
and slows this entity. -
Uses of Vec3d in net.minecraft.entity.boss.dragon
-
Uses of Vec3d in net.minecraft.entity.boss.dragon.phase
Modifier and TypeFieldDescriptionChargingPlayerPhase.pathTarget
HoldingPatternPhase.pathTarget
LandingApproachPhase.pathTarget
StrafePlayerPhase.pathTarget
TakeoffPhase.pathTarget
DyingPhase.target
HoverPhase.target
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
ModifierConstructorDescriptionprivate
DamageSource
(RegistryEntry<DamageType> type, @Nullable Entity source, @Nullable Entity attacker, @Nullable Vec3d position) DamageSource
(RegistryEntry<DamageType> type, Vec3d position) -
Uses of Vec3d in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionArmorStandEntity.getClientCameraPosVec
(float tickDelta) LeashKnotEntity.getLeashPos
(float delta) Returns the position of the leash this entity holds.Modifier 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
BlockAttachedEntity.move
(MovementType type, Vec3d movement) void
ItemFrameEntity.move
(MovementType type, Vec3d movement) void
Allows you to do certain speed and velocity calculations. -
Uses of Vec3d in net.minecraft.entity.decoration.painting
Modifier and TypeMethodDescriptionPaintingEntity.getSyncedPos()
Returns the position of the entity synced to clients. -
Uses of Vec3d in net.minecraft.entity.effect
Modifier 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
Modifier and TypeFieldDescriptionprivate final Vec3d[][]
IllusionerEntity.mirrorCopyOffsets
(package private) Vec3d
PhantomEntity.targetPosition
Modifier and TypeMethodDescriptionprivate static Vec3d
PiglinBrain.findGround
(PiglinEntity piglin) Vec3d[]
IllusionerEntity.getMirrorCopyOffsets
(float tickDelta) protected Vec3d
SlimeEntity.getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) ShulkerEntity.getRenderPositionOffset
(float tickDelta) CaveSpiderEntity.getVehicleAttachmentPos
(Entity vehicle) SpiderEntity.getVehicleAttachmentPos
(Entity vehicle) ShulkerEntity.getVelocity()
DrownedEntity.WanderAroundOnSurfaceGoal.getWanderTarget()
Modifier 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) boolean
BreezeEntity.isWithinShortRange
(Vec3d pos) void
ShulkerEntity.move
(MovementType type, 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
Modifier and TypeFieldDescriptionBeeEntity.PollinateGoal.nextTarget
private Vec3d
PandaEntity.playingJump
(package private) Vec3d
SquidEntity.swimVec
Modifier and TypeMethodDescriptionprivate Vec3d
SquidEntity.applyBodyRotations
(Vec3d shootVector) protected Vec3d
AbstractHorseEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3d
CamelEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3d
PigEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3d
StriderEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) private Vec3d
SnifferEntity.getDigLocation()
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.CamelEntity.getLeashOffset
(float tickDelta) 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
AbstractHorseEntity.getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) protected Vec3d
CamelEntity.getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) protected Vec3d
LlamaEntity.getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) protected Vec3d
StriderEntity.getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) BeeEntity.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
.Modifier and TypeMethodDescriptionprivate Vec3d
SquidEntity.applyBodyRotations
(Vec3d shootVector) protected Vec3d
AbstractHorseEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3d
CamelEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3d
PigEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected Vec3d
StriderEntity.getControlledMovementInput
(PlayerEntity controllingPlayer, Vec3d movementInput) protected void
protected void
boolean
AllayEntity.JukeboxEventListener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.AbstractHorseEntity.locateSafeDismountingPos
(Vec3d offset, LivingEntity passenger) protected void
AbstractHorseEntity.tickControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) protected void
CamelEntity.tickControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) protected void
PigEntity.tickControlled
(PlayerEntity controllingPlayer, Vec3d movementInput) protected void
StriderEntity.tickControlled
(PlayerEntity controllingPlayer, 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. -
Uses of Vec3d in net.minecraft.entity.player
Modifier and TypeFieldDescriptionPlayerEntity.currentExplosionImpactPos
private final Vec3d
PlayerPosition.deltaMovement
The field for thedeltaMovement
record component.private final Vec3d
PlayerPosition.position
The field for theposition
record component.static final Vec3d
PlayerEntity.VEHICLE_ATTACHMENT_POS
Modifier and TypeMethodDescriptionprotected Vec3d
PlayerEntity.adjustMovementForSneaking
(Vec3d movement, MovementType type) PlayerPosition.deltaMovement()
Returns the value of thedeltaMovement
record component.PlayerEntity.getLeashPos
(float delta) Returns the position of the leash this entity holds.PlayerPosition.position()
Returns the value of theposition
record component.Modifier 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.ModifierConstructorDescriptionPlayerPosition
(Vec3d vec3d, Vec3d vec3d2, float float2, float float3) -
Uses of Vec3d in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionProjectileEntity.calculateVelocity
(double x, double y, double z, float power, float uncertainty) Modifier and TypeMethodDescriptionprotected abstract void
AbstractWindChargeEntity.createExplosion
(Vec3d pos) protected void
BreezeWindChargeEntity.createExplosion
(Vec3d pos) protected void
WindChargeEntity.createExplosion
(Vec3d pos) private static HitResult
ProjectileUtil.getCollision
(Vec3d pos, Entity entity, Predicate<Entity> predicate, Vec3d velocity, World world, float margin, RaycastContext.ShapeType raycastShapeType) protected @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 margin) protected @Nullable EntityHitResult
TridentEntity.getEntityCollision
(Vec3d currentPosition, Vec3d nextPosition) void
PersistentProjectileEntity.move
(MovementType type, Vec3d movement) static @Nullable EntityHitResult
ProjectileUtil.raycast
(Entity entity, Vec3d min, Vec3d max, Box box, Predicate<Entity> predicate, double maxDistance) private void
ExplosiveProjectileEntity.setVelocityWithAcceleration
(Vec3d velocity, double accelerationPower) private void
PersistentProjectileEntity.spawnBubbleParticles
(Vec3d pos) ModifierConstructorDescriptionAbstractFireballEntity
(EntityType<? extends AbstractFireballEntity> type, double x, double y, double z, Vec3d velocity, World world) AbstractFireballEntity
(EntityType<? extends AbstractFireballEntity> type, LivingEntity owner, Vec3d velocity, World world) (package private)
AbstractWindChargeEntity
(EntityType<? extends AbstractWindChargeEntity> type, double x, double y, double z, Vec3d velocity, World world) DragonFireballEntity
(World world, LivingEntity owner, Vec3d velocity) ExplosiveProjectileEntity
(EntityType<? extends ExplosiveProjectileEntity> type, double x, double y, double z, Vec3d velocity, World world) ExplosiveProjectileEntity
(EntityType<? extends ExplosiveProjectileEntity> type, LivingEntity owner, Vec3d velocity, World world) FireballEntity
(World world, LivingEntity owner, Vec3d velocity, int explosionPower) SmallFireballEntity
(World world, double x, double y, double z, Vec3d velocity) SmallFireballEntity
(World world, LivingEntity owner, Vec3d velocity) WindChargeEntity
(World world, double x, double y, double z, Vec3d velocity) WitherSkullEntity
(World world, LivingEntity owner, Vec3d velocity) -
Uses of Vec3d in net.minecraft.entity.projectile.thrown
Modifier and TypeMethodDescriptionprivate void
EnderPearlEntity.playTeleportSound
(World world, Vec3d pos) -
Uses of Vec3d in net.minecraft.entity.vehicle
Modifier and TypeFieldDescriptionprivate final Vec3d
ExperimentalMinecartController.Step.movement
The field for themovement
record component.private final Vec3d
ExperimentalMinecartController.Step.position
The field for theposition
record component.FurnaceMinecartEntity.pushVec
private Vec3d
DefaultMinecartController.velocity
private static final Vec3d
AbstractMinecartEntity.VILLAGER_PASSENGER_ATTACHMENT_POS
Modifier and TypeMethodDescriptionprivate Vec3d
ExperimentalMinecartController.accelerateFromPoweredRail
(Vec3d velocity, BlockPos railPos, BlockState railState) private Vec3d
ExperimentalMinecartController.applyInitialVelocity
(Vec3d horizontalVelocity) private Vec3d
ExperimentalMinecartController.applySlopeVelocity
(Vec3d horizontalVelocity, RailShape railShape) protected Vec3d
AbstractMinecartEntity.applySlowdown
(Vec3d velocity) protected Vec3d
FurnaceMinecartEntity.applySlowdown
(Vec3d velocity) protected Vec3d
StorageMinecartEntity.applySlowdown
(Vec3d velocity) private Vec3d
ExperimentalMinecartController.calcNewHorizontalVelocity
(ServerWorld world, Vec3d horizontalVelocity, ExperimentalMinecartController.MoveIteration iteration, BlockPos pos, BlockState railState, RailShape railShape) private Vec3d
ExperimentalMinecartController.decelerateFromPoweredRail
(Vec3d velocity, BlockState railState) AbstractMinecartEntity.getLaunchDirection
(BlockPos railPos) AbstractBoatEntity.getLeashOffset()
Returns the offset from the entity's position where the leash is attached to.ExperimentalMinecartController.getLerpedPosition
(float tickDelta) ExperimentalMinecartController.getLerpedVelocity
(float tickDelta) AbstractMinecartEntity.getMovement()
protected Vec3d
AbstractBoatEntity.getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) protected Vec3d
AbstractMinecartEntity.getPassengerAttachmentPos
(Entity passenger, EntityDimensions dimensions, float scaleFactor) CommandBlockMinecartEntity.CommandExecutor.getPos()
MinecartController.getPos()
VehicleInventory.getPos()
MinecartController.getVelocity()
DefaultMinecartController.limitSpeed
(Vec3d velocity) MinecartController.limitSpeed
(Vec3d velocity) DefaultMinecartController.method_61619
(double x, double y, double z, double double2) private Vec3d
FurnaceMinecartEntity.method_64276
(Vec3d velocity) ExperimentalMinecartController.Step.movement()
Returns the value of themovement
record component.ExperimentalMinecartController.Step.position()
Returns the value of theposition
record component.AbstractBoatEntity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.AbstractMinecartEntity.positionInPortal
(Direction.Axis portalAxis, BlockLocating.Rectangle portalRect) Returns the entity's position in the portal after teleportation.DefaultMinecartController.snapPositionToRail
(double x, double y, double z) AbstractBoatEntity.updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
.AbstractMinecartEntity.updatePassengerForDismount
(LivingEntity passenger) Returns the position of the dismountedpassenger
.Modifier and TypeMethodDescriptionprivate Vec3d
ExperimentalMinecartController.accelerateFromPoweredRail
(Vec3d velocity, BlockPos railPos, BlockState railState) private Vec3d
ExperimentalMinecartController.applyInitialVelocity
(Vec3d horizontalVelocity) private Vec3d
ExperimentalMinecartController.applySlopeVelocity
(Vec3d horizontalVelocity, RailShape railShape) protected Vec3d
AbstractMinecartEntity.applySlowdown
(Vec3d velocity) protected Vec3d
FurnaceMinecartEntity.applySlowdown
(Vec3d velocity) protected Vec3d
StorageMinecartEntity.applySlowdown
(Vec3d velocity) private boolean
private Vec3d
ExperimentalMinecartController.calcNewHorizontalVelocity
(ServerWorld world, Vec3d horizontalVelocity, ExperimentalMinecartController.MoveIteration iteration, BlockPos pos, BlockState railState, RailShape railShape) private Vec3d
ExperimentalMinecartController.decelerateFromPoweredRail
(Vec3d velocity, BlockState railState) DefaultMinecartController.limitSpeed
(Vec3d velocity) MinecartController.limitSpeed
(Vec3d velocity) private Vec3d
FurnaceMinecartEntity.method_64276
(Vec3d velocity) void
AbstractMinecartEntity.move
(MovementType type, Vec3d movement) void
void
MinecartController.setVelocity
(Vec3d velocity) -
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 TypeMethodDescriptionprivate Vec3d
MaceItem.getCurrentExplosionImpactPos
(ServerPlayerEntity player) ItemUsageContext.getHitPos()
private static Vec3d
FireworkRocketItem.position
(BlockPointer pointer, Direction facing) Modifier and TypeMethodDescriptionprivate void
BrushItem.addDustParticles
(World world, BlockHitResult hitResult, BlockState state, Vec3d userRotation, Arm arm) private static Vector3f
CrossbowItem.calcVelocity
(LivingEntity shooter, Vec3d direction, float yaw) private static double
MaceItem.getKnockback
(Entity attacker, LivingEntity attacked, Vec3d distance) SpawnEggItem.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 ContextParameter
<Vec3d> LootContextParameters.ORIGIN
-
Uses of Vec3d in net.minecraft.network
Modifier and TypeMethodDescriptionPacketByteBuf.readVec3d()
Reads aVec3d
from this buf.static Vec3d
Modifier and TypeMethodDescriptionstatic void
PacketByteBuf.writeVec3d
(ByteBuf buf, Vec3d vec) void
PacketByteBuf.writeVec3d
(Vec3d vec) Writes aVec3d
to this buf. -
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.custom
Modifier and TypeFieldDescriptionprivate final Vec3d
DebugBeeCustomPayload.Bee.pos
The field for thepos
record component.private final Vec3d
DebugBrainCustomPayload.Brain.pos
The field for thepos
record component.private final Vec3d
DebugGameEventCustomPayload.pos
The field for thepos
record component.Modifier and TypeMethodDescriptionDebugBeeCustomPayload.Bee.pos()
Returns the value of thepos
record component.DebugBrainCustomPayload.Brain.pos()
Returns the value of thepos
record component.DebugGameEventCustomPayload.pos()
Returns the value of thepos
record component.ModifierConstructorDescriptionBee
(UUID uuid, int entityId, Vec3d vec3d, @Nullable Path path, @Nullable BlockPos hive, @Nullable BlockPos flower, int travelTicks, Set<String> set, List<BlockPos> list) Brain
(UUID uuid, int entityId, String name, String profession, int xp, float health, float maxHealth, Vec3d vec3d, String string, @Nullable Path path, boolean wantsGolem, int angerLevel, List<String> list, List<String> list2, List<String> list3, List<String> list4, Set<BlockPos> set, Set<BlockPos> set2) DebugGameEventCustomPayload
(RegistryKey<GameEvent> registryKey, Vec3d vec3d) -
Uses of Vec3d in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final Vec3d
ExplosionS2CPacket.center
The field for thecenter
record component.Modifier and TypeFieldDescriptionExplosionS2CPacket.playerKnockback
The field for theplayerKnockback
record component.EntityDamageS2CPacket.sourcePosition
The field for thesourcePosition
record component.Modifier and TypeMethodDescriptionExplosionS2CPacket.center()
Returns the value of thecenter
record component.LookAtS2CPacket.getTargetPosition
(World world) Modifier and TypeMethodDescriptionExplosionS2CPacket.playerKnockback()
Returns the value of theplayerKnockback
record component.EntityDamageS2CPacket.sourcePosition()
Returns the value of thesourcePosition
record component.ModifierConstructorDescriptionEntitySpawnS2CPacket
(int entityId, UUID uuid, double x, double y, double z, float pitch, float yaw, EntityType<?> entityType, int entityData, Vec3d velocity, double headYaw) EntityVelocityUpdateS2CPacket
(int entityId, Vec3d velocity) ExplosionS2CPacket
(Vec3d vec3d, Optional<Vec3d> optional, ParticleEffect particleEffect, RegistryEntry<SoundEvent> registryEntry) ModifierConstructorDescriptionEntityDamageS2CPacket
(int int2, RegistryEntry<DamageType> registryEntry, int int3, int int4, Optional<Vec3d> optional) ExplosionS2CPacket
(Vec3d vec3d, Optional<Vec3d> optional, ParticleEffect particleEffect, RegistryEntry<SoundEvent> registryEntry) -
Uses of Vec3d in net.minecraft.particle
Modifier and TypeFieldDescriptionprivate final Vec3d
TrailParticleEffect.target
The field for thetarget
record component.Modifier and TypeMethodDescriptionprivate static Vec3d
ParticleUtil.getRandomVelocity
(Random random) TrailParticleEffect.target()
Returns the value of thetarget
record component.Modifier and TypeMethodDescriptionstatic void
ParticleUtil.spawnParticle
(World world, BlockPos pos, Direction direction, ParticleEffect effect, Vec3d velocity, double offsetMultiplier) Modifier 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.predicate.entity
Modifier and TypeMethodDescriptionboolean
DamageSourcePredicate.test
(ServerWorld world, Vec3d pos, DamageSource damageSource) boolean
boolean
EntitySubPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
EntitySubPredicateTypes.DynamicVariantType.DynamicPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
EntitySubPredicateTypes.VariantType.VariantPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) 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
RaiderPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
SheepPredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) boolean
SlimePredicate.test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) -
Uses of Vec3d in net.minecraft.server.chase
Modifier and TypeFieldDescriptionprivate final Vec3d
ChaseClient.TeleportPos.pos
The field for thepos
record component.Modifier and TypeMethodDescriptionChaseClient.TeleportPos.pos()
Returns the value of thepos
record component.ModifierConstructorDescription(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
Modifier and TypeFieldDescriptionprivate final Vec3d
LookTarget.LookAtPosition.position
The field for theposition
record component.private final Vec3d
ServerCommandSource.position
Modifier and TypeMethodDescriptionServerCommandSource.getPosition()
LookTarget.LookAtPosition.position()
Returns the value of theposition
record component.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, RegistryEntry.Reference<EntityType<?>> entityType, Vec3d pos, NbtCompound nbt, boolean initialize) private static int
LootCommand.executeSpawn
(ServerCommandSource source, Vec3d pos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) static Entity
SummonCommand.summon
(ServerCommandSource source, RegistryEntry.Reference<EntityType<?>> entityType, Vec3d pos, NbtCompound nbt, boolean initialize) ServerCommandSource.withLookingAt
(Vec3d position) ServerCommandSource.withPosition
(Vec3d position) ModifierConstructorDescriptionLookAtPosition
(Vec3d vec3d) 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, ReturnValueConsumer resultStorer, EntityAnchorArgumentType.EntityAnchor entityAnchor, SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue) -
Uses of Vec3d in net.minecraft.server.network
Modifier and TypeFieldDescriptionServerPlayerEntity.enteredNetherPos
ServerPlayerEntity.fallStartPos
ServerPlayerEntity.levitationStartPos
private Vec3d
ServerPlayerEntity.movement
private final Vec3d
ServerPlayerEntity.RespawnPos.pos
The field for thepos
record component.ServerPlayNetworkHandler.requestedTeleportPos
ServerPlayerEntity.vehicleInLavaRidingPos
private Vec3d
EntityTrackerEntry.velocity
Modifier and TypeMethodDescriptionServerPlayerEntity.getInputVelocityForMinecart()
ServerPlayerEntity.getMovement()
EntityTrackerEntry.getPos()
EntityTrackerEntry.getVelocity()
ServerPlayerEntity.RespawnPos.pos()
Returns the value of thepos
record component.Modifier and TypeMethodDescriptionServerPlayerEntity.RespawnPos.fromCurrentPos
(Vec3d respawnPos, BlockPos currentPos) private static float
private void
ServerPlayNetworkHandler.handleMovement
(Vec3d movement) void
ServerPlayerEntity.lookAt
(EntityAnchorArgumentType.EntityAnchor anchorPoint, Vec3d target) Changes this entity's pitch and yaw to look attarget
.static void
DebugInfoSender.sendGameEvent
(World world, RegistryEntry<GameEvent> event, Vec3d pos) void
ServerPlayerEntity.setMovement
(Vec3d movement) -
Uses of Vec3d in net.minecraft.server.world
Modifier and TypeMethodDescriptionvoid
ServerWorld.emitGameEvent
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event. -
Uses of Vec3d in net.minecraft.structure
Modifier and TypeMethodDescriptionstatic Vec3d
StructureTemplate.transformAround
(Vec3d point, BlockMirror mirror, BlockRotation rotation, BlockPos pivot) Modifier and TypeMethodDescriptionstatic Vec3d
StructureTemplate.transformAround
(Vec3d point, BlockMirror mirror, BlockRotation rotation, BlockPos pivot) -
Uses of Vec3d in net.minecraft.test
Modifier and TypeMethodDescriptionTestContext.getAbsolute
(Vec3d pos) TestContext.getRelative
(Vec3d pos) Modifier and TypeMethodDescriptionTestContext.getAbsolute
(Vec3d pos) TestContext.getEntitiesAround
(EntityType<E> type, Vec3d pos, double margin) TestContext.getRelative
(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, boolean againstWorldBorder) BlockHitResult
(Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock) BlockHitResult
(Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock, boolean againstWorldBorder) EntityHitResult
(Entity entity, Vec3d pos) protected
-
Uses of Vec3d in net.minecraft.util.math
Modifier and TypeFieldDescriptionprivate final Vec3d
Direction.doubleVector
static final Vec3d
Vec3d.ZERO
The zero vector (0, 0, 0).Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Vec3d> Vec3d.CODEC
static final PacketCodec
<ByteBuf, Vec3d> Vec3d.PACKET_CODEC
Modifier and TypeMethodDescriptionVec3d.add
(double value) Vec3d.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.static Vec3d
Returns a new vector fromvec
withdeltaX
,deltaY
, anddeltaZ
added to X, Y, Z values, respectively.Returns a vector with each value added byrandom.nextFloat() - 0.5f) * multiplier
.BlockPointer.centerPos()
BlockPos.clampToWithin
(Vec3d pos) 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.Direction.getDoubleVector()
Vec3d.getHorizontal()
Box.getHorizontalCenter()
Box.getMaxPos()
Box.getMinPos()
static Vec3d
Performs linear interpolation from this vector to the given vector.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.projectOnto
(Vec3d vec) 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 value) Vec3d.subtract
(double x, double y, double z) Subtracts the given vector from this vector.Subtracts the given vector from this vector.BlockPos.toBottomCenterPos()
BlockPos.toCenterPos()
Returns the center of this block position.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) Modifier and TypeMethodDescriptionLongJumpUtil.getJumpingVelocity
(MobEntity entity, Vec3d jumpTarget, float maxVelocity, int angle, boolean requireClearPath) Box.raycast
(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3d from, Vec3d to) Modifier and TypeMethodDescriptionReturns the sum of this vector and the given vector.BlockPos.clampToWithin
(Vec3d pos) boolean
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
static int
static Direction
LongJumpUtil.getJumpingVelocity
(MobEntity entity, Vec3d jumpTarget, float maxVelocity, int angle, boolean requireClearPath) boolean
Box.intersects
(Vec3d pos1, Vec3d pos2) Checks if this box intersects the box of the given positions as corners.private static boolean
LongJumpUtil.isPathClear
(MobEntity entity, EntityDimensions dimensions, Vec3d prevPos, Vec3d nextPos) boolean
Vec3d.isWithinRangeOf
(Vec3d vec, double horizontalRange, double verticalRange) static Vec3d
Performs linear interpolation from this vector to the given vector.static boolean
MathHelper.method_34945
(Vec3d origin, Vec3d direction, Box box) 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.Vec3d.projectOnto
(Vec3d vec) Box.raycast
(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3d from, Vec3d to) 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.double
Box.squaredMagnitude
(Vec3d pos) Subtracts the given vector from this vector.Box.traceCollisionSide
(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3d intersectingVector, double[] traceDistanceResult, @Nullable Direction approachDirection, double deltaX, double deltaY, double deltaZ) 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
private final Vec3d
TeleportTarget.position
The field for theposition
record component.private final Vec3d
BlockStateRaycastContext.start
private final Vec3d
RaycastContext.start
private final Vec3d
TeleportTarget.velocity
The field for thevelocity
record component.Modifier and TypeMethodDescriptionBlockStateRaycastContext.getEnd()
RaycastContext.getEnd()
abstract Vec3d
CommandBlockExecutor.getPos()
BlockStateRaycastContext.getStart()
RaycastContext.getStart()
private static Vec3d
TeleportTarget.getWorldSpawnPos
(ServerWorld world, Entity entity) TeleportTarget.position()
Returns the value of theposition
record component.TeleportTarget.velocity()
Returns the value of thevelocity
record component.Modifier and TypeMethodDescriptionCollisionView.findClosestCollision
(@Nullable Entity entity, VoxelShape shape, Vec3d target, double x, double y, double z) Modifier and TypeMethodDescriptionprivate static void
BlockView.collectCollisionsBetween
(Set<BlockPos> result, Vec3d oldPos, Vec3d newPos, Box boundingBox) BlockView.collectCollisionsBetween
(Vec3d oldPos, Vec3d newPos, Box boundingBox) void
World.createExplosion
(@Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, Vec3d pos, float power, boolean createFire, World.ExplosionSourceType explosionSourceType) Creates an explosion.void
ChunkRegion.emitGameEvent
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) Emits a game event.default void
WorldAccess.emitGameEvent
(@Nullable Entity entity, RegistryEntry<GameEvent> event, Vec3d pos) void
WorldAccess.emitGameEvent
(RegistryEntry<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) TeleportTarget.withPosition
(Vec3d position) ModifierConstructorDescriptionBlockStateRaycastContext
(Vec3d start, Vec3d end, Predicate<BlockState> statePredicate) RaycastContext
(Vec3d start, Vec3d end, RaycastContext.ShapeType shapeType, RaycastContext.FluidHandling fluidHandling, ShapeContext shapeContext) RaycastContext
(Vec3d start, Vec3d end, RaycastContext.ShapeType shapeType, RaycastContext.FluidHandling fluidHandling, Entity entity) TeleportTarget
(ServerWorld serverWorld, Vec3d vec3d, Vec3d vec3d2, float float2, float float3, boolean bool, boolean bool2, Set<PositionFlag> set, TeleportTarget.PostDimensionTransition postDimensionTransition) TeleportTarget
(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, Set<PositionFlag> flags, TeleportTarget.PostDimensionTransition postDimensionTransition) TeleportTarget
(ServerWorld world, Vec3d pos, Vec3d velocity, float yaw, float pitch, TeleportTarget.PostDimensionTransition postDimensionTransition) -
Uses of Vec3d in net.minecraft.world.border
-
Uses of Vec3d in net.minecraft.world.dimension
Modifier and TypeMethodDescriptionstatic Vec3d
NetherPortal.entityPosInPortal
(BlockLocating.Rectangle portalRect, Direction.Axis portalAxis, Vec3d entityPos, EntityDimensions entityDimensions) static Vec3d
NetherPortal.findOpenPosition
(Vec3d fallback, ServerWorld world, Entity entity, EntityDimensions dimensions) Modifier and TypeMethodDescriptionstatic Vec3d
NetherPortal.entityPosInPortal
(BlockLocating.Rectangle portalRect, Direction.Axis portalAxis, Vec3d entityPos, EntityDimensions entityDimensions) static Vec3d
NetherPortal.findOpenPosition
(Vec3d fallback, ServerWorld world, Entity entity, EntityDimensions dimensions) -
Uses of Vec3d in net.minecraft.world.event
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionvoid
Vibrations.VibrationListener.forceListen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) private static boolean
Vibrations.VibrationListener.isOccluded
(World world, Vec3d emitterPos, Vec3d listenerPos) boolean
Vibrations.VibrationListener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.private void
Vibrations.VibrationListener.listen
(ServerWorld world, Vibrations.ListenerData listenerData, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos, Vec3d listenerPos) ModifierConstructorDescriptionMessage
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter, GameEventListener listener, Vec3d listenerPos) -
Uses of Vec3d in net.minecraft.world.event.listener
Modifier and TypeFieldDescriptionprivate final Vec3d
Vibration.pos
The field for thepos
record component.Modifier and TypeMethodDescriptionSimpleGameEventDispatcher.dispatchTo
(ServerWorld world, Vec3d listenerPos, GameEventListener listener) Modifier and TypeMethodDescriptionboolean
GameEventDispatcher.dispatch
(RegistryEntry<GameEvent> event, Vec3d pos, GameEvent.Emitter emitter, GameEventDispatcher.DispatchCallback callback) Dispatches an event to all the listeners in this dispatcher.void
GameEventDispatchManager.dispatch
(RegistryEntry<GameEvent> event, Vec3d emitterPos, GameEvent.Emitter emitter) boolean
SimpleGameEventDispatcher.dispatch
(RegistryEntry<GameEvent> event, Vec3d pos, GameEvent.Emitter emitter, GameEventDispatcher.DispatchCallback callback) Dispatches an event to all the listeners in this dispatcher.SimpleGameEventDispatcher.dispatchTo
(ServerWorld world, Vec3d listenerPos, GameEventListener listener) boolean
GameEventListener.listen
(ServerWorld world, RegistryEntry<GameEvent> event, GameEvent.Emitter emitter, Vec3d emitterPos) Listens to an incoming game event.void
GameEventDispatcher.DispatchCallback.visit
(GameEventListener listener, Vec3d listenerPos) ModifierConstructorDescriptionVibration
(RegistryEntry<GameEvent> gameEvent, float distance, Vec3d pos, @Nullable UUID uuid, @Nullable UUID projectileOwnerUuid) Vibration
(RegistryEntry<GameEvent> registryEntry, float float2, Vec3d vec3d, @Nullable UUID uUID, @Nullable UUID uUID2, @Nullable Entity entity) -
Uses of Vec3d in net.minecraft.world.explosion
Modifier and TypeFieldDescriptionprivate final Map
<PlayerEntity, Vec3d> ExplosionImpl.knockbackByPlayer
Modifier and TypeMethodDescriptionstatic float
ExplosionImpl.calculateReceivedDamage
(Vec3d pos, Entity entity) ModifierConstructorDescriptionExplosionImpl
(ServerWorld world, @Nullable Entity entity, @Nullable DamageSource damageSource, @Nullable ExplosionBehavior behavior, Vec3d pos, float power, boolean createFire, Explosion.DestructionType destructionType) -
Uses of Vec3d in net.minecraft.world.gen.feature