Uses of Class
net.minecraft.world.phys.Vec3
Packages that use Vec3
Package
Description
-
Uses of Vec3 in com.mojang.blaze3d.audio
Fields in com.mojang.blaze3d.audio declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
ListenerTransform.forward
The field for theforward
record component.private final Vec3
ListenerTransform.position
The field for theposition
record component.private final Vec3
ListenerTransform.up
The field for theup
record component.Methods in com.mojang.blaze3d.audio that return Vec3Modifier and TypeMethodDescriptionListenerTransform.forward()
Returns the value of theforward
record component.ListenerTransform.position()
Returns the value of theposition
record component.ListenerTransform.right()
ListenerTransform.up()
Returns the value of theup
record component.Methods in com.mojang.blaze3d.audio with parameters of type Vec3Modifier and TypeMethodDescriptionvoid
Channel.setSelfPosition
(Vec3 pSource) Sets the position of the audio channel.Constructors in com.mojang.blaze3d.audio with parameters of type Vec3ModifierConstructorDescriptionListenerTransform
(Vec3 position, Vec3 forward, Vec3 up) Creates an instance of aListenerTransform
record class. -
Uses of Vec3 in com.mojang.blaze3d.vertex
Methods in com.mojang.blaze3d.vertex with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type Vec3Modifier and TypeMethodDescriptionboolean
DamageSourcePredicate.matches
(ServerLevel pLevel, Vec3 pPosition, DamageSource pSource) boolean
DistanceTrigger.TriggerInstance.matches
(ServerLevel pLevel, Vec3 pStartPosition, Vec3 pCurrentPosition) boolean
EntityPredicate.matches
(ServerLevel pLevel, Vec3 pPosition, Entity pEntity) boolean
EntitySubPredicate.matches
(Entity pEntity, ServerLevel pLevel, Vec3 pPosition) boolean
FallAfterExplosionTrigger.TriggerInstance.matches
(ServerLevel pLevel, Vec3 pStartPosition, Vec3 pEndPosition, LootContext pContext) boolean
FishingHookPredicate.matches
(Entity pEntity, ServerLevel pLevel, Vec3 pPosition) boolean
LevitationTrigger.TriggerInstance.matches
(ServerPlayer pPlayer, Vec3 pStartPos, int pDuration) boolean
LightningBoltPredicate.matches
(Entity pEntity, ServerLevel pLevel, Vec3 pPosition) boolean
PlayerPredicate.matches
(Entity pEntity, ServerLevel pLevel, Vec3 pPosition) boolean
RaiderPredicate.matches
(Entity pEntity, ServerLevel pLevel, Vec3 pPosition) boolean
SheepPredicate.matches
(Entity pEntity, ServerLevel pLevel, Vec3 pPosition) boolean
SlimePredicate.matches
(Entity pEntity, ServerLevel pLevel, Vec3 pPosition) boolean
TargetBlockTrigger.TriggerInstance.matches
(LootContext pContext, Vec3 pVector, int pSignalStrength) void
DistanceTrigger.trigger
(ServerPlayer pPlayer, Vec3 pPosition) void
FallAfterExplosionTrigger.trigger
(ServerPlayer pPlayer, Vec3 pPos, Entity pEntity) void
LevitationTrigger.trigger
(ServerPlayer pPlayer, Vec3 pStartPos, int pDuration) void
TargetBlockTrigger.trigger
(ServerPlayer pPlayer, Entity pProjectile, Vec3 pVector, int pSignalStrength) -
Uses of Vec3 in net.minecraft.client
Fields in net.minecraft.client declared as Vec3Modifier and TypeFieldDescription(package private) final Vec3
Camera.NearPlane.forward
private final Vec3
Camera.NearPlane.left
private Vec3
Camera.position
private final Vec3
Camera.NearPlane.up
Methods in net.minecraft.client that return Vec3Modifier and TypeMethodDescriptionCamera.NearPlane.getBottomLeft()
Camera.NearPlane.getBottomRight()
Camera.NearPlane.getPointOnPlane
(float pLeftScale, float pUpScale) Camera.getPosition()
Camera.NearPlane.getTopLeft()
Camera.NearPlane.getTopRight()
Camera.position()
Methods in net.minecraft.client with parameters of type Vec3Modifier and TypeMethodDescriptionprivate void
KeyboardHandler.copyCreateEntityCommand
(ResourceLocation pEntityId, Vec3 pPos, CompoundTag pCompound) protected void
Camera.setPosition
(Vec3 pPos) Constructors in net.minecraft.client with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.client.gui.components
Fields in net.minecraft.client.gui.components declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
SubtitleOverlay.SoundPlayedAt.location
The field for thelocation
record component.Methods in net.minecraft.client.gui.components that return Vec3Modifier and TypeMethodDescriptionSubtitleOverlay.SoundPlayedAt.location()
Returns the value of thelocation
record component.Methods in net.minecraft.client.gui.components with parameters of type Vec3Modifier and TypeMethodDescriptionSubtitleOverlay.Subtitle.getClosest
(Vec3 pLocation) boolean
SubtitleOverlay.Subtitle.isAudibleFrom
(Vec3 pLocation) void
Constructors in net.minecraft.client.gui.components with parameters of type Vec3ModifierConstructorDescription(package private)
SoundPlayedAt
(Vec3 location, long time) Creates an instance of aSoundPlayedAt
record class. -
Uses of Vec3 in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type Vec3Modifier and TypeMethodDescriptionvoid
ClientLevel.gameEvent
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) int
ClientLevel.getSkyColor
(Vec3 pCameraPosition, float pPartialTick) void
ClientLevel.syncBlockState
(BlockPos pPos, BlockState pState, Vec3 pPlayerPos) -
Uses of Vec3 in net.minecraft.client.multiplayer.prediction
Fields in net.minecraft.client.multiplayer.prediction declared as Vec3Modifier and TypeFieldDescription(package private) final Vec3
BlockStatePredictionHandler.ServerVerifiedState.playerPos
Constructors in net.minecraft.client.multiplayer.prediction with parameters of type Vec3ModifierConstructorDescription(package private)
ServerVerifiedState
(int pSequence, BlockState pBlockState, Vec3 pPlayerPos) -
Uses of Vec3 in net.minecraft.client.particle
Fields in net.minecraft.client.particle declared as Vec3Methods in net.minecraft.client.particle that return Vec3Constructors in net.minecraft.client.particle with parameters of type Vec3ModifierConstructorDescriptionItemPickupParticle
(EntityRenderDispatcher pEntityRenderDispatcher, ClientLevel pLevel, Entity pItemEntity, Entity pTarget, Vec3 pSpeed) TrackingEmitter
(ClientLevel pLevel, Entity pEntity, ParticleOptions pParticleType, int pLifetime, Vec3 pSpeedVector) TrailParticle
(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed, Vec3 pTarget, int pColor) -
Uses of Vec3 in net.minecraft.client.player
Fields in net.minecraft.client.player declared as Vec3Modifier and TypeFieldDescriptionprotected Vec3
AbstractClientPlayer.deltaMovementOnPreviousTick
private Vec3
RemotePlayer.lerpDeltaMovement
Methods in net.minecraft.client.player that return Vec3Modifier and TypeMethodDescriptionAbstractClientPlayer.getDeltaMovementLerped
(float pPartialTick) LocalPlayer.getRopeHoldPosition
(float pPartialTick) Methods in net.minecraft.client.player with parameters of type Vec3Modifier and TypeMethodDescriptionprotected boolean
LocalPlayer.isHorizontalCollisionMinor
(Vec3 pDeltaMovement) void
-
Uses of Vec3 in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer that return Vec3Modifier and TypeMethodDescriptionDimensionSpecialEffects.EndEffects.getBrightnessDependentFogColor
(Vec3 p_108894_, float p_108895_) abstract Vec3
DimensionSpecialEffects.getBrightnessDependentFogColor
(Vec3 pFogColor, float pBrightness) DimensionSpecialEffects.NetherEffects.getBrightnessDependentFogColor
(Vec3 p_108901_, float p_108902_) DimensionSpecialEffects.OverworldEffects.getBrightnessDependentFogColor
(Vec3 p_108908_, float p_108909_) GameRenderer.projectPointToScreen
(Vec3 pPoint) Methods in net.minecraft.client.renderer with parameters of type Vec3Modifier and TypeMethodDescriptionprivate void
LevelRenderer.addCloudsPass
(FrameGraphBuilder pFrameGraphBuilder, CloudStatus pCloudStatus, Vec3 pCameraPosition, float pTicks, int pCloudColor, float pCloudHeight) Deprecated.private void
LevelRenderer.addCloudsPass
(FrameGraphBuilder pFrameGraphBuilder, CloudStatus pCloudStatus, Vec3 pCameraPosition, float pTicks, int pCloudColor, float pCloudHeight, org.joml.Matrix4f modelViewMatrix) private void
LevelRenderer.addLateDebugPass
(FrameGraphBuilder pFrameGraphBuilder, Vec3 pCameraPosition, GpuBufferSlice pShaderFog) private void
LevelRenderer.addWeatherPass
(FrameGraphBuilder pFrameGraphBuilder, Vec3 pCameraPosition, float pPartialTick, GpuBufferSlice pShaderFog) Deprecated.private void
LevelRenderer.addWeatherPass
(FrameGraphBuilder pFrameGraphBuilder, Vec3 pCameraPosition, float pPartialTick, GpuBufferSlice pShaderFog, org.joml.Matrix4f modelViewMatrix, Camera camera) private void
WeatherEffectRenderer.collectColumnInstances
(Level pLevel, int pTicks, float pPartialTick, Vec3 pCameraPosition, int pRadius, List<WeatherEffectRenderer.ColumnInstance> pRainColumnInstances, List<WeatherEffectRenderer.ColumnInstance> pSnowColumnInstances) private static HitResult
GameRenderer.filterHitResult
(HitResult pHitResult, Vec3 pPos, double pBlockInteractionRange) DimensionSpecialEffects.EndEffects.getBrightnessDependentFogColor
(Vec3 p_108894_, float p_108895_) abstract Vec3
DimensionSpecialEffects.getBrightnessDependentFogColor
(Vec3 pFogColor, float pBrightness) DimensionSpecialEffects.NetherEffects.getBrightnessDependentFogColor
(Vec3 p_108901_, float p_108902_) DimensionSpecialEffects.OverworldEffects.getBrightnessDependentFogColor
(Vec3 p_108908_, float p_108909_) void
LevelRenderer.prepareCullFrustum
(Vec3 p_253766_, org.joml.Matrix4f p_254341_, org.joml.Matrix4f p_323487_) GameRenderer.projectPointToScreen
(Vec3 pPoint) void
CloudRenderer.render
(int pCloudColor, CloudStatus pCloudStatus, float pHeight, Vec3 pCameraPosition, float pTicks) private void
WeatherEffectRenderer.render
(MultiBufferSource pBufferSource, Vec3 pCameraPosition, int pRadius, float pRainLevel, List<WeatherEffectRenderer.ColumnInstance> pRainColumnInstances, List<WeatherEffectRenderer.ColumnInstance> pSnowColumnInstances) void
WeatherEffectRenderer.render
(Level pLevel, MultiBufferSource pBufferSource, int pTicks, float pPartialTick, Vec3 pCameraPosition) void
WorldBorderRenderer.render
(WorldBorder pWorldBorder, Vec3 pCameraPosition, double pRenderDistance, double pFarPlaneDepth) private void
WeatherEffectRenderer.renderInstances
(VertexConsumer pBuffer, List<WeatherEffectRenderer.ColumnInstance> pColumnInstances, Vec3 pCameraPosition, float pAmount, int pRadius, float pRainLevel) static void
ShapeRenderer.renderVector
(PoseStack p_360595_, VertexConsumer p_363463_, org.joml.Vector3f p_360401_, Vec3 p_364678_, int p_360349_) private void
SectionOcclusionGraph.runPartialUpdate
(boolean p_294795_, Frustum p_294341_, List<SectionRenderDispatcher.RenderSection> p_294796_, Vec3 p_295915_, it.unimi.dsi.fastutil.longs.LongOpenHashSet p_366753_) private void
SectionOcclusionGraph.runUpdates
(SectionOcclusionGraph.GraphStorage p_295507_, Vec3 p_294343_, Queue<SectionOcclusionGraph.Node> p_295598_, boolean p_295668_, Consumer<SectionRenderDispatcher.RenderSection> p_295393_, it.unimi.dsi.fastutil.longs.LongOpenHashSet p_366468_) private void
SectionOcclusionGraph.scheduleFullUpdate
(boolean p_294514_, Camera p_295663_, Vec3 p_295096_, it.unimi.dsi.fastutil.longs.LongOpenHashSet p_366772_) private void
LevelRenderer.scheduleResort
(SectionRenderDispatcher.RenderSection pSection, TranslucencyPointOfView pPointOfView, Vec3 pCameraPosition, boolean pForce, boolean pIgnoreAxisAlignment) private void
LevelRenderer.scheduleTranslucentSectionResort
(Vec3 pCameraPosition) -
Uses of Vec3 in net.minecraft.client.renderer.blockentity
Fields in net.minecraft.client.renderer.blockentity declared as Vec3Modifier and TypeFieldDescriptionprivate static final Vec3
HangingSignRenderer.TEXT_OFFSET
private static final Vec3
SignRenderer.TEXT_OFFSET
Methods in net.minecraft.client.renderer.blockentity that return Vec3Modifier and TypeMethodDescriptionprotected abstract Vec3
AbstractSignRenderer.getTextOffset()
protected Vec3
HangingSignRenderer.getTextOffset()
protected Vec3
SignRenderer.getTextOffset()
Methods in net.minecraft.client.renderer.blockentity with parameters of type Vec3Modifier and TypeMethodDescriptionvoid
AbstractSignRenderer.render
(SignBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
BannerRenderer.render
(BannerBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
BeaconRenderer.render
(T pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
BedRenderer.render
(BedBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
BellRenderer.render
(BellBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
BlockEntityRenderer.render
(T pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
BlockEntityWithBoundingBoxRenderer.render
(T pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
BrushableBlockRenderer.render
(BrushableBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
CampfireRenderer.render
(CampfireBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
ChestRenderer.render
(T pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
ConduitRenderer.render
(ConduitBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
DecoratedPotRenderer.render
(DecoratedPotBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
EnchantTableRenderer.render
(EnchantingTableBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
LecternRenderer.render
(LecternBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
PistonHeadRenderer.render
(PistonMovingBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
ShulkerBoxRenderer.render
(ShulkerBoxBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
SkullBlockRenderer.render
(SkullBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
SpawnerRenderer.render
(SpawnerBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
TestInstanceRenderer.render
(TestInstanceBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
TheEndGatewayRenderer.render
(TheEndGatewayBlockEntity p_112613_, float p_112614_, PoseStack p_112615_, MultiBufferSource p_112616_, int p_112617_, int p_112618_, Vec3 p_401343_) void
TheEndPortalRenderer.render
(T pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
TrialSpawnerRenderer.render
(TrialSpawnerBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
VaultRenderer.render
(VaultBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) private static <T extends BlockEntity>
voidBlockEntityRenderDispatcher.setupAndRender
(BlockEntityRenderer<T> pRenderer, T pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, Vec3 pCameraPos) boolean
BeaconRenderer.shouldRender
(T pBlockEntity, Vec3 pCameraPos) default boolean
BlockEntityRenderer.shouldRender
(T pBlockEntity, Vec3 pCameraPos) boolean
TestInstanceRenderer.shouldRender
(TestInstanceBlockEntity pBlockEntity, Vec3 pCameraPos) private void
AbstractSignRenderer.translateSignText
(PoseStack pPoseStack, boolean pIsFront, Vec3 pOffset) -
Uses of Vec3 in net.minecraft.client.renderer.chunk
Fields in net.minecraft.client.renderer.chunk declared as Vec3Methods in net.minecraft.client.renderer.chunk with parameters of type Vec3Modifier and TypeMethodDescriptionstatic TranslucencyPointOfView
void
SectionRenderDispatcher.setCameraPosition
(Vec3 pCameraPosition) -
Uses of Vec3 in net.minecraft.client.renderer.debug
Fields in net.minecraft.client.renderer.debug declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
GameEventListenerRenderer.TrackedGameEvent.position
The field for theposition
record component.Methods in net.minecraft.client.renderer.debug that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3
DebugRenderer.mixColor
(float pShift) GameEventListenerRenderer.TrackedGameEvent.position()
Returns the value of theposition
record component.private static Vec3
DebugRenderer.shiftHue
(float pRed, float pGreen, float pBlue, float pShift) Methods in net.minecraft.client.renderer.debug that return types with arguments of type Vec3Modifier and TypeMethodDescriptionGameEventListenerRenderer.TrackedListener.getPosition
(Level pLevel) Methods in net.minecraft.client.renderer.debug with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static void
BreezeDebugRenderer.drawCircle
(org.joml.Matrix4f p_312289_, double p_312777_, double p_312720_, double p_312378_, VertexConsumer p_312840_, Vec3 p_312033_, float p_312193_, int p_312116_) private static void
BreezeDebugRenderer.drawCircleVertex
(int p_312234_, org.joml.Matrix4f p_312568_, double p_312049_, double p_312421_, double p_311755_, VertexConsumer p_311778_, Vec3 p_312214_, float p_312646_, int p_312055_) private static void
BreezeDebugRenderer.drawLine
(PoseStack pPoseStack, MultiBufferSource pBuffer, double pXOffset, double pYOffset, double pZOffset, Vec3 pFromPos, Vec3 pToPos, int pColor) boolean
GameEventListenerRenderer.TrackedListener.handleGameEvent
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) boolean
void
GameEventListenerRenderer.trackGameEvent
(ResourceKey<GameEvent> pGameEvent, Vec3 pPosition) Constructors in net.minecraft.client.renderer.debug with parameters of type Vec3ModifierConstructorDescription(package private)
TrackedGameEvent
(long timeStamp, ResourceKey<GameEvent> gameEvent, Vec3 position) Creates an instance of aTrackedGameEvent
record class. -
Uses of Vec3 in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity that return Vec3Modifier and TypeMethodDescriptionprivate Vec3
FishingHookRenderer.getPlayerHandPos
(Player pPlayer, float pHandAngle, float pPartialTick) private Vec3
GuardianRenderer.getPosition
(LivingEntity pLivingEntity, double pYOffset, float pPartialTick) AbstractMinecartRenderer.getRenderOffset
(S pRenderState) EndermanRenderer.getRenderOffset
(EndermanRenderState p_362373_) EntityRenderer.getRenderOffset
(S pRenderState) ItemFrameRenderer.getRenderOffset
(ItemFrameRenderState pRenderState) ShulkerRenderer.getRenderOffset
(ShulkerRenderState pRenderState) Methods in net.minecraft.client.renderer.entity with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static void
GuardianRenderer.renderBeam
(PoseStack pPoseStack, VertexConsumer pBuffer, Vec3 pBeamVector, float pAttackTime, float pScale, float pAnimationTime) -
Uses of Vec3 in net.minecraft.client.renderer.entity.player
Methods in net.minecraft.client.renderer.entity.player that return Vec3 -
Uses of Vec3 in net.minecraft.client.renderer.entity.state
Fields in net.minecraft.client.renderer.entity.state declared as Vec3Modifier and TypeFieldDescriptionGuardianRenderState.attackTargetPosition
MinecartRenderState.backPos
EndCrystalRenderState.beamOffset
EnderDragonRenderState.beamOffset
EntityRenderState.LeashState.end
GuardianRenderState.eyePosition
MinecartRenderState.frontPos
Vec3[]
IllusionerRenderState.illusionOffsets
FishingHookRenderState.lineOriginOffset
GuardianRenderState.lookAtPosition
GuardianRenderState.lookDirection
EntityRenderState.nameTagAttachment
EntityRenderState.LeashState.offset
EntityRenderState.passengerOffset
MinecartRenderState.posOnRail
ShulkerRenderState.renderOffset
MinecartRenderState.renderPos
EntityRenderState.LeashState.start
-
Uses of Vec3 in net.minecraft.client.resources.sounds
Methods in net.minecraft.client.resources.sounds with parameters of type Vec3Modifier and TypeMethodDescriptionstatic SimpleSoundInstance
SimpleSoundInstance.forJukeboxSong
(SoundEvent pSound, Vec3 pPos) -
Uses of Vec3 in net.minecraft.commands
Fields in net.minecraft.commands declared as Vec3Methods in net.minecraft.commands that return Vec3Methods in net.minecraft.commands with parameters of type Vec3Constructors in net.minecraft.commands with parameters of type Vec3ModifierConstructorDescriptionCommandSourceStack
(CommandSource pSource, Vec3 pWorldPosition, Vec2 pRotation, ServerLevel pLevel, int pPermissionLevel, String pTextName, Component pDisplayName, MinecraftServer pServer, Entity pEntity) protected
CommandSourceStack
(CommandSource pSource, Vec3 pWorldPosition, Vec2 pRotation, ServerLevel pLevel, int pPermissionLevel, String pTextName, Component pDisplayName, MinecraftServer pServer, Entity pEntity, boolean pSilent, CommandResultCallback pResultCallback, EntityAnchorArgument.Anchor pAnchor, CommandSigningContext pSigningContext, TaskChainer pChatMessageChainer) -
Uses of Vec3 in net.minecraft.commands.arguments
Fields in net.minecraft.commands.arguments with type parameters of type Vec3Modifier and TypeFieldDescriptionprivate final BiFunction
<Vec3, Entity, Vec3> EntityAnchorArgument.Anchor.transform
private final BiFunction
<Vec3, Entity, Vec3> EntityAnchorArgument.Anchor.transform
Methods in net.minecraft.commands.arguments that return Vec3Modifier and TypeMethodDescriptionEntityAnchorArgument.Anchor.apply
(CommandSourceStack pSource) Gets the coordinate based on the given command source's position.Gets the coordinate based on the given entity's position.Constructor parameters in net.minecraft.commands.arguments with type arguments of type Vec3 -
Uses of Vec3 in net.minecraft.commands.arguments.coordinates
Methods in net.minecraft.commands.arguments.coordinates that return Vec3Modifier and TypeMethodDescriptionCoordinates.getPosition
(CommandSourceStack pSource) LocalCoordinates.getPosition
(CommandSourceStack pSource) WorldCoordinates.getPosition
(CommandSourceStack pSource) static Vec3
Vec3Argument.getVec3
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120845_, String p_120846_) -
Uses of Vec3 in net.minecraft.commands.arguments.selector
Fields in net.minecraft.commands.arguments.selector with type parameters of type Vec3Modifier and TypeFieldDescriptionprivate final BiConsumer
<Vec3, List<? extends Entity>> EntitySelector.order
private BiConsumer
<Vec3, List<? extends Entity>> EntitySelectorParser.order
static final BiConsumer
<Vec3, List<? extends Entity>> EntitySelector.ORDER_ARBITRARY
static final BiConsumer
<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_FURTHEST
static final BiConsumer
<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_NEAREST
static final BiConsumer
<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_RANDOM
EntitySelector.position
EntitySelector.position
Methods in net.minecraft.commands.arguments.selector that return types with arguments of type Vec3Modifier and TypeMethodDescriptionBiConsumer
<Vec3, List<? extends Entity>> EntitySelectorParser.getOrder()
Methods in net.minecraft.commands.arguments.selector with parameters of type Vec3Modifier and TypeMethodDescriptionprivate AABB
EntitySelector.getAbsoluteAabb
(Vec3 pPos) EntitySelector.getPredicate
(Vec3 pPos, AABB pBox, FeatureFlagSet pEnabledFeatures) EntitySelector.sortAndLimit
(Vec3 pPos, List<T> pEntities) Method parameters in net.minecraft.commands.arguments.selector with type arguments of type Vec3Modifier and TypeMethodDescriptionvoid
EntitySelectorParser.setOrder
(BiConsumer<Vec3, List<? extends Entity>> pOrder) Constructor parameters in net.minecraft.commands.arguments.selector with type arguments of type Vec3ModifierConstructorDescriptionEntitySelector
(int pMaxResults, boolean pIncludesEntities, boolean pWorldLimited, List<Predicate<Entity>> pContextFreePredicates, MinMaxBounds.Doubles pRange, Function<Vec3, Vec3> pPosition, AABB pAabb, BiConsumer<Vec3, List<? extends Entity>> pOrder, boolean pCurrentEntity, String pPlayerName, UUID pEntityUUID, EntityType<?> pType, boolean pUsesSelector) EntitySelector
(int pMaxResults, boolean pIncludesEntities, boolean pWorldLimited, List<Predicate<Entity>> pContextFreePredicates, MinMaxBounds.Doubles pRange, Function<Vec3, Vec3> pPosition, AABB pAabb, BiConsumer<Vec3, List<? extends Entity>> pOrder, boolean pCurrentEntity, String pPlayerName, UUID pEntityUUID, EntityType<?> pType, boolean pUsesSelector) EntitySelector
(int pMaxResults, boolean pIncludesEntities, boolean pWorldLimited, List<Predicate<Entity>> pContextFreePredicates, MinMaxBounds.Doubles pRange, Function<Vec3, Vec3> pPosition, AABB pAabb, BiConsumer<Vec3, List<? extends Entity>> pOrder, boolean pCurrentEntity, String pPlayerName, UUID pEntityUUID, EntityType<?> pType, boolean pUsesSelector) -
Uses of Vec3 in net.minecraft.core
Fields in net.minecraft.core declared as Vec3Methods in net.minecraft.core that return Vec3Modifier and TypeMethodDescriptionBlockPos.clampLocationWithin
(Vec3 pPos) BlockPos.getBottomCenter()
BlockPos.getCenter()
Direction.getUnitVec3()
Methods in net.minecraft.core with parameters of type Vec3Modifier and TypeMethodDescriptionBlockPos.clampLocationWithin
(Vec3 pPos) static Direction
Direction.getApproximateNearest
(Vec3 pVector) -
Uses of Vec3 in net.minecraft.core.dispenser
Methods in net.minecraft.core.dispenser that return Vec3 -
Uses of Vec3 in net.minecraft.core.particles
Fields in net.minecraft.core.particles declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
TrailParticleOption.target
The field for thetarget
record component.Methods in net.minecraft.core.particles that return Vec3Modifier and TypeMethodDescriptionTrailParticleOption.target()
Returns the value of thetarget
record component.Constructors in net.minecraft.core.particles with parameters of type Vec3ModifierConstructorDescriptionTrailParticleOption
(Vec3 target, int color, int duration) Creates an instance of aTrailParticleOption
record class. -
Uses of Vec3 in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework that return Vec3Modifier and TypeMethodDescriptionGameTestHelper.absoluteVec
(Vec3 pRelativeVec3) GameTestHelper.relativeVec
(Vec3 pAbsoluteVec3) Methods in net.minecraft.gametest.framework with parameters of type Vec3Modifier and TypeMethodDescriptionGameTestHelper.absoluteVec
(Vec3 pRelativeVec3) GameTestHelper.findEntities
(EntityType<E> pType, Vec3 pPos, double pRadius) GameTestHelper.relativeVec
(Vec3 pAbsoluteVec3) <E extends Entity>
EGameTestHelper.spawn
(EntityType<E> pType, Vec3 pPos) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill
(EntityType<E> pType, Vec3 pPos) -
Uses of Vec3 in net.minecraft.network
Methods in net.minecraft.network that return Vec3Modifier and TypeMethodDescriptionFriendlyByteBuf.readVec3()
static Vec3
FriendlyByteBuf.readVec3
(io.netty.buffer.ByteBuf p_363264_) Methods in net.minecraft.network with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.network.protocol.common.custom
Fields in net.minecraft.network.protocol.common.custom declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
BeeDebugPayload.BeeInfo.pos
The field for thepos
record component.private final Vec3
BrainDebugPayload.BrainDump.pos
The field for thepos
record component.private final Vec3
GameEventDebugPayload.pos
The field for thepos
record component.Methods in net.minecraft.network.protocol.common.custom that return Vec3Modifier and TypeMethodDescriptionBeeDebugPayload.BeeInfo.pos()
Returns the value of thepos
record component.BrainDebugPayload.BrainDump.pos()
Returns the value of thepos
record component.GameEventDebugPayload.pos()
Returns the value of thepos
record component.Constructors in net.minecraft.network.protocol.common.custom with parameters of type Vec3ModifierConstructorDescriptionBeeInfo
(UUID uuid, int id, Vec3 pos, Path path, BlockPos hivePos, BlockPos flowerPos, int travelTicks, Set<String> goals, List<BlockPos> blacklistedHives) Creates an instance of aBeeInfo
record class.BrainDump
(UUID uuid, int id, String name, String profession, int xp, float health, float maxHealth, Vec3 pos, String inventory, Path path, boolean wantsGolem, int angerLevel, List<String> activities, List<String> behaviors, List<String> memories, List<String> gossips, Set<BlockPos> pois, Set<BlockPos> potentialPois) Creates an instance of aBrainDump
record class.GameEventDebugPayload
(ResourceKey<GameEvent> gameEventType, Vec3 pos) Creates an instance of aGameEventDebugPayload
record class. -
Uses of Vec3 in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3
VecDeltaCodec.base
private final Vec3
ClientboundExplodePacket.center
The field for thecenter
record component.private final Vec3
ServerboundInteractPacket.InteractionAtLocationAction.location
private final Vec3
ClientboundMoveVehiclePacket.position
The field for theposition
record component.private final Vec3
ServerboundMoveVehiclePacket.position
The field for theposition
record component.Fields in net.minecraft.network.protocol.game with type parameters of type Vec3Modifier and TypeFieldDescriptionClientboundExplodePacket.playerKnockback
The field for theplayerKnockback
record component.ClientboundDamageEventPacket.sourcePosition
The field for thesourcePosition
record component.Methods in net.minecraft.network.protocol.game that return Vec3Modifier and TypeMethodDescriptionClientboundExplodePacket.center()
Returns the value of thecenter
record component.VecDeltaCodec.decode
(long pX, long pY, long pZ) VecDeltaCodec.getBase()
ClientboundPlayerLookAtPacket.getPosition
(Level pLevel) ClientboundMoveVehiclePacket.position()
Returns the value of theposition
record component.ServerboundMoveVehiclePacket.position()
Returns the value of theposition
record component.Methods in net.minecraft.network.protocol.game that return types with arguments of type Vec3Modifier and TypeMethodDescriptionClientboundExplodePacket.playerKnockback()
Returns the value of theplayerKnockback
record component.ClientboundDamageEventPacket.sourcePosition()
Returns the value of thesourcePosition
record component.Methods in net.minecraft.network.protocol.game with parameters of type Vec3Modifier and TypeMethodDescriptionstatic ServerboundInteractPacket
ServerboundInteractPacket.createInteractionPacket
(Entity pEntity, boolean pUsingSecondaryAction, InteractionHand pHand, Vec3 pInteractionLocation) long
long
long
void
ServerboundInteractPacket.Handler.onInteraction
(InteractionHand pHand, Vec3 pInteractionLocation) static void
DebugPackets.sendGameEventInfo
(Level pLevel, Holder<GameEvent> pGameEvent, Vec3 pPos) void
Constructors in net.minecraft.network.protocol.game with parameters of type Vec3ModifierConstructorDescriptionClientboundAddEntityPacket
(int pId, UUID pUuid, double pX, double pY, double pZ, float pXRot, float pYRot, EntityType<?> pType, int pData, Vec3 pDeltaMovement, double pYHeadRot) ClientboundExplodePacket
(Vec3 center, Optional<Vec3> playerKnockback, ParticleOptions explosionParticle, Holder<SoundEvent> explosionSound) Creates an instance of aClientboundExplodePacket
record class.ClientboundMoveVehiclePacket
(Vec3 position, float yRot, float xRot) Creates an instance of aClientboundMoveVehiclePacket
record class.ClientboundSetEntityMotionPacket
(int pId, Vec3 pDeltaMovement) (package private)
InteractionAtLocationAction
(InteractionHand pHand, Vec3 pLocation) ServerboundMoveVehiclePacket
(Vec3 position, float yRot, float xRot, boolean onGround) Creates an instance of aServerboundMoveVehiclePacket
record class.Constructor parameters in net.minecraft.network.protocol.game with type arguments of type Vec3ModifierConstructorDescriptionClientboundDamageEventPacket
(int entityId, Holder<DamageType> sourceType, int sourceCauseId, int sourceDirectId, Optional<Vec3> sourcePosition) Creates an instance of aClientboundDamageEventPacket
record class.ClientboundExplodePacket
(Vec3 center, Optional<Vec3> playerKnockback, ParticleOptions explosionParticle, Holder<SoundEvent> explosionSound) Creates an instance of aClientboundExplodePacket
record class. -
Uses of Vec3 in net.minecraft.server.chase
Fields in net.minecraft.server.chase declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
ChaseClient.TeleportTarget.pos
The field for thepos
record component.Methods in net.minecraft.server.chase that return Vec3Modifier and TypeMethodDescriptionChaseClient.TeleportTarget.pos()
Returns the value of thepos
record component.Constructors in net.minecraft.server.chase with parameters of type Vec3ModifierConstructorDescription(package private)
TeleportTarget
(ResourceKey<Level> level, Vec3 pos, Vec2 rot) Creates an instance of aTeleportTarget
record class. -
Uses of Vec3 in net.minecraft.server.commands
Fields in net.minecraft.server.commands declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
LookAt.LookAtPosition.position
The field for theposition
record component.Methods in net.minecraft.server.commands that return Vec3Modifier and TypeMethodDescriptionLookAt.LookAtPosition.position()
Returns the value of theposition
record component.Methods in net.minecraft.server.commands with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Entity
SummonCommand.createEntity
(CommandSourceStack pSource, Holder.Reference<EntityType<?>> pType, Vec3 pPos, CompoundTag pTag, boolean pRandomizeProperties) private static int
LootCommand.dropInWorld
(CommandSourceStack pSource, Vec3 pPos, List<ItemStack> pItems, LootCommand.Callback pCallback) private static int
PlaySoundCommand.playSound
(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, ResourceLocation pSound, SoundSource pCategory, Vec3 pPos, float pVolume, float pPitch, float pMinVolume) private static int
ParticleCommand.sendParticles
(CommandSourceStack pSource, ParticleOptions pParticleData, Vec3 pPos, Vec3 pDelta, float pSpeed, int pCount, boolean pForce, Collection<ServerPlayer> pViewers) private static int
SummonCommand.spawnEntity
(CommandSourceStack pSource, Holder.Reference<EntityType<?>> pType, Vec3 pPos, CompoundTag pTag, boolean pRandomizeProperties) Constructors in net.minecraft.server.commands with parameters of type Vec3ModifierConstructorDescriptionLookAtPosition
(Vec3 position) Creates an instance of aLookAtPosition
record class. -
Uses of Vec3 in net.minecraft.server.level
Fields in net.minecraft.server.level declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3
ServerPlayer.enteredLavaOnVehiclePosition
private Vec3
ServerPlayer.enteredNetherPosition
private Vec3
ServerPlayer.lastKnownClientMovement
private Vec3
ServerEntity.lastSentMovement
private Vec3
ServerPlayer.levitationStartPos
private final Vec3
ServerPlayer.RespawnPosAngle.position
The field for theposition
record component.private Vec3
ServerPlayer.startingToFallPosition
Methods in net.minecraft.server.level that return Vec3Modifier and TypeMethodDescriptionServerPlayer.getKnownMovement()
ServerPlayer.getLastClientMoveIntent()
ServerEntity.getLastSentMovement()
ServerEntity.getPositionBase()
ServerPlayer.RespawnPosAngle.position()
Returns the value of theposition
record component.Methods in net.minecraft.server.level with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static float
ServerPlayer.RespawnPosAngle.calculateLookAtYaw
(Vec3 pPosition, BlockPos pTowardsPos) private static double
ChunkMap.euclideanDistanceSquared
(ChunkPos pChunkPos, Vec3 pPos) void
ServerLevel.gameEvent
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) void
WorldGenRegion.gameEvent
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) void
ServerPlayer.lookAt
(EntityAnchorArgument.Anchor pAnchor, Vec3 pTarget) static ServerPlayer.RespawnPosAngle
void
ServerPlayer.setKnownMovement
(Vec3 pKnownMovement) Constructors in net.minecraft.server.level with parameters of type Vec3ModifierConstructorDescriptionRespawnPosAngle
(Vec3 position, float yaw) Creates an instance of aRespawnPosAngle
record class. -
Uses of Vec3 in net.minecraft.server.network
Fields in net.minecraft.server.network declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3
ServerGamePacketListenerImpl.awaitingPositionFromClient
Methods in net.minecraft.server.network with parameters of type Vec3Modifier and TypeMethodDescriptionprivate void
ServerGamePacketListenerImpl.handlePlayerKnownMovement
(Vec3 pMovement) -
Uses of Vec3 in net.minecraft.util
Methods in net.minecraft.util that return Vec3Modifier and TypeMethodDescriptionCubicSampler.Vec3Fetcher.fetch
(int pX, int pY, int pZ) static Vec3
CubicSampler.gaussianSampleVec3
(Vec3 pVec, CubicSampler.Vec3Fetcher pFetcher) private static Vec3
ParticleUtils.getRandomSpeedRanges
(RandomSource pRandom) static Vec3
Methods in net.minecraft.util with parameters of type Vec3Modifier and TypeMethodDescriptionstatic int
static Vec3
CubicSampler.gaussianSampleVec3
(Vec3 pVec, CubicSampler.Vec3Fetcher pFetcher) static Vec3
static boolean
Mth.rayIntersectsAABB
(Vec3 pStart, Vec3 pEnd, AABB pBoundingBox) static void
ParticleUtils.spawnParticleOnFace
(Level pLevel, BlockPos pPos, Direction pDirection, ParticleOptions pParticle, Vec3 pSpeed, double pSpread) Method parameters in net.minecraft.util with type arguments of type Vec3Modifier and TypeMethodDescriptionstatic void
ParticleUtils.spawnParticlesOnBlockFace
(Level pLevel, BlockPos pPos, ParticleOptions pParticle, IntProvider pCount, Direction pDirection, Supplier<Vec3> pSpeedSupplier, double pSpread) -
Uses of Vec3 in net.minecraft.world.damagesource
Fields in net.minecraft.world.damagesource declared as Vec3Methods in net.minecraft.world.damagesource that return Vec3Modifier and TypeMethodDescriptionDamageSource.getSourcePosition()
DamageSource.sourcePositionRaw()
Methods in net.minecraft.world.damagesource with parameters of type Vec3Constructors in net.minecraft.world.damagesource with parameters of type Vec3ModifierConstructorDescriptionDamageSource
(Holder<DamageType> pType, Entity pDirectEntity, Entity pCausingEntity, Vec3 pDamageSourcePosition) DamageSource
(Holder<DamageType> pType, Vec3 pDamageSourcePosition) -
Uses of Vec3 in net.minecraft.world.effect
Methods in net.minecraft.world.effect with parameters of type Vec3Modifier and TypeMethodDescriptionstatic List
<ServerPlayer> MobEffectUtil.addEffectToPlayersAround
(ServerLevel pLevel, Entity pSource, Vec3 pPos, double pRadius, MobEffectInstance pEffect, int pDuration) -
Uses of Vec3 in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as Vec3Modifier and TypeFieldDescriptionstatic final Vec3
Leashable.AXIS_SPECIFIC_ELASTICITY
private Vec3
Entity.deltaMovement
private final Vec3
PositionMoveRotation.deltaMovement
The field for thedeltaMovement
record component.private final Vec3
Leashable.Wrench.force
The field for theforce
record component.private final Vec3
Entity.Movement.from
The field for thefrom
record component.private Vec3
Entity.position
(package private) Vec3
InterpolationHandler.InterpolationData.position
private final Vec3
PositionMoveRotation.position
The field for theposition
record component.private Vec3
InterpolationHandler.previousTickPosition
protected Vec3
Entity.stuckSpeedMultiplier
private final Vec3
Entity.Movement.to
The field for theto
record component.Fields in net.minecraft.world.entity with type parameters of type Vec3Modifier and TypeFieldDescriptionprivate final Map
<EntityAttachment, List<Vec3>> EntityAttachments.attachments
private final Map
<EntityAttachment, List<Vec3>> EntityAttachments.Builder.attachments
Leashable.ENTITY_ATTACHMENT_POINT
Leashable.LEASHER_ATTACHMENT_POINT
Leashable.SHARED_QUAD_ATTACHMENT_POINTS
EntityAttachment.Fallback.ZERO
Methods in net.minecraft.world.entity that return Vec3Modifier and TypeMethodDescriptionprotected final Vec3
Entity.calculateUpVector
(float pXRot, float pYRot) final Vec3
Entity.calculateViewVector
(float pXRot, float pYRot) Calculates the view vector using the X and Y rotation of an entity.private Vec3
Given a motion vector, return an updated vector that takes into account restrictions such as collisions (from all directions) and step-up from stepHeightstatic Vec3
Entity.collideBoundingBox
(Entity pEntity, Vec3 pVec, AABB pCollisionBox, Level pLevel, List<VoxelShape> pPotentialHits) private static Vec3
Entity.collideWithShapes
(Vec3 pDeltaMovement, AABB pEntityBB, List<VoxelShape> pShapes) static Vec3[]
Leashable.createQuadLeashOffsets
(Entity pEntity, double pZOffset, double pZ, double pX, double pY) PositionMoveRotation.deltaMovement()
Returns the value of thedeltaMovement
record component.Leashable.Wrench.force()
Returns the value of theforce
record component.Entity.Movement.from()
Returns the value of thefrom
record component.EntityAttachments.get
(EntityAttachment pAttachment, int pIndex, float pYRot) EntityAttachments.getAverage
(EntityAttachment pAttachment) EntityAttachments.getClamped
(EntityAttachment pAttachment, int pIndex, float pYRot) protected static Vec3
Entity.getCollisionHorizontalEscapeVector
(double pVehicleWidth, double pPassengerWidth, float pYRot) protected static Vec3
Entity.getDefaultPassengerAttachmentPoint
(Entity pVehicle, Entity pPassenger, EntityAttachments pAttachments) Entity.getDeltaMovement()
Entity.getDismountLocationForPassenger
(LivingEntity pPassenger) final Vec3
Entity.getEyePosition()
final Vec3
Entity.getEyePosition
(float pPartialTick) LivingEntity.getFluidFallingAdjustedMovement
(double pGravity, boolean pIsFalling, Vec3 pDeltaMovement) Entity.getForward()
Entity.getHandHoldingItemAngle
(Item pItem) private static Vec3
Leashable.getHolderMovement
(Entity pHolder) protected static Vec3
Entity.getInputVector
(Vec3 pRelative, float pMotionScaler, float pFacing) Entity.getKnownMovement()
default Vec3
Leashable.getLeashOffset()
default Vec3
Leashable.getLeashOffset
(float pPartialTick) Entity.getLightProbePosition
(float pPartialTicks) Entity.getLookAngle()
EntityAttachments.getNullable
(EntityAttachment pAttachment, int pIndex, float pYRot) protected Vec3
Entity.getPassengerAttachmentPoint
(Entity pEntity, EntityDimensions pDimensions, float pPartialTick) Entity.getPassengerRidingPosition
(Entity pEntity) LivingEntity.getPassengerRidingPosition
(Entity pEntity) final Vec3
Entity.getPosition
(float pPartialTicks) Vec3[]
Entity.getQuadLeashHolderOffsets()
default Vec3[]
Leashable.getQuadLeashOffsets()
Entity.getRelativePortalPosition
(Direction.Axis pAxis, BlockUtil.FoundRectangle pPortal) LivingEntity.getRelativePortalPosition
(Direction.Axis pAxis, BlockUtil.FoundRectangle pPortal) protected Vec3
LivingEntity.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) Entity.getRopeHoldPosition
(float pPartialTicks) final Vec3
Entity.getUpVector
(float pPartialTick) Entity.getVehicleAttachmentPoint
(Entity pEntity) final Vec3
Entity.getViewVector
(float pPartialTicks) Gets the interpolated look vector.private Vec3
LivingEntity.handleOnClimbable
(Vec3 pDeltaMovement) private Vec3
LivingEntity.handleRelativeFrictionAndCalculateMovement
(Vec3 pDeltaMovement, float pFriction) protected Vec3
Entity.limitPistonMovement
(Vec3 pPos) protected Vec3
Entity.maybeBackOffFromEdge
(Vec3 pVec, MoverType pMover) final Vec3
Entity.oldPosition()
Entity.position()
InterpolationHandler.position()
PositionMoveRotation.position()
Returns the value of theposition
record component.static Vec3
LivingEntity.resetForwardDirectionOfRelativePortalPosition
(Vec3 pRelativePortalPosition) Entity.Movement.to()
Returns the value of theto
record component.Entity.trackingPosition()
private static Vec3
EntityAttachments.transformPoint
(Vec3 pPoint, float pYRot) private Vec3
LivingEntity.updateFallFlyingMovement
(Vec3 pDeltaMovement) Methods in net.minecraft.world.entity that return types with arguments of type Vec3Modifier and TypeMethodDescriptionEntityAttachment.Fallback.create
(float pWidth, float pHeight) EntityAttachment.createFallbackPoints
(float pWidth, float pHeight) Methods in net.minecraft.world.entity with parameters of type Vec3Modifier and TypeMethodDescriptionvoid
void
Entity.addDeltaMovement
(Vec3 pAddend) void
Entity.applyEffectsFromBlocks
(Vec3 pOldPosition, Vec3 pPosition) private void
Entity.applyMovementEmissionAndPlaySound
(Entity.MovementEmission pMovementEmission, Vec3 pMovement, BlockPos pPos, BlockState pState) EntityAttachments.Builder.attach
(EntityAttachment pAttachment, Vec3 pPos) EntityType.Builder.attach
(EntityAttachment pAttachment, Vec3 pPos) static void
ExperienceOrb.award
(ServerLevel pLevel, Vec3 pPos, int pAmount) static void
ExperienceOrb.awardWithDirection
(ServerLevel pLevel, Vec3 pPos, Vec3 pDirection, int pAmount) private static Iterable
<Direction.Axis> Entity.axisStepOrder
(Vec3 pDeltaMovement) private void
Entity.checkInsideBlocks
(Vec3 p_428555_, Vec3 p_428532_, InsideBlockEffectApplier.StepBasedCollector p_428368_, it.unimi.dsi.fastutil.longs.LongSet p_428369_) protected void
Entity.checkSupportingBlock
(boolean pOnGround, Vec3 pMovement) private Vec3
Given a motion vector, return an updated vector that takes into account restrictions such as collisions (from all directions) and step-up from stepHeightstatic Vec3
Entity.collideBoundingBox
(Entity pEntity, Vec3 pVec, AABB pCollisionBox, Level pLevel, List<VoxelShape> pPotentialHits) boolean
Entity.collidedWithFluid
(FluidState pFluid, BlockPos pPos, Vec3 pFrom, Vec3 pTo) boolean
Entity.collidedWithShapeMovingFrom
(Vec3 pFrom, Vec3 pTo, List<AABB> pBoxes) private static Vec3
Entity.collideWithShapes
(Vec3 pDeltaMovement, AABB pEntityBB, List<VoxelShape> pShapes) private static Optional
<Leashable.Wrench> Leashable.computeDampenedSpringInteraction
(Vec3 pEntityAttachmentPoint, Vec3 pLeasherAttachmentPoint, double pElasticDistance, Vec3 pKnownMovement, Vec3 pRelativeAttachmentPoint) double
Entity.distanceToSqr
(Vec3 pVec) LivingEntity.getFluidFallingAdjustedMovement
(double pGravity, boolean pIsFalling, Vec3 pDeltaMovement) protected static Vec3
Entity.getInputVector
(Vec3 pRelative, float pMotionScaler, float pFacing) protected Vec3
LivingEntity.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) private Vec3
LivingEntity.handleOnClimbable
(Vec3 pDeltaMovement) private Vec3
LivingEntity.handleRelativeFrictionAndCalculateMovement
(Vec3 pDeltaMovement, float pFriction) Entity.interactAt
(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity.void
InterpolationHandler.interpolateTo
(Vec3 pPos, float pYRot, float pXRot) protected boolean
Entity.isHorizontalCollisionMinor
(Vec3 pDeltaMovement) boolean
Mob.isWithinHome
(Vec3 pPos) Leashable.leashableInArea
(Level pLevel, Vec3 pPos, Predicate<Leashable> pPredicate) protected Vec3
Entity.limitPistonMovement
(Vec3 pPos) void
Entity.lookAt
(EntityAnchorArgument.Anchor pAnchor, Vec3 pTarget) void
LivingEntity.lookAt
(EntityAnchorArgument.Anchor pAnchor, Vec3 pTarget) protected AABB
Entity.makeBoundingBox
(Vec3 pPosition) EntityDimensions.makeBoundingBox
(Vec3 pPos) protected AABB
Interaction.makeBoundingBox
(Vec3 pPosition) void
Entity.makeStuckInBlock
(BlockState pState, Vec3 pMotionMultiplier) protected Vec3
Entity.maybeBackOffFromEdge
(Vec3 pVec, MoverType pMover) void
final void
Entity.moveOrInterpolateTo
(Vec3 pPos, float pYRot, float pXRot) void
Entity.moveRelative
(float pAmount, Vec3 pRelative) EntityType.Builder.passengerAttachments
(Vec3... pAttachPoints) void
static Vec3
LivingEntity.resetForwardDirectionOfRelativePortalPosition
(Vec3 pRelativePortalPosition) void
Entity.setDeltaMovement
(Vec3 pDeltaMovement) private void
final void
Entity.setOldPosAndRot
(Vec3 pPos, float pYRot, float pXRot) void
Entity.setOnGroundWithMovement
(boolean pOnGround, boolean pHorizontalCollision, Vec3 pMovement) void
Entity.setOnGroundWithMovement
(boolean pOnGround, Vec3 pMovement) final void
void
void
Entity.spawnAtLocation
(ServerLevel pLevel, ItemStack pStack, Vec3 pOffset) protected void
LivingEntity.tickRidden
(Player pPlayer, Vec3 pTravelVector) (package private) static double
Leashable.Wrench.torqueFromForce
(Vec3 pAttachmentPoint, Vec3 pForce) private static Vec3
EntityAttachments.transformPoint
(Vec3 pPoint, float pYRot) void
private void
LivingEntity.travelFallFlying
(Vec3 pTravelVector) protected void
LivingEntity.travelFlying
(Vec3 pRelative, float pAmount) protected void
LivingEntity.travelFlying
(Vec3 pRelative, float pInWaterAmount, float pInLavaAmount, float pAmount) private void
LivingEntity.travelInAir
(Vec3 pTravelVector) private void
LivingEntity.travelInFluid
(Vec3 pTravelVector) Deprecated.Neo: useLivingEntity.travelInFluid(Vec3, FluidState)
insteadprivate void
LivingEntity.travelInFluid
(Vec3 pTravelVector, FluidState fluidState) private void
LivingEntity.travelRidden
(Player pPlayer, Vec3 pTravelVector) private static boolean
ExperienceOrb.tryMergeToExisting
(ServerLevel pLevel, Vec3 pPos, int pAmount) private Vec3
LivingEntity.updateFallFlyingMovement
(Vec3 pDeltaMovement) EntityType.Builder.vehicleAttachment
(Vec3 pAttachPoint) private boolean
Entity.vibrationAndSoundEffectsFromBlock
(BlockPos pPos, BlockState pState, boolean pPlayStepSound, boolean pBroadcastGameEvent, Vec3 pEntityPos) Method parameters in net.minecraft.world.entity with type arguments of type Vec3Modifier and TypeMethodDescriptionprivate static <E extends Entity & Leashable>
List<Leashable.Wrench> Leashable.computeElasticInteraction
(E pEntity, Entity pLeashHolder, List<Vec3> pEntityAttachmentPoint, List<Vec3> pLeasherAttachmentPoint) Constructors in net.minecraft.world.entity with parameters of type Vec3ModifierConstructorDescriptionExperienceOrb
(Level pLevel, Vec3 pPos, Vec3 pDirection, int pValue) (package private)
InterpolationData
(int pSteps, Vec3 pPosition, float pYRot, float pXRot) (package private)
Creates an instance of aMovement
record class.PositionMoveRotation
(Vec3 position, Vec3 deltaMovement, float yRot, float xRot) Creates an instance of aPositionMoveRotation
record class.Creates an instance of aWrench
record class.Constructor parameters in net.minecraft.world.entity with type arguments of type Vec3ModifierConstructorDescription(package private)
EntityAttachments
(Map<EntityAttachment, List<Vec3>> pAttachments) -
Uses of Vec3 in net.minecraft.world.entity.ai.behavior
Fields in net.minecraft.world.entity.ai.behavior declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
BlockPosTracker.centerPosition
protected Vec3
LongJumpToRandomPos.chosenJump
private Vec3
RamTarget.ramDirection
Fields in net.minecraft.world.entity.ai.behavior with type parameters of type Vec3Methods in net.minecraft.world.entity.ai.behavior that return Vec3Modifier and TypeMethodDescriptionprotected Vec3
LongJumpToRandomPos.calculateOptimalJumpVector
(Mob pMob, Vec3 pTarget) BlockPosTracker.currentPosition()
EntityTracker.currentPosition()
PositionTracker.currentPosition()
private Vec3
PrepareRamNearestTarget.getEdgeOfBlock
(BlockPos pPos, BlockPos pOther) private static Vec3
MoveToSkySeeingSpot.getOutdoorPosition
(ServerLevel pLevel, LivingEntity pEntity) private Vec3
AnimalPanic.getPanicPos
(E pPathfinder, ServerLevel pLevel) static Vec3
BehaviorUtils.getRandomSwimmablePos
(PathfinderMob pPathfinder, int pRadius, int pVerticalDistance) private static Vec3
RandomStroll.getTargetFlyPos
(PathfinderMob pMob, int pMaxDistance, int pYRange) private static Vec3
RandomStroll.getTargetSwimPos
(PathfinderMob p_259491_) private static Vec3
GoAndGiveItemsToTarget.getThrowPosition
(PositionTracker pPositionTracker) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type Vec3Modifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle
(Mob pMob, Vec3 pTarget, float pMaxJumpVelocity, int pAngle, boolean pRequireClearTransition) Methods in net.minecraft.world.entity.ai.behavior with parameters of type Vec3Modifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle
(Mob pMob, Vec3 pTarget, float pMaxJumpVelocity, int pAngle, boolean pRequireClearTransition) protected Vec3
LongJumpToRandomPos.calculateOptimalJumpVector
(Mob pMob, Vec3 pTarget) private static boolean
LongJumpUtil.isClearTransition
(Mob pMob, EntityDimensions pDimensions, Vec3 pStartPos, Vec3 pEndPos) static void
BehaviorUtils.throwItem
(LivingEntity pLivingEntity, ItemStack pStack, Vec3 pOffset) static void
BehaviorUtils.throwItem
(LivingEntity pEntity, ItemStack pStack, Vec3 pOffset, Vec3 pSpeedMultiplier, float pYOffset) static void
GoAndGiveItemsToTarget.throwItem
(LivingEntity pEntity, ItemStack pStack, Vec3 pThrowPos) Method parameters in net.minecraft.world.entity.ai.behavior with type arguments of type Vec3Modifier and TypeMethodDescriptionprivate static <T> OneShot
<PathfinderMob> SetWalkTargetAwayFrom.create
(MemoryModuleType<T> pWalkTargetAwayFromMemory, float pSpeedModifier, int pDesiredDistance, boolean pHasTarget, Function<T, Vec3> pToPosition) private static OneShot
<PathfinderMob> RandomStroll.strollFlyOrSwim
(float pSpeedModifier, Function<PathfinderMob, Vec3> pTarget, Predicate<PathfinderMob> pCanStroll) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.entity.ai.control
Methods in net.minecraft.world.entity.ai.control with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.entity.ai.goal
Methods in net.minecraft.world.entity.ai.goal that return Vec3Modifier and TypeMethodDescriptionprotected Vec3
FleeSunGoal.getHidePos()
protected Vec3
GolemRandomStrollInVillageGoal.getPosition()
protected Vec3
MoveBackToVillageGoal.getPosition()
protected Vec3
RandomStrollGoal.getPosition()
protected Vec3
RandomSwimmingGoal.getPosition()
protected Vec3
WaterAvoidingRandomFlyingGoal.getPosition()
protected Vec3
WaterAvoidingRandomStrollGoal.getPosition()
private Vec3
GolemRandomStrollInVillageGoal.getPositionTowardsAnywhere()
private Vec3
GolemRandomStrollInVillageGoal.getPositionTowardsPoi()
private Vec3
GolemRandomStrollInVillageGoal.getPositionTowardsVillagerWhoWantsGolem()
-
Uses of Vec3 in net.minecraft.world.entity.ai.memory
Fields in net.minecraft.world.entity.ai.memory with type parameters of type Vec3Constructors in net.minecraft.world.entity.ai.memory with parameters of type Vec3ModifierConstructorDescriptionWalkTarget
(Vec3 pVectorPos, float pSpeedModifier, int pCloseEnoughDist) Constructs a walk target using a vector that's directly converted to a BlockPos. -
Uses of Vec3 in net.minecraft.world.entity.ai.util
Methods in net.minecraft.world.entity.ai.util that return Vec3Modifier and TypeMethodDescriptionstatic Vec3
RandomPos.generateRandomPos
(Supplier<BlockPos> pPosSupplier, ToDoubleFunction<BlockPos> pToDoubleFunction) Tries 10 times to maximize the return value of the position to double function based on the supplied positionstatic Vec3
RandomPos.generateRandomPos
(PathfinderMob pMob, Supplier<BlockPos> pPosSupplier) static Vec3
AirAndWaterRandomPos.getPos
(PathfinderMob pMob, int pMaxDistance, int pYRange, int pY, double pX, double pZ, double pAmplifier) static Vec3
DefaultRandomPos.getPos
(PathfinderMob pMob, int pRadius, int pVerticalDistance) static Vec3
HoverRandomPos.getPos
(PathfinderMob pMob, int pRadius, int pYRange, double pX, double pZ, float pAmplifier, int pMaxSwimUp, int pMinSwimUp) Tries to generate a random position a couple different ways, and if failing, sees if swimming vertically is an option.static Vec3
LandRandomPos.getPos
(PathfinderMob pMob, int pRadius, int pVerticalRange) static Vec3
LandRandomPos.getPos
(PathfinderMob pMob, int pRadius, int pYRange, ToDoubleFunction<BlockPos> pToDoubleFunction) static Vec3
DefaultRandomPos.getPosAway
(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition) static Vec3
LandRandomPos.getPosAway
(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition) private static Vec3
LandRandomPos.getPosInDirection
(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition, boolean pShortCircuit) static Vec3
AirRandomPos.getPosTowards
(PathfinderMob pMob, int pRadius, int pYRange, int pY, Vec3 pVectorPosition, double pAmplifier) static Vec3
DefaultRandomPos.getPosTowards
(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition, double pAmplifier) static Vec3
LandRandomPos.getPosTowards
(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition) Methods in net.minecraft.world.entity.ai.util with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3
DefaultRandomPos.getPosAway
(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition) static Vec3
LandRandomPos.getPosAway
(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition) private static Vec3
LandRandomPos.getPosInDirection
(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition, boolean pShortCircuit) static Vec3
AirRandomPos.getPosTowards
(PathfinderMob pMob, int pRadius, int pYRange, int pY, Vec3 pVectorPosition, double pAmplifier) static Vec3
DefaultRandomPos.getPosTowards
(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition, double pAmplifier) static Vec3
LandRandomPos.getPosTowards
(PathfinderMob pMob, int pRadius, int pYRange, Vec3 pVectorPosition) -
Uses of Vec3 in net.minecraft.world.entity.ai.village
Methods in net.minecraft.world.entity.ai.village that return Vec3Modifier and TypeMethodDescriptionprivate Vec3
VillageSiege.findRandomSpawnPos
(ServerLevel pLevel, BlockPos pPos) -
Uses of Vec3 in net.minecraft.world.entity.animal
Fields in net.minecraft.world.entity.animal declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3
Bee.BeePollinateGoal.hoverPos
(package private) Vec3
Squid.movementVector
private Vec3
Panda.rollDelta
Methods in net.minecraft.world.entity.animal that return Vec3Modifier and TypeMethodDescriptionprivate Vec3
Bee.BeeWanderGoal.findPos()
Pig.getDismountLocationForPassenger
(LivingEntity pLivingEntity) Bee.getLeashOffset()
Fox.getLeashOffset()
HappyGhast.getLeashOffset()
IronGolem.getLeashOffset()
Ocelot.getLeashOffset()
Parrot.getLeashOffset()
Pig.getLeashOffset()
Rabbit.getLeashOffset()
SnowGolem.getLeashOffset()
protected Vec3
Parrot.ParrotWanderGoal.getPosition()
Vec3[]
HappyGhast.getQuadLeashHolderOffsets()
protected Vec3
HappyGhast.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected Vec3
Pig.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) private Vec3
Parrot.ParrotWanderGoal.getTreePos()
private Vec3
Squid.rotateVector
(Vec3 pVector) Methods in net.minecraft.world.entity.animal with parameters of type Vec3Modifier and TypeMethodDescriptionprotected boolean
HappyGhast.BabyFlyingPathNavigation.canMoveDirectly
(Vec3 pPosVec31, Vec3 pPosVec32) Checks if the specified entity can safely walk to the specified location.protected Vec3
HappyGhast.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected Vec3
Pig.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) private Vec3
Squid.rotateVector
(Vec3 pVector) protected void
HappyGhast.tickRidden
(Player pPlayer, Vec3 pTravelVector) protected void
Pig.tickRidden
(Player pPlayer, Vec3 pTravelVector) void
void
void
void
void
-
Uses of Vec3 in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay that return Vec3Methods in net.minecraft.world.entity.animal.allay with parameters of type Vec3Modifier and TypeMethodDescriptionboolean
Allay.JukeboxListener.handleGameEvent
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) void
-
Uses of Vec3 in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel that return Vec3Modifier and TypeMethodDescriptionCamel.getLeashOffset
(float pPartialTick) protected Vec3
Camel.getPassengerAttachmentPoint
(Entity pEntity, EntityDimensions pDimensions, float pPartialTick) Vec3[]
Camel.getQuadLeashOffsets()
protected Vec3
Camel.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) Methods in net.minecraft.world.entity.animal.camel with parameters of type Vec3Modifier and TypeMethodDescriptionprotected void
Camel.executeRidersJump
(float pPlayerJumpPendingScale, Vec3 pTravelVector) protected Vec3
Camel.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected void
Camel.tickRidden
(Player pPlayer, Vec3 pTravelVector) void
-
Uses of Vec3 in net.minecraft.world.entity.animal.frog
Fields in net.minecraft.world.entity.animal.frog declared as Vec3Methods in net.minecraft.world.entity.animal.frog with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse that return Vec3Modifier and TypeMethodDescriptionAbstractHorse.getDismountLocationForPassenger
(LivingEntity pLivingEntity) private Vec3
AbstractHorse.getDismountLocationInDirection
(Vec3 pDirection, LivingEntity pPassenger) Llama.getLeashOffset()
protected Vec3
AbstractHorse.getPassengerAttachmentPoint
(Entity pEntity, EntityDimensions pDimensions, float pPartialTick) protected Vec3
Llama.getPassengerAttachmentPoint
(Entity pEntity, EntityDimensions pDimensions, float pPartialTick) Vec3[]
AbstractChestedHorse.getQuadLeashOffsets()
Vec3[]
AbstractHorse.getQuadLeashOffsets()
protected Vec3
AbstractHorse.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) Methods in net.minecraft.world.entity.animal.horse with parameters of type Vec3Modifier and TypeMethodDescriptionprotected void
AbstractHorse.executeRidersJump
(float pPlayerJumpPendingScale, Vec3 pTravelVector) private Vec3
AbstractHorse.getDismountLocationInDirection
(Vec3 pDirection, LivingEntity pPassenger) protected Vec3
AbstractHorse.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) protected void
AbstractHorse.tickRidden
(Player pPlayer, Vec3 pTravelVector) -
Uses of Vec3 in net.minecraft.world.entity.animal.sniffer
Methods in net.minecraft.world.entity.animal.sniffer that return Vec3Modifier and TypeMethodDescriptionprivate Vec3
Sniffer.getHeadPosition()
Vec3[]
Sniffer.getQuadLeashOffsets()
-
Uses of Vec3 in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf that return Vec3 -
Uses of Vec3 in net.minecraft.world.entity.boss.enderdragon
Methods in net.minecraft.world.entity.boss.enderdragon that return Vec3 -
Uses of Vec3 in net.minecraft.world.entity.boss.enderdragon.phases
Fields in net.minecraft.world.entity.boss.enderdragon.phases declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3
DragonChargePlayerPhase.targetLocation
private Vec3
DragonDeathPhase.targetLocation
private Vec3
DragonHoldingPatternPhase.targetLocation
private Vec3
DragonHoverPhase.targetLocation
private Vec3
DragonLandingApproachPhase.targetLocation
private Vec3
DragonLandingPhase.targetLocation
private Vec3
DragonStrafePlayerPhase.targetLocation
private Vec3
DragonTakeoffPhase.targetLocation
Methods in net.minecraft.world.entity.boss.enderdragon.phases that return Vec3Modifier and TypeMethodDescriptionAbstractDragonPhaseInstance.getFlyTargetLocation()
DragonChargePlayerPhase.getFlyTargetLocation()
DragonDeathPhase.getFlyTargetLocation()
DragonHoldingPatternPhase.getFlyTargetLocation()
DragonHoverPhase.getFlyTargetLocation()
DragonLandingApproachPhase.getFlyTargetLocation()
DragonLandingPhase.getFlyTargetLocation()
DragonPhaseInstance.getFlyTargetLocation()
DragonStrafePlayerPhase.getFlyTargetLocation()
DragonTakeoffPhase.getFlyTargetLocation()
Methods in net.minecraft.world.entity.boss.enderdragon.phases with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.entity.boss.wither
Methods in net.minecraft.world.entity.boss.wither with parameters of type Vec3Modifier and TypeMethodDescriptionvoid
WitherBoss.makeStuckInBlock
(BlockState pState, Vec3 pMotionMultiplier) -
Uses of Vec3 in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return Vec3Modifier and TypeMethodDescriptionArmorStand.getLightProbePosition
(float pPartialTicks) LeashFenceKnotEntity.getRopeHoldPosition
(float pPartialTicks) Painting.trackingPosition()
Methods in net.minecraft.world.entity.decoration with parameters of type Vec3Modifier and TypeMethodDescriptionprivate EquipmentSlot
ArmorStand.getClickedSlot
(Vec3 pVector) ArmorStand.interactAt
(Player pPlayer, Vec3 pVec, InteractionHand pHand) Applies the given player interaction to this Entity.void
void
void
-
Uses of Vec3 in net.minecraft.world.entity.monster
Fields in net.minecraft.world.entity.monster declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3[][]
Illusioner.clientSideIllusionOffsets
(package private) Vec3
Phantom.moveTargetPoint
Methods in net.minecraft.world.entity.monster that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3
Ghast.RandomFloatAroundGoal.chooseRandomPosition
(Vec3 pPos, RandomSource pRandom) private static Vec3
Ghast.RandomFloatAroundGoal.chooseRandomPositionWithRestriction
(Mob pMob, Vec3 pPos, RandomSource pRandom) Shulker.getDeltaMovement()
Strider.getDismountLocationForPassenger
(LivingEntity pLivingEntity) Vec3[]
Illusioner.getIllusionOffsets
(float pPartialTick) Strider.getLeashOffset()
protected Vec3
Slime.getPassengerAttachmentPoint
(Entity pEntity, EntityDimensions pDimensions, float pPartialTick) protected Vec3
Strider.getPassengerAttachmentPoint
(Entity pEntity, EntityDimensions pDimensions, float pPartialTick) Shulker.getRenderPosition
(float pPartialTick) protected Vec3
Strider.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) static Vec3
Ghast.RandomFloatAroundGoal.getSuitableFlyToPosition
(Mob pMob, int pDistanceToBlocks) CaveSpider.getVehicleAttachmentPoint
(Entity p_316479_) Spider.getVehicleAttachmentPoint
(Entity pEntity) private Vec3
Drowned.DrownedGoToWaterGoal.getWaterPos()
Methods in net.minecraft.world.entity.monster with parameters of type Vec3Modifier and TypeMethodDescriptionprivate boolean
Ghast.GhastMoveControl.blockTraversalPossible
(BlockGetter pLevel, Vec3 pFrom, Vec3 pTo, BlockPos pPos, boolean pIsInLava, boolean pIsInWater) private boolean
private static Vec3
Ghast.RandomFloatAroundGoal.chooseRandomPosition
(Vec3 pPos, RandomSource pRandom) private static Vec3
Ghast.RandomFloatAroundGoal.chooseRandomPositionWithRestriction
(Mob pMob, Vec3 pPos, RandomSource pRandom) static AABB
Shulker.getProgressAabb
(float pScale, Direction pExpansionDirection, float pPeek, Vec3 pPosition) static AABB
Shulker.getProgressDeltaAabb
(float pScale, Direction pExpansionDirection, float pCurrentPeek, float pOldPeek, Vec3 pPosition) protected Vec3
Strider.getRiddenInput
(Player pPlayer, Vec3 pTravelVector) private static boolean
Ghast.RandomFloatAroundGoal.isGoodTarget
(Level pLevel, Vec3 pPos, int pDistanceToBlocks) protected AABB
Shulker.makeBoundingBox
(Vec3 pPosition) void
Spider.makeStuckInBlock
(BlockState pState, Vec3 pMotionMultiplier) void
void
Shulker.setDeltaMovement
(Vec3 pDeltaMovement) protected void
Strider.tickRidden
(Player pPlayer, Vec3 pTravelVector) void
void
void
void
-
Uses of Vec3 in net.minecraft.world.entity.monster.breeze
Methods in net.minecraft.world.entity.monster.breeze that return Vec3Modifier and TypeMethodDescriptionstatic Vec3
BreezeUtil.randomPointBehindTarget
(LivingEntity pTarget, RandomSource pRandom) private static Vec3
Slide.randomPointInMiddleCircle
(Breeze pBreeze, LivingEntity pTarget) Methods in net.minecraft.world.entity.monster.breeze that return types with arguments of type Vec3Modifier and TypeMethodDescriptionLongJump.calculateOptimalJumpVector
(Breeze pBreeze, RandomSource pRandom, Vec3 pTarget) Methods in net.minecraft.world.entity.monster.breeze with parameters of type Vec3Modifier and TypeMethodDescriptionLongJump.calculateOptimalJumpVector
(Breeze pBreeze, RandomSource pRandom, Vec3 pTarget) static boolean
BreezeUtil.hasLineOfSight
(Breeze pBreeze, Vec3 pPos) private static BlockPos
LongJump.snapToSurface
(LivingEntity pOwner, Vec3 pTargetPos) boolean
Breeze.withinInnerCircleRange
(Vec3 pPos) -
Uses of Vec3 in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3
PiglinAi.getRandomNearbyPos
(Piglin pPiglin) Methods in net.minecraft.world.entity.monster.piglin with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static void
PiglinAi.throwItemsTowardPos
(Piglin pPiglin, List<ItemStack> pStacks, Vec3 pPos) -
Uses of Vec3 in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type Vec3Modifier and TypeMethodDescriptionstatic void
Warden.applyDarknessAround
(ServerLevel pLevel, Vec3 pPos, Entity pSource, int pRadius) -
Uses of Vec3 in net.minecraft.world.entity.npc
Methods in net.minecraft.world.entity.npc that return Vec3 -
Uses of Vec3 in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player declared as Vec3Modifier and TypeFieldDescriptionPlayer.currentImpulseImpactPos
static final Vec3
Player.DEFAULT_VEHICLE_ATTACHMENT
Methods in net.minecraft.world.entity.player that return Vec3Modifier and TypeMethodDescriptionPlayer.getRopeHoldPosition
(float pPartialTicks) protected Vec3
Player.maybeBackOffFromEdge
(Vec3 pVec, MoverType pMover) Methods in net.minecraft.world.entity.player with parameters of type Vec3Modifier and TypeMethodDescriptionvoid
Player.makeStuckInBlock
(BlockState pState, Vec3 pMotionMultiplier) protected Vec3
Player.maybeBackOffFromEdge
(Vec3 pVec, MoverType pMover) void
-
Uses of Vec3 in net.minecraft.world.entity.projectile
Fields in net.minecraft.world.entity.projectile declared as Vec3Methods in net.minecraft.world.entity.projectile that return Vec3Modifier and TypeMethodDescriptionProjectile.getMovementToShoot
(double pX, double pY, double pZ, float pVelocity, float pInaccuracy) private static Vec3
EyeOfEnder.updateDeltaMovement
(Vec3 pDeltaMovement, Vec3 pPos, Vec3 pTarget) Methods in net.minecraft.world.entity.projectile with parameters of type Vec3Modifier and TypeMethodDescriptionprivate void
AbstractArrow.addBubbleParticles
(Vec3 pPos) private void
AbstractHurtingProjectile.assignDirectionalMovement
(Vec3 pMovement, double pAccelerationPower) protected EntityHitResult
AbstractArrow.findHitEntity
(Vec3 pStartVec, Vec3 pEndVec) Gets the EntityRayTraceResult representing the entity hitprotected EntityHitResult
ThrownTrident.findHitEntity
(Vec3 pStartVec, Vec3 pEndVec) Gets the EntityHitResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Entity pShooter, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter, double pDistance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Level pLevel, Entity pProjectile, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter, float pInflationAmount) Gets the EntityHitResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Level pLevel, Projectile pProjectile, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter) private static HitResult
ProjectileUtil.getHitResult
(Vec3 pPos, Entity pProjectile, Predicate<Entity> pFilter, Vec3 pDeltaMovement, Level pLevel, float pMargin, ClipContext.Block pClipContext) void
private void
void
private void
EyeOfEnder.spawnParticles
(Vec3 pPos, Vec3 pDeltaMovement) private static Vec3
EyeOfEnder.updateDeltaMovement
(Vec3 pDeltaMovement, Vec3 pPos, Vec3 pTarget) Constructors in net.minecraft.world.entity.projectile with parameters of type Vec3ModifierConstructorDescriptionAbstractHurtingProjectile
(EntityType<? extends AbstractHurtingProjectile> pEntityType, double pX, double pY, double pZ, Vec3 pMovement, Level pLevel) AbstractHurtingProjectile
(EntityType<? extends AbstractHurtingProjectile> pEntityType, LivingEntity pOwner, Vec3 pMovement, Level pLevel) DragonFireball
(Level pLevel, LivingEntity pOwner, Vec3 pMovement) Fireball
(EntityType<? extends Fireball> pEntityType, double pX, double pY, double pZ, Vec3 pMovement, Level pLevel) Fireball
(EntityType<? extends Fireball> pEntityType, LivingEntity pOwner, Vec3 pMovement, Level pLevel) LargeFireball
(Level pLevel, LivingEntity pOwner, Vec3 pMovement, int pExplosionPower) SmallFireball
(Level pLevel, double pX, double pY, double pZ, Vec3 pMovement) SmallFireball
(Level pLevel, LivingEntity pOwner, Vec3 pMovement) WitherSkull
(Level pLevel, LivingEntity pOwner, Vec3 pMovement) -
Uses of Vec3 in net.minecraft.world.entity.projectile.windcharge
Methods in net.minecraft.world.entity.projectile.windcharge with parameters of type Vec3Modifier and TypeMethodDescriptionprotected abstract void
protected void
protected void
protected AABB
AbstractWindCharge.makeBoundingBox
(Vec3 pPosition) Constructors in net.minecraft.world.entity.projectile.windcharge with parameters of type Vec3ModifierConstructorDescription(package private)
AbstractWindCharge
(EntityType<? extends AbstractWindCharge> pEntityType, double pX, double pY, double pZ, Vec3 pMovement, Level pLevel) WindCharge
(Level pLevel, double pX, double pY, double pZ, Vec3 pMovement) -
Uses of Vec3 in net.minecraft.world.entity.vehicle
Fields in net.minecraft.world.entity.vehicle declared as Vec3Modifier and TypeFieldDescriptionprivate static final Vec3
MinecartFurnace.DEFAULT_PUSH
private static final Vec3
AbstractMinecart.LOWERED_PASSENGER_ATTACHMENT
private final Vec3
NewMinecartBehavior.MinecartStep.movement
The field for themovement
record component.private final Vec3
NewMinecartBehavior.MinecartStep.position
The field for theposition
record component.MinecartFurnace.push
private Vec3
OldMinecartBehavior.targetDeltaMovement
Methods in net.minecraft.world.entity.vehicle that return Vec3Modifier and TypeMethodDescriptionprotected Vec3
AbstractMinecart.applyNaturalSlowdown
(Vec3 pSpeed) protected Vec3
AbstractMinecartContainer.applyNaturalSlowdown
(Vec3 pSpeed) protected Vec3
MinecartFurnace.applyNaturalSlowdown
(Vec3 pSpeed) private Vec3
NewMinecartBehavior.calculateBoostTrackSpeed
(Vec3 pSpeed, BlockPos pPos, BlockState pState) private Vec3
NewMinecartBehavior.calculateHaltTrackSpeed
(Vec3 pSpeed, BlockState pState) private Vec3
MinecartFurnace.calculateNewPushAlong
(Vec3 pSpeed) private Vec3
NewMinecartBehavior.calculatePlayerInputSpeed
(Vec3 pSpeed) private Vec3
NewMinecartBehavior.calculateSlopeSpeed
(Vec3 pSpeed, RailShape pRailShape) private Vec3
NewMinecartBehavior.calculateTrackSpeed
(ServerLevel pLevel, Vec3 pSpeed, NewMinecartBehavior.TrackIteration pTrackIteration, BlockPos pPos, BlockState pState, RailShape pRailShape) static Vec3
DismountHelper.findSafeDismountLocation
(EntityType<?> pEntityType, CollisionGetter pLevel, BlockPos pPos, boolean pOnlySafePositions) NewMinecartBehavior.getCartLerpMovements
(float pPartialTick) NewMinecartBehavior.getCartLerpPosition
(float pPartialTick) MinecartBehavior.getDeltaMovement()
AbstractBoat.getDismountLocationForPassenger
(LivingEntity pPassenger) AbstractMinecart.getDismountLocationForPassenger
(LivingEntity pLivingEntity) AbstractMinecart.getKnownMovement()
MinecartBehavior.getKnownMovement
(Vec3 pMovement) OldMinecartBehavior.getKnownMovement
(Vec3 pMovement) AbstractBoat.getLeashOffset()
protected Vec3
AbstractBoat.getPassengerAttachmentPoint
(Entity pEntity, EntityDimensions pDimensions, float pPartialTick) protected Vec3
AbstractMinecart.getPassengerAttachmentPoint
(Entity pEntity, EntityDimensions pDimensions, float pPartialTick) OldMinecartBehavior.getPos
(double pX, double pY, double pZ) MinecartCommandBlock.MinecartCommandBase.getPosition()
OldMinecartBehavior.getPosOffs
(double pX, double pY, double pZ, double pScale) Vec3[]
AbstractBoat.getQuadLeashOffsets()
AbstractMinecart.getRedstoneDirection
(BlockPos pPos) AbstractBoat.getRelativePortalPosition
(Direction.Axis pAxis, BlockUtil.FoundRectangle pPortal) AbstractMinecart.getRelativePortalPosition
(Direction.Axis pAxis, BlockUtil.FoundRectangle pPortal) NewMinecartBehavior.MinecartStep.movement()
Returns the value of themovement
record component.ContainerEntity.position()
MinecartBehavior.position()
NewMinecartBehavior.MinecartStep.position()
Returns the value of theposition
record component.Methods in net.minecraft.world.entity.vehicle with parameters of type Vec3Modifier and TypeMethodDescriptionprotected Vec3
AbstractMinecart.applyNaturalSlowdown
(Vec3 pSpeed) protected Vec3
AbstractMinecartContainer.applyNaturalSlowdown
(Vec3 pSpeed) protected Vec3
MinecartFurnace.applyNaturalSlowdown
(Vec3 pSpeed) private Vec3
NewMinecartBehavior.calculateBoostTrackSpeed
(Vec3 pSpeed, BlockPos pPos, BlockState pState) private Vec3
NewMinecartBehavior.calculateHaltTrackSpeed
(Vec3 pSpeed, BlockState pState) private Vec3
MinecartFurnace.calculateNewPushAlong
(Vec3 pSpeed) private Vec3
NewMinecartBehavior.calculatePlayerInputSpeed
(Vec3 pSpeed) private Vec3
NewMinecartBehavior.calculateSlopeSpeed
(Vec3 pSpeed, RailShape pRailShape) private Vec3
NewMinecartBehavior.calculateTrackSpeed
(ServerLevel pLevel, Vec3 pSpeed, NewMinecartBehavior.TrackIteration pTrackIteration, BlockPos pPos, BlockState pState, RailShape pRailShape) static boolean
DismountHelper.canDismountTo
(CollisionGetter pLevel, Vec3 pOffset, LivingEntity pPassenger, Pose pPose) MinecartBehavior.getKnownMovement
(Vec3 pMovement) OldMinecartBehavior.getKnownMovement
(Vec3 pMovement) private boolean
NewMinecartBehavior.isDecending
(Vec3 pSpeed, RailShape pRailShape) void
void
MinecartBehavior.setDeltaMovement
(Vec3 pDeltaMovement) void
Constructors in net.minecraft.world.entity.vehicle with parameters of type Vec3ModifierConstructorDescriptionMinecartStep
(Vec3 position, Vec3 movement, float yRot, float xRot, float weight) Creates an instance of aMinecartStep
record class. -
Uses of Vec3 in net.minecraft.world.item
Methods in net.minecraft.world.item that return Vec3Modifier and TypeMethodDescriptionprivate Vec3
MaceItem.calculateImpactPosition
(ServerPlayer pPlayer) private static Vec3
FireworkRocketItem.getEntityJustOutsideOfBlockPos
(BlockSource p_371687_, Direction p_371656_) Methods in net.minecraft.world.item with parameters of type Vec3Modifier and TypeMethodDescriptionstatic BrushItem.DustParticlesDelta
BrushItem.DustParticlesDelta.fromDirection
(Vec3 pPos, Direction pDirection) private static double
MaceItem.getKnockbackPower
(Entity pAttacker, LivingEntity pEntity, Vec3 pOffset) private static org.joml.Vector3f
CrossbowItem.getProjectileShotVector
(LivingEntity p_331584_, Vec3 p_331590_, float p_331104_) private void
BrushItem.spawnDustParticles
(Level pLevel, BlockHitResult pHitResult, BlockState pState, Vec3 pPos, HumanoidArm pArm) SpawnEggItem.spawnOffspringFromSpawnEgg
(Player pPlayer, Mob pMob, EntityType<? extends Mob> pEntityType, ServerLevel pServerLevel, Vec3 pPos, ItemStack pStack) -
Uses of Vec3 in net.minecraft.world.item.context
Methods in net.minecraft.world.item.context that return Vec3 -
Uses of Vec3 in net.minecraft.world.item.enchantment
Methods in net.minecraft.world.item.enchantment with parameters of type Vec3Modifier and TypeMethodDescriptionstatic LootContext
Enchantment.blockHitContext
(ServerLevel pLevel, int pEnchantmentLevel, Entity pEntity, Vec3 pOrigin, BlockState pState) static LootContext
Enchantment.entityContext
(ServerLevel pLevel, int pEnchantmentLevel, Entity pEntity, Vec3 pOrigin) void
Enchantment.onHitBlock
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pPos, BlockState pState) static void
EnchantmentHelper.onHitBlock
(ServerLevel pLevel, ItemStack pStack, LivingEntity pOwner, Entity pEntity, EquipmentSlot pSlot, Vec3 pPos, BlockState pState, Consumer<Item> pOnBreak) -
Uses of Vec3 in net.minecraft.world.item.enchantment.effects
Fields in net.minecraft.world.item.enchantment.effects declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
ExplodeEffect.offset
The field for theoffset
record component.Methods in net.minecraft.world.item.enchantment.effects that return Vec3Modifier and TypeMethodDescriptionExplodeEffect.offset()
Returns the value of theoffset
record component.Methods in net.minecraft.world.item.enchantment.effects with parameters of type Vec3Modifier and TypeMethodDescriptionvoid
AllOf.EntityEffects.apply
(ServerLevel p_346093_, int p_345940_, EnchantedItemInUse p_344929_, Entity p_345319_, Vec3 p_345200_) void
ApplyMobEffect.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) void
ChangeItemDamage.apply
(ServerLevel p_379674_, int p_379927_, EnchantedItemInUse p_380376_, Entity p_379570_, Vec3 p_380002_) void
DamageEntity.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) void
EnchantmentEntityEffect.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) void
ExplodeEffect.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) void
Ignite.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) void
PlaySoundEffect.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) void
ReplaceBlock.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) void
ReplaceDisk.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) void
RunFunction.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) void
SetBlockProperties.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) void
SpawnParticlesEffect.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) void
SummonEntityEffect.apply
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pOrigin) private DamageSource
ExplodeEffect.getDamageSource
(Entity pEntity, Vec3 pPos) void
AllOf.LocationBasedEffects.onChangedBlock
(ServerLevel p_345329_, int p_345154_, EnchantedItemInUse p_344984_, Entity p_345671_, Vec3 p_344781_, boolean p_345113_) void
EnchantmentAttributeEffect.onChangedBlock
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pPos, boolean pApplyTransientEffects) default void
EnchantmentEntityEffect.onChangedBlock
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pPos, boolean pApplyTransientEffects) void
EnchantmentLocationBasedEffect.onChangedBlock
(ServerLevel pLevel, int pEnchantmentLevel, EnchantedItemInUse pItem, Entity pEntity, Vec3 pPos, boolean pApplyTransientEffects) void
AllOf.LocationBasedEffects.onDeactivated
(EnchantedItemInUse p_346024_, Entity p_346234_, Vec3 p_346036_, int p_345698_) void
EnchantmentAttributeEffect.onDeactivated
(EnchantedItemInUse pItem, Entity pEntity, Vec3 pPos, int pEnchantmentLevel) default void
EnchantmentLocationBasedEffect.onDeactivated
(EnchantedItemInUse pItem, Entity pEntity, Vec3 pPos, int pEnchantmentLevel) Constructors in net.minecraft.world.item.enchantment.effects with parameters of type Vec3ModifierConstructorDescriptionExplodeEffect
(boolean attributeToUser, Optional<Holder<DamageType>> damageType, Optional<LevelBasedValue> knockbackMultiplier, Optional<HolderSet<Block>> immuneBlocks, Vec3 offset, LevelBasedValue radius, boolean createFire, Level.ExplosionInteraction blockInteraction, ParticleOptions smallParticle, ParticleOptions largeParticle, Holder<SoundEvent> sound) Creates an instance of aExplodeEffect
record class. -
Uses of Vec3 in net.minecraft.world.level
Fields in net.minecraft.world.level declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
ServerExplosion.center
private final Vec3
ClipBlockStateContext.from
private final Vec3
ClipContext.from
private final Vec3
ClipBlockStateContext.to
private final Vec3
ClipContext.to
Fields in net.minecraft.world.level with type parameters of type Vec3Methods in net.minecraft.world.level that return Vec3Modifier and TypeMethodDescriptionExplosion.center()
ServerExplosion.center()
ClipBlockStateContext.getFrom()
ClipContext.getFrom()
abstract Vec3
BaseCommandBlock.getPosition()
ClipBlockStateContext.getTo()
ClipContext.getTo()
Methods in net.minecraft.world.level that return types with arguments of type Vec3Modifier and TypeMethodDescriptionCollisionGetter.findFreePosition
(Entity pEntity, VoxelShape pShape, Vec3 pPos, double pX, double pY, double pZ) ServerExplosion.getHitPlayers()
Methods in net.minecraft.world.level with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static int
BlockGetter.addCollisionsAlongTravel
(it.unimi.dsi.fastutil.longs.LongSet p_404983_, Vec3 p_365197_, Vec3 p_362395_, AABB p_362649_, BlockGetter.BlockStepVisitor p_405208_) default BlockHitResult
BlockGetter.clipWithInteractionOverride
(Vec3 pStartVec, Vec3 pEndVec, BlockPos pPos, VoxelShape pShape, BlockState pState) void
Level.explode
(Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, Vec3 pPos, float pRadius, boolean pFire, Level.ExplosionInteraction pExplosionInteraction) CollisionGetter.findFreePosition
(Entity pEntity, VoxelShape pShape, Vec3 pPos, double pX, double pY, double pZ) static boolean
BlockGetter.forEachBlockIntersectedBetween
(Vec3 pFrom, Vec3 pTo, AABB pBoundingBox, BlockGetter.BlockStepVisitor pVisitor) void
LevelAccessor.gameEvent
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) default void
default Iterable
<VoxelShape> CollisionGetter.getPreMoveCollisions
(Entity pEntity, AABB pCollisionBox, Vec3 pPos) static float
ServerExplosion.getSeenPercent
(Vec3 pExplosionVector, Entity pEntity) static <T,
C> T BlockGetter.traverseBlocks
(Vec3 pFrom, Vec3 pTo, C pContext, BiFunction<C, BlockPos, T> pTester, Function<C, T> pOnFail) Constructors in net.minecraft.world.level with parameters of type Vec3ModifierConstructorDescriptionClipBlockStateContext
(Vec3 pFrom, Vec3 pTo, Predicate<BlockState> pBlock) ClipContext
(Vec3 pFrom, Vec3 pTo, ClipContext.Block pBlock, ClipContext.Fluid pFluid, Entity pEntity) ClipContext
(Vec3 pFrom, Vec3 pTo, ClipContext.Block pBlock, ClipContext.Fluid pFluid, CollisionContext pCollisionContext) ServerExplosion
(ServerLevel pLevel, Entity pSource, DamageSource pDamageSource, ExplosionDamageCalculator pDamageCalculator, Vec3 pCenter, float pRadius, boolean pFire, Explosion.BlockInteraction pBlockInteraction) -
Uses of Vec3 in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block with type parameters of type Vec3Methods in net.minecraft.world.level.block that return Vec3Modifier and TypeMethodDescriptionSignBlock.getSignHitboxCenterPosition
(BlockState pState) WallSignBlock.getSignHitboxCenterPosition
(BlockState pState) Methods in net.minecraft.world.level.block that return types with arguments of type Vec3Modifier and TypeMethodDescriptionBedBlock.findBunkBedStandUpPosition
(EntityType<?> pEntityType, CollisionGetter pCollisionGetter, BlockPos pPos, Direction pStateFacing, Direction pEntityFacing) BedBlock.findStandUpPosition
(EntityType<?> pEntityType, CollisionGetter pCollisionGetter, BlockPos pPos, Direction pDirection, float pYRot) RespawnAnchorBlock.findStandUpPosition
(EntityType<?> pEntityType, CollisionGetter pLevel, BlockPos pPos) RespawnAnchorBlock.findStandUpPosition
(EntityType<?> pEntityType, CollisionGetter pLevel, BlockPos pPos, boolean pSimulate) BedBlock.findStandUpPositionAtOffset
(EntityType<?> pEntityType, CollisionGetter pCollisionGetter, BlockPos pPos, int[][] pOffsets, boolean pSimulate) AbstractCandleBlock.getParticleOffsets
(BlockState pState) CandleBlock.getParticleOffsets
(BlockState pState) CandleCakeBlock.getParticleOffsets
(BlockState pState) Methods in net.minecraft.world.level.block with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static void
AbstractCandleBlock.addParticlesAndSound
(Level pLevel, Vec3 pOffset, RandomSource pRandom) private static TeleportTransition
NetherPortalBlock.createDimensionTransition
(ServerLevel pLevel, BlockUtil.FoundRectangle pRectangle, Direction.Axis pAxis, Vec3 pOffset, Entity pEntity, TeleportTransition.PostTeleportTransition pPostTeleportTransition) static Position
DispenserBlock.getDispensePosition
(BlockSource pBlockSource, double pMultiplier, Vec3 pOffset) private static int
TargetBlock.getRedstoneStrength
(BlockHitResult pHit, Vec3 pHitLocation) -
Uses of Vec3 in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as Vec3Methods in net.minecraft.world.level.block.entity that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3
TheEndGatewayBlockEntity.findExitPortalXZPosTentative
(ServerLevel pLevel, BlockPos pPos) TheEndGatewayBlockEntity.getPortalPosition
(ServerLevel pLevel, BlockPos pPos) Methods in net.minecraft.world.level.block.entity with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static void
AbstractFurnaceBlockEntity.createExperience
(ServerLevel pLevel, Vec3 pPopVec, int pRecipeIndex, float pExperience) private static LevelChunk
List
<RecipeHolder<?>> AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience
(ServerLevel pLevel, Vec3 pPopVec) boolean
SculkCatalystBlockEntity.CatalystListener.handleGameEvent
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) private static boolean
TheEndGatewayBlockEntity.isChunkEmpty
(ServerLevel pLevel, Vec3 pPos) -
Uses of Vec3 in net.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type Vec3Modifier and TypeMethodDescriptionTrialSpawnerState.calculatePositionAbove
(Entity pEntity, ServerLevel pLevel) TrialSpawnerState.calculatePositionToSpawnSpawner
(ServerLevel pLevel, BlockPos pPos, TrialSpawner pSpawner, TrialSpawnerStateData pData) Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static void
TrialSpawnerState.ParticleEmission.addParticle
(SimpleParticleType pParticleType, Vec3 pPos, Level pLevel) private static boolean
PlayerDetector.inLineOfSight
(Level pLevel, Vec3 pPos, Vec3 pTargetPos) private static boolean
TrialSpawner.inLineOfSight
(Level pLevel, Vec3 pSpawnerPos, Vec3 pMobPos) -
Uses of Vec3 in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3
VaultBlockEntity.Client.keyholePos
(BlockPos pPos, Direction pFacing) private static Vec3
VaultBlockEntity.Client.randomPosCenterOfCage
(BlockPos pPos, RandomSource pRandom) private static Vec3
VaultBlockEntity.Client.randomPosInsideCage
(BlockPos pPos, RandomSource pRandom) Methods in net.minecraft.world.level.block.entity.vault with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static void
VaultBlockEntity.Client.emitConnectionParticlesForPlayer
(Level pLevel, Vec3 pPos, Player pPlayer) -
Uses of Vec3 in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state that return Vec3 -
Uses of Vec3 in net.minecraft.world.level.border
Methods in net.minecraft.world.level.border that return Vec3Modifier and TypeMethodDescriptionWorldBorder.clampVec3ToBound
(double pX, double pY, double pZ) WorldBorder.clampVec3ToBound
(Vec3 pVec3) Methods in net.minecraft.world.level.border with parameters of type Vec3Modifier and TypeMethodDescriptionWorldBorder.clampToBounds
(Vec3 pPos) WorldBorder.clampVec3ToBound
(Vec3 pVec3) boolean
WorldBorder.isWithinBounds
(Vec3 pPos) -
Uses of Vec3 in net.minecraft.world.level.gameevent
Fields in net.minecraft.world.level.gameevent declared as Vec3Methods in net.minecraft.world.level.gameevent that return Vec3Methods in net.minecraft.world.level.gameevent that return types with arguments of type Vec3Modifier and TypeMethodDescriptionBlockPositionSource.getPosition
(Level pLevel) EntityPositionSource.getPosition
(Level pLevel) PositionSource.getPosition
(Level pLevel) EuclideanGameEventListenerRegistry.getPostableListenerPosition
(ServerLevel pLevel, Vec3 pPos, GameEventListener pListener) Methods in net.minecraft.world.level.gameevent with parameters of type Vec3Modifier and TypeMethodDescriptionEuclideanGameEventListenerRegistry.getPostableListenerPosition
(ServerLevel pLevel, Vec3 pPos, GameEventListener pListener) boolean
GameEventListener.handleGameEvent
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) void
GameEventDispatcher.post
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext) void
GameEventListenerRegistry.ListenerVisitor.visit
(GameEventListener pListener, Vec3 pPos) boolean
EuclideanGameEventListenerRegistry.visitInRangeListeners
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext, GameEventListenerRegistry.ListenerVisitor pVisitor) boolean
GameEventListenerRegistry.visitInRangeListeners
(Holder<GameEvent> pGameEvent, Vec3 pPos, GameEvent.Context pContext, GameEventListenerRegistry.ListenerVisitor pVisitor) Constructors in net.minecraft.world.level.gameevent with parameters of type Vec3ModifierConstructorDescriptionListenerInfo
(Holder<GameEvent> pGameEvent, Vec3 pSource, GameEvent.Context pContext, GameEventListener pRecipient, Vec3 pPos) -
Uses of Vec3 in net.minecraft.world.level.gameevent.vibrations
Fields in net.minecraft.world.level.gameevent.vibrations declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
VibrationInfo.pos
The field for thepos
record component.Methods in net.minecraft.world.level.gameevent.vibrations that return Vec3Modifier and TypeMethodDescriptionVibrationInfo.pos()
Returns the value of thepos
record component.Methods in net.minecraft.world.level.gameevent.vibrations with parameters of type Vec3Modifier and TypeMethodDescriptionvoid
VibrationSystem.Listener.forceScheduleVibration
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) boolean
VibrationSystem.Listener.handleGameEvent
(ServerLevel pLevel, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos) private static boolean
VibrationSystem.Listener.isOccluded
(Level pLevel, Vec3 pEventPos, Vec3 pVibrationUserPos) private void
VibrationSystem.Listener.scheduleVibration
(ServerLevel pLevel, VibrationSystem.Data pData, Holder<GameEvent> pGameEvent, GameEvent.Context pContext, Vec3 pPos, Vec3 pSensorPos) Constructors in net.minecraft.world.level.gameevent.vibrations with parameters of type Vec3ModifierConstructorDescriptionVibrationInfo
(Holder<GameEvent> p_316546_, float p_251086_, Vec3 p_250935_, UUID p_316193_, UUID p_316157_) VibrationInfo
(Holder<GameEvent> gameEvent, float distance, Vec3 pos, UUID uuid, UUID projectileOwnerUuid, Entity entity) Creates an instance of aVibrationInfo
record class.VibrationInfo
(Holder<GameEvent> p_316851_, float p_250190_, Vec3 p_251692_, Entity p_316868_) -
Uses of Vec3 in net.minecraft.world.level.levelgen.feature
Fields in net.minecraft.world.level.levelgen.feature declared as Vec3 -
Uses of Vec3 in net.minecraft.world.level.levelgen.structure.templatesystem
Fields in net.minecraft.world.level.levelgen.structure.templatesystem declared as Vec3Methods in net.minecraft.world.level.levelgen.structure.templatesystem that return Vec3Modifier and TypeMethodDescriptionstatic Vec3
StructureTemplate.transform
(Vec3 pTarget, Mirror pMirror, Rotation pRotation, BlockPos pCenterOffset) static Vec3
StructureTemplate.transformedVec3d
(StructurePlaceSettings placementIn, Vec3 pos) Methods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3
StructureTemplate.transform
(Vec3 pTarget, Mirror pMirror, Rotation pRotation, BlockPos pCenterOffset) static Vec3
StructureTemplate.transformedVec3d
(StructurePlaceSettings placementIn, Vec3 pos) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type Vec3ModifierConstructorDescriptionStructureEntityInfo
(Vec3 pPos, BlockPos pBlockPos, CompoundTag pNbt) -
Uses of Vec3 in net.minecraft.world.level.material
Methods in net.minecraft.world.level.material that return Vec3Modifier and TypeMethodDescriptionEmptyFluid.getFlow
(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) FlowingFluid.getFlow
(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) protected abstract Vec3
Fluid.getFlow
(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) FluidState.getFlow
(BlockGetter pLevel, BlockPos pPos) -
Uses of Vec3 in net.minecraft.world.level.pathfinder
Methods in net.minecraft.world.level.pathfinder that return Vec3Modifier and TypeMethodDescriptionNode.asVec3()
Path.getEntityPosAtNode
(Entity pEntity, int pIndex) Gets the vector of theNode
associated with the given index.Path.getNextEntityPos
(Entity pEntity) -
Uses of Vec3 in net.minecraft.world.level.portal
Fields in net.minecraft.world.level.portal declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
TeleportTransition.deltaMovement
The field for thedeltaMovement
record component.private final Vec3
TeleportTransition.position
The field for theposition
record component.Methods in net.minecraft.world.level.portal that return Vec3Modifier and TypeMethodDescriptionTeleportTransition.deltaMovement()
Returns the value of thedeltaMovement
record component.private static Vec3
TeleportTransition.findAdjustedSharedSpawnPos
(ServerLevel pLevel, Entity pEntity) static Vec3
PortalShape.findCollisionFreePosition
(Vec3 pPos, ServerLevel pLevel, Entity pEntity, EntityDimensions pDimensions) static Vec3
PortalShape.getRelativePosition
(BlockUtil.FoundRectangle pFoundRectangle, Direction.Axis pAxis, Vec3 pPos, EntityDimensions pEntityDimensions) TeleportTransition.position()
Returns the value of theposition
record component.Methods in net.minecraft.world.level.portal with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3
PortalShape.findCollisionFreePosition
(Vec3 pPos, ServerLevel pLevel, Entity pEntity, EntityDimensions pDimensions) static Vec3
PortalShape.getRelativePosition
(BlockUtil.FoundRectangle pFoundRectangle, Direction.Axis pAxis, Vec3 pPos, EntityDimensions pEntityDimensions) TeleportTransition.withPosition
(Vec3 pPosition) Constructors in net.minecraft.world.level.portal with parameters of type Vec3ModifierConstructorDescriptionTeleportTransition
(ServerLevel newLevel, Vec3 position, Vec3 deltaMovement, float yRot, float xRot, boolean missingRespawnBlock, boolean asPassenger, Set<Relative> relatives, TeleportTransition.PostTeleportTransition postTeleportTransition) Creates an instance of aTeleportTransition
record class.TeleportTransition
(ServerLevel p_380133_, Vec3 p_379861_, Vec3 p_380308_, float p_379941_, float p_380119_, Set<Relative> p_379959_, TeleportTransition.PostTeleportTransition p_379425_) TeleportTransition
(ServerLevel p_379776_, Vec3 p_379412_, Vec3 p_379320_, float p_380257_, float p_379610_, TeleportTransition.PostTeleportTransition p_380303_) -
Uses of Vec3 in net.minecraft.world.level.storage.loot.parameters
Fields in net.minecraft.world.level.storage.loot.parameters with type parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.phys
Fields in net.minecraft.world.phys declared as Vec3Modifier and TypeFieldDescriptionprotected final Vec3
HitResult.location
static final Vec3
Vec3.ZERO
Fields in net.minecraft.world.phys with type parameters of type Vec3Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Vec3> Vec3.CODEC
static final StreamCodec
<io.netty.buffer.ByteBuf, Vec3> Vec3.STREAM_CODEC
Methods in net.minecraft.world.phys that return Vec3Modifier and TypeMethodDescriptionVec3.add
(double pAmount) Vec3.add
(double pX, double pY, double pZ) Adds the specified x,y,z vector components to this vector and returns the resulting vector.Vec3.align
(EnumSet<Direction.Axis> pAxes) static Vec3
Vec3.atBottomCenterOf
(Vec3i pToCopy) Copies the coordinates of an int vector and centers them horizontally (x and z)static Vec3
Vec3.atCenterOf
(Vec3i pToCopy) Copies the coordinates of an Int vector and centers them.static Vec3
Vec3.atLowerCornerOf
(Vec3i pToCopy) Copies the coordinates of an int vector exactly.static Vec3
Vec3.atLowerCornerWithOffset
(Vec3i pToCopy, double pOffsetX, double pOffsetY, double pOffsetZ) Returns a new vector with the result of this vector x the specified vector.static Vec3
Vec3.directionFromRotation
(float pPitch, float pYaw) Returns aVec3
from the given pitch and yaw degrees.static Vec3
Vec3.directionFromRotation
(Vec2 pVec) static Vec3
Vec3.fromRGB24
(int pPacked) AABB.getBottomCenter()
AABB.getCenter()
HitResult.getLocation()
AABB.getMaxPosition()
AABB.getMinPosition()
Vec3.horizontal()
Lerps between this vector and the given vector.Vec3.multiply
(double pFactorX, double pFactorY, double pFactorZ) Vec3.normalize()
Vec3.offsetRandom
(RandomSource pRandom, float pFactor) Vec3.projectedOn
(Vec3 pVector) Vec3.reverse()
Vec3.rotateClockwise90()
Vec3.scale
(double pFactor) Vec3.subtract
(double pAmount) Vec3.subtract
(double pX, double pY, double pZ) static Vec3
Vec3.upFromBottomCenterOf
(Vec3i pToCopy, double pVerticalOffset) Copies the coordinates of an int vector and centers them horizontally and applies a vertical offset.Returns a new vector with the result of the specified vector minus this.Vec3.with
(Direction.Axis pAxis, double pLength) Vec3.xRot
(float pPitch) Vec3.yRot
(float pYaw) Vec3.zRot
(float pRoll) Methods in net.minecraft.world.phys that return types with arguments of type Vec3Modifier and TypeMethodDescriptionAABB.clip
(double pMinX, double pMinY, double pMinZ, double pMaxX, double pMaxY, double pMaxZ, Vec3 pFrom, Vec3 pTo) Methods in net.minecraft.world.phys with parameters of type Vec3Modifier and TypeMethodDescriptionAABB.clip
(double pMinX, double pMinY, double pMinZ, double pMaxX, double pMaxY, double pMaxZ, Vec3 pFrom, Vec3 pTo) static BlockHitResult
boolean
Vec3.closerThan
(Vec3 pPos, double pHorizontalDistance, double pVerticalDistance) boolean
AABB.collidedAlongVector
(Vec3 pVector, List<AABB> pBoxes) boolean
Returns if the supplied Vec3D is completely inside the bounding boxReturns a new vector with the result of this vector x the specified vector.double
Vec3.distanceTo
(Vec3 pVec) Euclidean distance between this and the specified vector, returned as double.double
AABB.distanceToSqr
(Vec3 pVec) double
Vec3.distanceToSqr
(Vec3 pVec) The square of the Euclidean distance between this and the specified vector.double
AABB.expandTowards
(Vec3 pVector) private static Direction
AABB.getDirection
(double pMinX, double pMinY, double pMinZ, double pMaxX, double pMaxY, double pMaxZ, Vec3 pStart, double[] pMineDistance, Direction pFacing, double pDeltaX, double pDeltaY, double pDeltaZ) private static Direction
AABB.getDirection
(AABB pAabb, Vec3 pStart, double[] pMinDistance, Direction pFacing, double pDeltaX, double pDeltaY, double pDeltaZ) boolean
AABB.intersects
(Vec3 pMin, Vec3 pMax) Lerps between this vector and the given vector.static BlockHitResult
Creates a new BlockRayTraceResult marked as a miss.static AABB
Vec3.projectedOn
(Vec3 pVector) static AABB
AABB.unitCubeFromLowerCorner
(Vec3 pVector) Returns a new vector with the result of the specified vector minus this.Constructors in net.minecraft.world.phys with parameters of type Vec3ModifierConstructorDescriptionprivate
BlockHitResult
(boolean pMiss, Vec3 pLocation, Direction pDirection, BlockPos pBlockPos, boolean pInside, boolean pWorldBorderHit) BlockHitResult
(Vec3 pLocation, Direction pDirection, BlockPos pBlockPos, boolean pInside) BlockHitResult
(Vec3 pLocation, Direction pDirection, BlockPos pBlockPos, boolean pInside, boolean pWorldBorderHit) EntityHitResult
(Entity pEntity, Vec3 pLocation) protected
-
Uses of Vec3 in net.minecraft.world.phys.shapes
Fields in net.minecraft.world.phys.shapes declared as Vec3Methods in net.minecraft.world.phys.shapes that return types with arguments of type Vec3Methods in net.minecraft.world.phys.shapes with parameters of type Vec3Modifier and TypeMethodDescriptionVoxelShape.closestPointTo
(Vec3 pPoint) static VoxelShape
Shapes.rotate
(VoxelShape pShape, OctahedralGroup pOctohedralGroup, Vec3 pPos) static Map
<Direction, VoxelShape> Shapes.rotateAll
(VoxelShape pShape, Vec3 pPos) static Map
<Direction.Axis, VoxelShape> Shapes.rotateAllAxis
(VoxelShape pShape, Vec3 pPos) static Map
<Direction, VoxelShape> Shapes.rotateHorizontal
(VoxelShape pShape, Vec3 pPos) static Map
<Direction.Axis, VoxelShape> Shapes.rotateHorizontalAxis
(VoxelShape pShape, Vec3 pPos) -
Uses of Vec3 in net.minecraft.world.waypoints
Methods in net.minecraft.world.waypoints that return Vec3Modifier and TypeMethodDescriptionTrackedWaypoint.Camera.position()
private Vec3
TrackedWaypoint.ChunkWaypoint.position
(double pY) private Vec3
TrackedWaypoint.Projector.projectPointToScreen
(Vec3 pPoint) Methods in net.minecraft.world.waypoints with parameters of type Vec3 -
Uses of Vec3 in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static void
BlockEntityRenderBoundsDebugRenderer.drawRenderBoundingBox
(PoseStack poseStack, VertexConsumer consumer, Vec3 camera, BlockEntity be) Constructors in net.neoforged.neoforge.client with parameters of type Vec3ModifierConstructorDescriptionClientCommandSourceStack
(CommandSource source, Vec3 position, Vec2 rotation, int permission, String plainTextName, Component displayName, Entity executing) -
Uses of Vec3 in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common with type parameters of type Vec3Modifier and TypeFieldDescriptionprivate static final Map
<LevelReader, Map<ChunkPos, ChunkTicketManager<Vec3>>> FarmlandWaterManager.customWaterHandler
Methods in net.neoforged.neoforge.common with type parameters of type Vec3Modifier and TypeMethodDescriptionstatic <T extends SimpleTicket<Vec3>>
TFarmlandWaterManager.addCustomTicket
(Level level, T ticket, ChunkPos masterChunk, ChunkPos... additionalChunks) Adds a custom ticket.Methods in net.neoforged.neoforge.common that return types with arguments of type Vec3Modifier and TypeMethodDescriptionprivate static ChunkTicketManager
<Vec3> FarmlandWaterManager.getTicketManager
(ChunkPos pos, LevelReader level) Methods in net.neoforged.neoforge.common with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static double
FarmlandWaterManager.getDistanceSq
(ChunkPos pos, Vec3 vec3d) static @Nullable InteractionResult
CommonHooks.onInteractEntityAt
(Player player, Entity entity, Vec3 vec3d, InteractionHand hand) static boolean
CommonHooks.onVanillaGameEvent
(Level level, Holder<GameEvent> vanillaEvent, Vec3 pos, GameEvent.Context context) -
Uses of Vec3 in net.neoforged.neoforge.common.advancements.critereon
Methods in net.neoforged.neoforge.common.advancements.critereon with parameters of type Vec3Modifier and TypeMethodDescriptionboolean
PiglinNeutralArmorEntityPredicate.matches
(Entity entity, ServerLevel level, @Nullable Vec3 position) boolean
SnowBootsEntityPredicate.matches
(Entity entity, ServerLevel level, @Nullable Vec3 position) boolean
TridentEntityPredicate.matches
(Entity entity, ServerLevel level, @Nullable Vec3 position) -
Uses of Vec3 in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type Vec3Modifier and TypeMethodDescriptiondefault BlockState
IBlockExtension.getStateAtViewpoint
(BlockState state, BlockGetter level, BlockPos pos, Vec3 viewpoint) Used to determine the state 'viewed' by an entity (seeinvalid reference
Camera#getBlockAtCamera()
default BlockState
IBlockStateExtension.getStateAtViewpoint
(BlockGetter level, BlockPos pos, Vec3 viewpoint) Used to determine the state 'viewed' by an entity (seeinvalid reference
Camera#getBlockAtCamera()
default boolean
IFluidExtension.move
(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default boolean
IFluidStateExtension.move
(LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default boolean
ILivingEntityExtension.moveInFluid
(FluidState state, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid. -
Uses of Vec3 in net.neoforged.neoforge.common.ticket
Methods in net.neoforged.neoforge.common.ticket with parameters of type Vec3 -
Uses of Vec3 in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
PlayLevelSoundEvent.AtPosition.position
private final Vec3
VanillaGameEvent.position
Methods in net.neoforged.neoforge.event that return Vec3Modifier and TypeMethodDescriptionVanillaGameEvent.getEventPosition()
static Vec3
EventHooks.getExplosionKnockback
(Level level, ServerExplosion explosion, Entity entity, Vec3 initialVelocity, List<BlockPos> blocks) To be called when an explosion has calculated the knockback velocity but has not yet added the knockback to the entity caught in blast.PlayLevelSoundEvent.AtPosition.getPosition()
Returns the position the sound is being played at.Methods in net.neoforged.neoforge.event with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3
EventHooks.getExplosionKnockback
(Level level, ServerExplosion explosion, Entity entity, Vec3 initialVelocity, List<BlockPos> blocks) To be called when an explosion has calculated the knockback velocity but has not yet added the knockback to the entity caught in blast.Constructors in net.neoforged.neoforge.event with parameters of type Vec3ModifierConstructorDescriptionAtPosition
(Level level, Vec3 position, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) VanillaGameEvent
(Level level, Holder<GameEvent> vanillaEvent, Vec3 position, GameEvent.Context context) -
Uses of Vec3 in net.neoforged.neoforge.event.entity
Methods in net.neoforged.neoforge.event.entity that return Vec3 -
Uses of Vec3 in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3
PlayerInteractEvent.EntityInteractSpecific.localPos
Methods in net.neoforged.neoforge.event.entity.player that return Vec3Modifier and TypeMethodDescriptionPlayerInteractEvent.EntityInteractSpecific.getLocalPos()
Returns the local interaction position.Constructors in net.neoforged.neoforge.event.entity.player with parameters of type Vec3ModifierConstructorDescriptionEntityInteractSpecific
(Player player, InteractionHand hand, Entity target, Vec3 localPos) -
Uses of Vec3 in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as Vec3Methods in net.neoforged.neoforge.event.level that return Vec3Modifier and TypeMethodDescriptionExplosionKnockbackEvent.getKnockbackVelocity()
return the explosion knockback velocity to apply to entity.Methods in net.neoforged.neoforge.event.level with parameters of type Vec3Modifier and TypeMethodDescriptionvoid
ExplosionKnockbackEvent.setKnockbackVelocity
(Vec3 newKnockbackVelocity) Sets the explosion knockback velocity to add to the entity's existing velocity.Constructors in net.neoforged.neoforge.event.level with parameters of type Vec3ModifierConstructorDescriptionExplosionKnockbackEvent
(Level level, ServerExplosion explosion, Entity entity, Vec3 knockbackVelocity, List<BlockPos> blockList) -
Uses of Vec3 in net.neoforged.neoforge.event.village
Fields in net.neoforged.neoforge.event.village declared as Vec3Methods in net.neoforged.neoforge.event.village that return Vec3Constructors in net.neoforged.neoforge.event.village with parameters of type Vec3ModifierConstructorDescriptionVillageSiegeEvent
(VillageSiege siege, Level level, Player player, Vec3 attemptedSpawnPos) -
Uses of Vec3 in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type Vec3Modifier and TypeMethodDescriptionboolean
FluidType.move
(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.
LevelRenderer.addCloudsPass(FrameGraphBuilder, CloudStatus, Vec3, float, int, float, Matrix4f)
instead