Uses of Class
net.minecraft.world.phys.Vec3
Package
Description
-
Uses of Vec3 in com.mojang.blaze3d.audio
Modifier 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.Modifier 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.ModifierConstructorDescriptionListenerTransform
(Vec3 position, Vec3 forward, Vec3 up) Creates an instance of aListenerTransform
record class. -
Uses of Vec3 in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionboolean
DamageSourcePredicate.matches
(ServerLevel p_25445_, Vec3 p_25446_, DamageSource p_25447_) boolean
DistanceTrigger.TriggerInstance.matches
(ServerLevel p_186189_, Vec3 p_186190_, Vec3 p_186191_) boolean
EntityPredicate.matches
(ServerLevel p_36608_, Vec3 p_36609_, Entity p_36610_) boolean
EntitySubPredicate.matches
(Entity p_218828_, ServerLevel p_218829_, Vec3 p_218830_) boolean
EntitySubPredicates.EntityHolderVariantPredicateType.Instance.matches
(Entity p_335756_, ServerLevel p_335539_, Vec3 p_336193_) boolean
EntitySubPredicates.EntityVariantPredicateType.Instance.matches
(Entity p_334092_, ServerLevel p_333810_, Vec3 p_333907_) boolean
FallAfterExplosionTrigger.TriggerInstance.matches
(ServerLevel p_335990_, Vec3 p_335477_, Vec3 p_336025_, LootContext p_335849_) boolean
FishingHookPredicate.matches
(Entity p_219716_, ServerLevel p_219717_, Vec3 p_219718_) boolean
LevitationTrigger.TriggerInstance.matches
(ServerPlayer p_49141_, Vec3 p_49142_, int p_49143_) boolean
LightningBoltPredicate.matches
(Entity p_299034_, ServerLevel p_299101_, Vec3 p_298929_) boolean
PlayerPredicate.matches
(Entity p_222484_, ServerLevel p_222485_, Vec3 p_222486_) boolean
RaiderPredicate.matches
(Entity p_338232_, ServerLevel p_338194_, Vec3 p_338564_) boolean
SlimePredicate.matches
(Entity p_223423_, ServerLevel p_223424_, Vec3 p_223425_) boolean
TargetBlockTrigger.TriggerInstance.matches
(LootContext p_70242_, Vec3 p_70243_, int p_70244_) void
DistanceTrigger.trigger
(ServerPlayer p_186166_, Vec3 p_186167_) void
FallAfterExplosionTrigger.trigger
(ServerPlayer p_335648_, Vec3 p_336086_, Entity p_336120_) void
LevitationTrigger.trigger
(ServerPlayer p_49117_, Vec3 p_49118_, int p_49119_) void
TargetBlockTrigger.trigger
(ServerPlayer p_70212_, Entity p_70213_, Vec3 p_70214_, int p_70215_) -
Uses of Vec3 in net.minecraft.client
Modifier 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
Modifier and TypeMethodDescriptionCamera.NearPlane.getBottomLeft()
Camera.NearPlane.getBottomRight()
Camera.NearPlane.getPointOnPlane
(float p_167696_, float p_167697_) Camera.getPosition()
Camera.NearPlane.getTopLeft()
Camera.NearPlane.getTopRight()
Modifier and TypeMethodDescriptionprivate void
KeyboardHandler.copyCreateEntityCommand
(ResourceLocation p_90923_, Vec3 p_90924_, CompoundTag p_90925_) protected void
Camera.setPosition
(Vec3 p_90582_) -
Uses of Vec3 in net.minecraft.client.gui.components
Modifier and TypeMethodDescriptionboolean
SubtitleOverlay.Subtitle.isAudibleFrom
(Vec3 p_314706_) void
-
Uses of Vec3 in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionClientLevel.getCloudColor
(float p_104809_) ClientLevel.getSkyColor
(Vec3 p_171661_, float p_171662_) Modifier and TypeMethodDescriptionvoid
ClientLevel.gameEvent
(Holder<GameEvent> p_316478_, Vec3 p_233640_, GameEvent.Context p_233641_) ClientLevel.getSkyColor
(Vec3 p_171661_, float p_171662_) void
ClientLevel.syncBlockState
(BlockPos p_233648_, BlockState p_233649_, Vec3 p_233650_) -
Uses of Vec3 in net.minecraft.client.multiplayer.prediction
Modifier and TypeFieldDescription(package private) final Vec3
BlockStatePredictionHandler.ServerVerifiedState.playerPos
ModifierConstructorDescription(package private)
ServerVerifiedState
(int p_233878_, BlockState p_233879_, Vec3 p_233880_) -
Uses of Vec3 in net.minecraft.client.particle
ModifierConstructorDescriptionprivate
ItemPickupParticle
(EntityRenderDispatcher p_107029_, RenderBuffers p_107030_, ClientLevel p_107031_, Entity p_107032_, Entity p_107033_, Vec3 p_107034_) private
TrackingEmitter
(ClientLevel p_108399_, Entity p_108400_, ParticleOptions p_108401_, int p_108402_, Vec3 p_108403_) -
Uses of Vec3 in net.minecraft.client.player
Modifier and TypeFieldDescriptionprotected Vec3
AbstractClientPlayer.deltaMovementOnPreviousTick
private Vec3
RemotePlayer.lerpDeltaMovement
Modifier and TypeMethodDescriptionAbstractClientPlayer.getDeltaMovementLerped
(float p_272943_) LocalPlayer.getRopeHoldPosition
(float p_108758_) Modifier and TypeMethodDescriptionprotected boolean
LocalPlayer.isHorizontalCollisionMinor
(Vec3 p_197411_) void
-
Uses of Vec3 in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionDimensionSpecialEffects.EndEffects.getBrightnessDependentFogColor
(Vec3 p_108894_, float p_108895_) abstract Vec3
DimensionSpecialEffects.getBrightnessDependentFogColor
(Vec3 p_108878_, float p_108879_) DimensionSpecialEffects.NetherEffects.getBrightnessDependentFogColor
(Vec3 p_108901_, float p_108902_) DimensionSpecialEffects.OverworldEffects.getBrightnessDependentFogColor
(Vec3 p_108908_, float p_108909_) private static Vec3
LevelRenderer.mixColor
(float p_286899_) private static Vec3
LevelRenderer.shiftHue
(float p_286907_, float p_286536_, float p_286318_, float p_286590_) Modifier and TypeMethodDescriptionprivate BufferBuilder.RenderedBuffer
LevelRenderer.buildClouds
(BufferBuilder p_234262_, double p_234263_, double p_234264_, double p_234265_, Vec3 p_234266_) private static HitResult
GameRenderer.filterHitResult
(HitResult p_319875_, Vec3 p_320631_, double p_319892_) DimensionSpecialEffects.EndEffects.getBrightnessDependentFogColor
(Vec3 p_108894_, float p_108895_) abstract Vec3
DimensionSpecialEffects.getBrightnessDependentFogColor
(Vec3 p_108878_, float p_108879_) 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_) private void
SectionOcclusionGraph.runPartialUpdate
(boolean p_294795_, Frustum p_294341_, List<SectionRenderDispatcher.RenderSection> p_294796_, Vec3 p_295915_) private void
SectionOcclusionGraph.runUpdates
(SectionOcclusionGraph.GraphStorage p_295507_, Vec3 p_294343_, Queue<SectionOcclusionGraph.Node> p_295598_, boolean p_295668_, Consumer<SectionRenderDispatcher.RenderSection> p_295393_) private void
SectionOcclusionGraph.scheduleFullUpdate
(boolean p_294514_, Camera p_295663_, Vec3 p_295096_) -
Uses of Vec3 in net.minecraft.client.renderer.blockentity
Modifier and TypeFieldDescriptionprivate static final Vec3
HangingSignRenderer.TEXT_OFFSET
private static final Vec3
SignRenderer.TEXT_OFFSET
Modifier and TypeMethodDescription(package private) Vec3
HangingSignRenderer.getTextOffset()
(package private) Vec3
SignRenderer.getTextOffset()
Modifier and TypeMethodDescriptionboolean
BeaconRenderer.shouldRender
(BeaconBlockEntity p_173531_, Vec3 p_173532_) default boolean
BlockEntityRenderer.shouldRender
(T p_173568_, Vec3 p_173569_) private void
SignRenderer.translateSignText
(PoseStack p_279133_, boolean p_279134_, Vec3 p_279280_) -
Uses of Vec3 in net.minecraft.client.renderer.chunk
-
Uses of Vec3 in net.minecraft.client.renderer.debug
Modifier and TypeFieldDescriptionprivate final Vec3
GameEventListenerRenderer.TrackedGameEvent.position
The field for theposition
record component.Modifier and TypeMethodDescriptionGameEventListenerRenderer.TrackedGameEvent.position()
Returns the value of theposition
record component.Modifier and TypeMethodDescriptionGameEventListenerRenderer.TrackedListener.getPosition
(Level p_173876_) Modifier 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 p_311968_, MultiBufferSource p_312154_, double p_312731_, double p_312933_, double p_312347_, Vec3 p_312653_, Vec3 p_312341_, int p_311785_) boolean
GameEventListenerRenderer.TrackedListener.handleGameEvent
(ServerLevel p_234540_, Holder<GameEvent> p_316503_, GameEvent.Context p_250285_, Vec3 p_250758_) boolean
void
GameEventListenerRenderer.trackGameEvent
(ResourceKey<GameEvent> p_294637_, Vec3 p_234515_) ModifierConstructorDescription(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
Modifier and TypeMethodDescriptionprivate Vec3
FishingHookRenderer.getPlayerHandPos
(Player p_340935_, float p_340872_, float p_341261_) private Vec3
GuardianRenderer.getPosition
(LivingEntity p_114803_, double p_114804_, float p_114805_) EndermanRenderer.getRenderOffset
(EnderMan p_114336_, float p_114337_) EntityRenderer.getRenderOffset
(T p_114483_, float p_114484_) ItemFrameRenderer.getRenderOffset
(T p_115073_, float p_115074_) ShulkerRenderer.getRenderOffset
(Shulker p_115904_, float p_115905_) -
Uses of Vec3 in net.minecraft.client.renderer.entity.player
Modifier and TypeMethodDescriptionPlayerRenderer.getRenderOffset
(AbstractClientPlayer p_117785_, float p_117786_) -
Uses of Vec3 in net.minecraft.client.resources.sounds
Modifier and TypeMethodDescriptionstatic SimpleSoundInstance
SimpleSoundInstance.forRecord
(SoundEvent p_249575_, Vec3 p_249600_) -
Uses of Vec3 in net.minecraft.commands
ModifierConstructorDescriptionCommandSourceStack
(CommandSource p_81302_, Vec3 p_81303_, Vec2 p_81304_, ServerLevel p_81305_, int p_81306_, String p_81307_, Component p_81308_, MinecraftServer p_81309_, Entity p_81310_) protected
CommandSourceStack
(CommandSource p_282943_, Vec3 p_282023_, Vec2 p_282896_, ServerLevel p_282659_, int p_283075_, String p_282379_, Component p_282469_, MinecraftServer p_281590_, Entity p_281515_, boolean p_282415_, CommandResultCallback p_309630_, EntityAnchorArgument.Anchor p_282332_, CommandSigningContext p_283585_, TaskChainer p_282376_) -
Uses of Vec3 in net.minecraft.commands.arguments
Modifier and TypeFieldDescriptionprivate final BiFunction
<Vec3, Entity, Vec3> EntityAnchorArgument.Anchor.transform
private final BiFunction
<Vec3, Entity, Vec3> EntityAnchorArgument.Anchor.transform
-
Uses of Vec3 in net.minecraft.commands.arguments.coordinates
Modifier and TypeMethodDescriptionCoordinates.getPosition
(CommandSourceStack p_119566_) LocalCoordinates.getPosition
(CommandSourceStack p_119912_) WorldCoordinates.getPosition
(CommandSourceStack p_120893_) static Vec3
Vec3Argument.getVec3
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120845_, String p_120846_) -
Uses of Vec3 in net.minecraft.commands.arguments.selector
Modifier 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
Modifier and TypeMethodDescriptionBiConsumer
<Vec3, List<? extends Entity>> EntitySelectorParser.getOrder()
Modifier and TypeMethodDescriptionprivate void
EntitySelector.addEntities
(List<Entity> p_121155_, ServerLevel p_121156_, Vec3 p_121157_, Predicate<Entity> p_121158_) EntitySelector.getPredicate
(Vec3 p_121145_) EntitySelector.sortAndLimit
(Vec3 p_121150_, List<T> p_121151_) Modifier and TypeMethodDescriptionvoid
EntitySelectorParser.setOrder
(BiConsumer<Vec3, List<? extends Entity>> p_121269_) ModifierConstructorDescriptionEntitySelector
(int p_121125_, boolean p_121126_, boolean p_121127_, Predicate<Entity> p_121128_, MinMaxBounds.Doubles p_121129_, Function<Vec3, Vec3> p_121130_, AABB p_121131_, BiConsumer<Vec3, List<? extends Entity>> p_121132_, boolean p_121133_, String p_121134_, UUID p_121135_, EntityType<?> p_121136_, boolean p_121137_) EntitySelector
(int p_121125_, boolean p_121126_, boolean p_121127_, Predicate<Entity> p_121128_, MinMaxBounds.Doubles p_121129_, Function<Vec3, Vec3> p_121130_, AABB p_121131_, BiConsumer<Vec3, List<? extends Entity>> p_121132_, boolean p_121133_, String p_121134_, UUID p_121135_, EntityType<?> p_121136_, boolean p_121137_) EntitySelector
(int p_121125_, boolean p_121126_, boolean p_121127_, Predicate<Entity> p_121128_, MinMaxBounds.Doubles p_121129_, Function<Vec3, Vec3> p_121130_, AABB p_121131_, BiConsumer<Vec3, List<? extends Entity>> p_121132_, boolean p_121133_, String p_121134_, UUID p_121135_, EntityType<?> p_121136_, boolean p_121137_) -
Uses of Vec3 in net.minecraft.core
-
Uses of Vec3 in net.minecraft.core.dispenser
-
Uses of Vec3 in net.minecraft.gametest.framework
Modifier and TypeMethodDescriptionGameTestHelper.absoluteVec
(Vec3 p_177228_) GameTestHelper.relativeVec
(Vec3 p_251543_) Modifier and TypeMethodDescriptionGameTestHelper.absoluteVec
(Vec3 p_177228_) void
GameTestHelper.assertEntityNotPresent
(EntityType<?> p_341944_, Vec3 p_341926_, Vec3 p_341919_) void
GameTestHelper.assertEntityPresent
(EntityType<?> p_252010_, Vec3 p_249488_, Vec3 p_251186_) GameTestHelper.findEntities
(EntityType<E> p_320878_, Vec3 p_320734_, double p_320825_) GameTestHelper.relativeVec
(Vec3 p_251543_) <E extends Entity>
EGameTestHelper.spawn
(EntityType<E> p_177174_, Vec3 p_177175_) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill
(EntityType<E> p_177327_, Vec3 p_177328_) -
Uses of Vec3 in net.minecraft.network
-
Uses of Vec3 in net.minecraft.network.protocol.common.custom
Modifier 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.Modifier 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.ModifierConstructorDescriptionBeeInfo
(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
Modifier and TypeFieldDescriptionprivate Vec3
VecDeltaCodec.base
private final Vec3
ServerboundInteractPacket.InteractionAtLocationAction.location
Modifier and TypeFieldDescriptionClientboundDamageEventPacket.sourcePosition
The field for thesourcePosition
record component.Modifier and TypeMethodDescriptionVecDeltaCodec.decode
(long p_238022_, long p_238023_, long p_238024_) ClientboundPlayerLookAtPacket.getPosition
(Level p_132786_) Modifier and TypeMethodDescriptionClientboundDamageEventPacket.sourcePosition()
Returns the value of thesourcePosition
record component.Modifier and TypeMethodDescriptionstatic ServerboundInteractPacket
ServerboundInteractPacket.createInteractionPacket
(Entity p_179613_, boolean p_179614_, InteractionHand p_179615_, Vec3 p_179616_) long
long
long
void
ServerboundInteractPacket.Handler.onInteraction
(InteractionHand p_179644_, Vec3 p_179645_) static void
DebugPackets.sendGameEventInfo
(Level p_237888_, Holder<GameEvent> p_316607_, Vec3 p_237890_) void
ModifierConstructorDescriptionClientboundAddEntityPacket
(int p_237546_, UUID p_237547_, double p_237548_, double p_237549_, double p_237550_, float p_237551_, float p_237552_, EntityType<?> p_237553_, int p_237554_, Vec3 p_237555_, double p_237556_) ClientboundExplodePacket
(double p_132115_, double p_132116_, double p_132117_, float p_132118_, List<BlockPos> p_132119_, Vec3 p_132120_, Explosion.BlockInteraction p_312296_, ParticleOptions p_312499_, ParticleOptions p_312203_, Holder<SoundEvent> p_320679_) ClientboundSetEntityMotionPacket
(int p_133182_, Vec3 p_133183_) (package private)
InteractionAtLocationAction
(InteractionHand p_179659_, Vec3 p_179660_) ModifierConstructorDescriptionClientboundDamageEventPacket
(int entityId, Holder<DamageType> sourceType, int sourceCauseId, int sourceDirectId, Optional<Vec3> sourcePosition) Creates an instance of aClientboundDamageEventPacket
record class. -
Uses of Vec3 in net.minecraft.server.chase
Modifier and TypeFieldDescriptionprivate final Vec3
ChaseClient.TeleportTarget.pos
The field for thepos
record component.Modifier and TypeMethodDescriptionChaseClient.TeleportTarget.pos()
Returns the value of thepos
record component.ModifierConstructorDescription(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
Modifier and TypeFieldDescriptionprivate final Vec3
TeleportCommand.LookAtPosition.position
The field for theposition
record component.Modifier and TypeMethodDescriptionTeleportCommand.LookAtPosition.position()
Returns the value of theposition
record component.Modifier and TypeMethodDescriptionstatic Entity
SummonCommand.createEntity
(CommandSourceStack p_270582_, Holder.Reference<EntityType<?>> p_270277_, Vec3 p_270366_, CompoundTag p_270197_, boolean p_270947_) private static int
LootCommand.dropInWorld
(CommandSourceStack p_137946_, Vec3 p_137947_, List<ItemStack> p_137948_, LootCommand.Callback p_137949_) private static int
PlaySoundCommand.playSound
(CommandSourceStack p_138161_, Collection<ServerPlayer> p_138162_, ResourceLocation p_138163_, SoundSource p_138164_, Vec3 p_138165_, float p_138166_, float p_138167_, float p_138168_) private static int
ParticleCommand.sendParticles
(CommandSourceStack p_138129_, ParticleOptions p_138130_, Vec3 p_138131_, Vec3 p_138132_, float p_138133_, int p_138134_, boolean p_138135_, Collection<ServerPlayer> p_138136_) private static int
SummonCommand.spawnEntity
(CommandSourceStack p_249752_, Holder.Reference<EntityType<?>> p_251948_, Vec3 p_251429_, CompoundTag p_250568_, boolean p_250229_) ModifierConstructorDescription(package private)
LookAtPosition
(Vec3 position) Creates an instance of aLookAtPosition
record class. -
Uses of Vec3 in net.minecraft.server.level
Modifier and TypeFieldDescriptionprivate Vec3
ServerEntity.ap
private Vec3
ServerPlayer.enteredLavaOnVehiclePosition
private Vec3
ServerPlayer.enteredNetherPosition
private Vec3
ServerPlayer.levitationStartPos
private Vec3
ServerPlayer.startingToFallPosition
Modifier and TypeMethodDescriptionvoid
ServerLevel.gameEvent
(Holder<GameEvent> p_316597_, Vec3 p_215042_, GameEvent.Context p_215043_) void
WorldGenRegion.gameEvent
(Holder<GameEvent> p_316792_, Vec3 p_215164_, GameEvent.Context p_215165_) void
ServerPlayer.lookAt
(EntityAnchorArgument.Anchor p_9112_, Vec3 p_9113_) void
-
Uses of Vec3 in net.minecraft.server.network
Modifier and TypeFieldDescriptionprivate Vec3
ServerGamePacketListenerImpl.awaitingPositionFromClient
-
Uses of Vec3 in net.minecraft.util
Modifier and TypeMethodDescriptionCubicSampler.Vec3Fetcher.fetch
(int p_130042_, int p_130043_, int p_130044_) static Vec3
CubicSampler.gaussianSampleVec3
(Vec3 p_130039_, CubicSampler.Vec3Fetcher p_130040_) private static Vec3
ParticleUtils.getRandomSpeedRanges
(RandomSource p_216303_) Modifier and TypeMethodDescriptionstatic Vec3
CubicSampler.gaussianSampleVec3
(Vec3 p_130039_, CubicSampler.Vec3Fetcher p_130040_) static boolean
Mth.rayIntersectsAABB
(Vec3 p_144889_, Vec3 p_144890_, AABB p_144891_) static void
ParticleUtils.spawnParticleOnFace
(Level p_216307_, BlockPos p_216308_, Direction p_216309_, ParticleOptions p_216310_, Vec3 p_216311_, double p_216312_) Modifier and TypeMethodDescriptionstatic void
ParticleUtils.spawnParticlesOnBlockFace
(Level p_216319_, BlockPos p_216320_, ParticleOptions p_216321_, IntProvider p_216322_, Direction p_216323_, Supplier<Vec3> p_216324_, double p_216325_) -
Uses of Vec3 in net.minecraft.world.damagesource
Modifier and TypeMethodDescriptionDamageSource.getSourcePosition()
DamageSource.sourcePositionRaw()
ModifierConstructorDescriptionDamageSource
(Holder<DamageType> p_270906_, Entity p_270796_, Entity p_270459_, Vec3 p_270623_) DamageSource
(Holder<DamageType> p_270690_, Vec3 p_270579_) -
Uses of Vec3 in net.minecraft.world.effect
Modifier and TypeMethodDescriptionstatic List
<ServerPlayer> MobEffectUtil.addEffectToPlayersAround
(ServerLevel p_216947_, Entity p_216948_, Vec3 p_216949_, double p_216950_, MobEffectInstance p_216951_, int p_216952_) -
Uses of Vec3 in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate Vec3
Entity.deltaMovement
private Vec3
Entity.position
protected Vec3
Entity.stuckSpeedMultiplier
Modifier and TypeFieldDescriptionprivate final Map
<EntityAttachment, List<Vec3>> EntityAttachments.attachments
private final Map
<EntityAttachment, List<Vec3>> EntityAttachments.Builder.attachments
EntityAttachment.Fallback.ZERO
Modifier and TypeMethodDescriptionprotected final Vec3
Entity.calculateUpVector
(float p_20215_, float p_20216_) final Vec3
Entity.calculateViewVector
(float p_20172_, float p_20173_) private Vec3
static Vec3
Entity.collideBoundingBox
(Entity p_198895_, Vec3 p_198896_, AABB p_198897_, Level p_198898_, List<VoxelShape> p_198899_) private static Vec3
Entity.collideWithShapes
(Vec3 p_198901_, AABB p_198902_, List<VoxelShape> p_198903_) EntityAttachments.get
(EntityAttachment p_316290_, int p_316517_, float p_316296_) EntityAttachments.getClamped
(EntityAttachment p_316117_, int p_316379_, float p_316900_) protected static Vec3
Entity.getCollisionHorizontalEscapeVector
(double p_19904_, double p_19905_, float p_19906_) protected static Vec3
Entity.getDefaultPassengerAttachmentPoint
(Entity p_316557_, Entity p_316799_, EntityAttachments p_316167_) Entity.getDeltaMovement()
Entity.getDismountLocationForPassenger
(LivingEntity p_20123_) final Vec3
Entity.getEyePosition()
final Vec3
Entity.getEyePosition
(float p_20300_) LivingEntity.getFluidFallingAdjustedMovement
(double p_20995_, boolean p_20996_, Vec3 p_20997_) Entity.getForward()
Entity.getHandHoldingItemAngle
(Item p_204035_) private static Vec3
Entity.getInputVector
(Vec3 p_20016_, float p_20017_, float p_20018_) protected Vec3
Entity.getLeashOffset()
Entity.getLeashOffset
(float p_249286_) Entity.getLightProbePosition
(float p_20309_) Entity.getLookAngle()
EntityAttachments.getNullable
(EntityAttachment p_316263_, int p_316709_, float p_316113_) protected Vec3
Entity.getPassengerAttachmentPoint
(Entity p_294756_, EntityDimensions p_295396_, float p_296362_) Entity.getPassengerRidingPosition
(Entity p_294938_) LivingEntity.getPassengerRidingPosition
(Entity p_295664_) final Vec3
Entity.getPosition
(float p_20319_) protected Vec3
Entity.getRelativePortalPosition
(Direction.Axis p_20045_, BlockUtil.FoundRectangle p_20046_) protected Vec3
LivingEntity.getRelativePortalPosition
(Direction.Axis p_21085_, BlockUtil.FoundRectangle p_21086_) protected Vec3
LivingEntity.getRiddenInput
(Player p_278326_, Vec3 p_275300_) Entity.getRopeHoldPosition
(float p_20347_) final Vec3
Entity.getUpVector
(float p_20290_) Entity.getVehicleAttachmentPoint
(Entity p_316322_) final Vec3
Entity.getViewVector
(float p_20253_) private Vec3
LivingEntity.handleOnClimbable
(Vec3 p_21298_) LivingEntity.handleRelativeFrictionAndCalculateMovement
(Vec3 p_21075_, float p_21076_) protected Vec3
Entity.limitPistonMovement
(Vec3 p_20134_) protected Vec3
Entity.maybeBackOffFromEdge
(Vec3 p_20019_, MoverType p_20020_) Entity.position()
static Vec3
LivingEntity.resetForwardDirectionOfRelativePortalPosition
(Vec3 p_21290_) Entity.trackingPosition()
private static Vec3
EntityAttachments.transformPoint
(Vec3 p_316742_, float p_316708_) Modifier and TypeMethodDescriptionEntityAttachment.Fallback.create
(float p_316360_, float p_316865_) EntityAttachment.createFallbackPoints
(float p_316596_, float p_316153_) EntityAttachments.scalePoints
(List<Vec3> p_316879_, float p_316759_, float p_316371_, float p_316711_) Modifier and TypeMethodDescriptionvoid
Entity.addDeltaMovement
(Vec3 p_250128_) EntityAttachments.Builder.attach
(EntityAttachment p_316903_, Vec3 p_316337_) EntityType.Builder.attach
(EntityAttachment p_320601_, Vec3 p_320745_) static void
ExperienceOrb.award
(ServerLevel p_147083_, Vec3 p_147084_, int p_147085_) protected void
Entity.checkSupportingBlock
(boolean p_289694_, Vec3 p_289680_) private Vec3
static Vec3
Entity.collideBoundingBox
(Entity p_198895_, Vec3 p_198896_, AABB p_198897_, Level p_198898_, List<VoxelShape> p_198899_) private static Vec3
Entity.collideWithShapes
(Vec3 p_198901_, AABB p_198902_, List<VoxelShape> p_198903_) double
Entity.distanceToSqr
(Vec3 p_20239_) LivingEntity.getFluidFallingAdjustedMovement
(double p_20995_, boolean p_20996_, Vec3 p_20997_) private static Vec3
Entity.getInputVector
(Vec3 p_20016_, float p_20017_, float p_20018_) Entity.getPassengerClosestTo
(Vec3 p_341365_) protected Vec3
LivingEntity.getRiddenInput
(Player p_278326_, Vec3 p_275300_) private Vec3
LivingEntity.handleOnClimbable
(Vec3 p_21298_) LivingEntity.handleRelativeFrictionAndCalculateMovement
(Vec3 p_21075_, float p_21076_) Entity.interactAt
(Player p_19980_, Vec3 p_19981_, InteractionHand p_19982_) protected boolean
Entity.isHorizontalCollisionMinor
(Vec3 p_196625_) protected Vec3
Entity.limitPistonMovement
(Vec3 p_20134_) void
Entity.lookAt
(EntityAnchorArgument.Anchor p_20033_, Vec3 p_20034_) void
LivingEntity.lookAt
(EntityAnchorArgument.Anchor p_21078_, Vec3 p_21079_) EntityDimensions.makeBoundingBox
(Vec3 p_20394_) void
Entity.makeStuckInBlock
(BlockState p_20006_, Vec3 p_20007_) protected Vec3
Entity.maybeBackOffFromEdge
(Vec3 p_20019_, MoverType p_20020_) void
void
Entity.moveRelative
(float p_19921_, Vec3 p_19922_) void
EntityType.Builder.passengerAttachments
(Vec3... p_316160_) static Vec3
LivingEntity.resetForwardDirectionOfRelativePortalPosition
(Vec3 p_21290_) void
Entity.setDeltaMovement
(Vec3 p_20257_) void
Entity.setOnGroundWithKnownMovement
(boolean p_289661_, Vec3 p_289653_) final void
protected void
LivingEntity.tickRidden
(Player p_278262_, Vec3 p_275242_) private static Vec3
EntityAttachments.transformPoint
(Vec3 p_316742_, float p_316708_) void
void
private void
LivingEntity.travelRidden
(Player p_278244_, Vec3 p_278231_) private static boolean
ExperienceOrb.tryMergeToExisting
(ServerLevel p_147097_, Vec3 p_147098_, int p_147099_) EntityType.Builder.vehicleAttachment
(Vec3 p_316758_) private boolean
Entity.vibrationAndSoundEffectsFromBlock
(BlockPos p_286221_, BlockState p_286549_, boolean p_286708_, boolean p_286543_, Vec3 p_286448_) Modifier and TypeMethodDescriptionEntityAttachments.scalePoints
(List<Vec3> p_316879_, float p_316759_, float p_316371_, float p_316711_) ModifierConstructorDescription(package private)
EntityAttachments
(Map<EntityAttachment, List<Vec3>> p_316675_) -
Uses of Vec3 in net.minecraft.world.entity.ai.behavior
Modifier and TypeFieldDescriptionprivate final Vec3
BlockPosTracker.centerPosition
protected Vec3
LongJumpToRandomPos.chosenJump
private Vec3
RamTarget.ramDirection
Modifier and TypeMethodDescriptionprotected Vec3
LongJumpToRandomPos.calculateOptimalJumpVector
(Mob p_217304_, Vec3 p_217305_) BlockPosTracker.currentPosition()
EntityTracker.currentPosition()
PositionTracker.currentPosition()
private Vec3
PrepareRamNearestTarget.getEdgeOfBlock
(BlockPos p_147755_, BlockPos p_147756_) private static Vec3
MoveToSkySeeingSpot.getOutdoorPosition
(ServerLevel p_23565_, LivingEntity p_23566_) private Vec3
AnimalPanic.getPanicPos
(E p_196639_, ServerLevel p_196640_) static Vec3
BehaviorUtils.getRandomSwimmablePos
(PathfinderMob p_147445_, int p_147446_, int p_147447_) private static Vec3
RandomStroll.getTargetFlyPos
(PathfinderMob p_260316_, int p_259038_, int p_259696_) private static Vec3
RandomStroll.getTargetSwimPos
(PathfinderMob p_259491_) private static Vec3
GoAndGiveItemsToTarget.getThrowPosition
(PositionTracker p_217212_) Modifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle
(Mob p_311799_, Vec3 p_312876_, float p_312407_, int p_311991_, boolean p_312784_) Modifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle
(Mob p_311799_, Vec3 p_312876_, float p_312407_, int p_311991_, boolean p_312784_) protected Vec3
LongJumpToRandomPos.calculateOptimalJumpVector
(Mob p_217304_, Vec3 p_217305_) private static boolean
LongJumpUtil.isClearTransition
(Mob p_312910_, EntityDimensions p_312734_, Vec3 p_311995_, Vec3 p_312896_) static void
BehaviorUtils.throwItem
(LivingEntity p_22614_, ItemStack p_22615_, Vec3 p_22616_) static void
BehaviorUtils.throwItem
(LivingEntity p_217134_, ItemStack p_217135_, Vec3 p_217136_, Vec3 p_217137_, float p_217138_) static void
GoAndGiveItemsToTarget.throwItem
(LivingEntity p_217208_, ItemStack p_217209_, Vec3 p_217210_) Modifier and TypeMethodDescriptionprivate static <T> OneShot
<PathfinderMob> SetWalkTargetAwayFrom.create
(MemoryModuleType<T> p_260057_, float p_259672_, int p_259866_, boolean p_259232_, Function<T, Vec3> p_259355_) private static OneShot
<PathfinderMob> RandomStroll.strollFlyOrSwim
(float p_260030_, Function<PathfinderMob, Vec3> p_259912_, Predicate<PathfinderMob> p_259088_) -
Uses of Vec3 in net.minecraft.world.entity.ai.control
-
Uses of Vec3 in net.minecraft.world.entity.ai.goal
Modifier 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
-
Uses of Vec3 in net.minecraft.world.entity.ai.util
Modifier and TypeMethodDescriptionstatic Vec3
RandomPos.generateRandomPos
(Supplier<BlockPos> p_148562_, ToDoubleFunction<BlockPos> p_148563_) static Vec3
RandomPos.generateRandomPos
(PathfinderMob p_148543_, Supplier<BlockPos> p_148544_) static Vec3
AirAndWaterRandomPos.getPos
(PathfinderMob p_148358_, int p_148359_, int p_148360_, int p_148361_, double p_148362_, double p_148363_, double p_148364_) static Vec3
DefaultRandomPos.getPos
(PathfinderMob p_148404_, int p_148405_, int p_148406_) static Vec3
HoverRandomPos.getPos
(PathfinderMob p_148466_, int p_148467_, int p_148468_, double p_148469_, double p_148470_, float p_148471_, int p_148472_, int p_148473_) static Vec3
LandRandomPos.getPos
(PathfinderMob p_148489_, int p_148490_, int p_148491_) static Vec3
LandRandomPos.getPos
(PathfinderMob p_148504_, int p_148505_, int p_148506_, ToDoubleFunction<BlockPos> p_148507_) static Vec3
DefaultRandomPos.getPosAway
(PathfinderMob p_148408_, int p_148409_, int p_148410_, Vec3 p_148411_) static Vec3
LandRandomPos.getPosAway
(PathfinderMob p_148522_, int p_148523_, int p_148524_, Vec3 p_148525_) private static Vec3
LandRandomPos.getPosInDirection
(PathfinderMob p_148498_, int p_148499_, int p_148500_, Vec3 p_148501_, boolean p_148502_) static Vec3
AirRandomPos.getPosTowards
(PathfinderMob p_148388_, int p_148389_, int p_148390_, int p_148391_, Vec3 p_148392_, double p_148393_) static Vec3
DefaultRandomPos.getPosTowards
(PathfinderMob p_148413_, int p_148414_, int p_148415_, Vec3 p_148416_, double p_148417_) static Vec3
LandRandomPos.getPosTowards
(PathfinderMob p_148493_, int p_148494_, int p_148495_, Vec3 p_148496_) Modifier and TypeMethodDescriptionstatic Vec3
DefaultRandomPos.getPosAway
(PathfinderMob p_148408_, int p_148409_, int p_148410_, Vec3 p_148411_) static Vec3
LandRandomPos.getPosAway
(PathfinderMob p_148522_, int p_148523_, int p_148524_, Vec3 p_148525_) private static Vec3
LandRandomPos.getPosInDirection
(PathfinderMob p_148498_, int p_148499_, int p_148500_, Vec3 p_148501_, boolean p_148502_) static Vec3
AirRandomPos.getPosTowards
(PathfinderMob p_148388_, int p_148389_, int p_148390_, int p_148391_, Vec3 p_148392_, double p_148393_) static Vec3
DefaultRandomPos.getPosTowards
(PathfinderMob p_148413_, int p_148414_, int p_148415_, Vec3 p_148416_, double p_148417_) static Vec3
LandRandomPos.getPosTowards
(PathfinderMob p_148493_, int p_148494_, int p_148495_, Vec3 p_148496_) -
Uses of Vec3 in net.minecraft.world.entity.ai.village
Modifier and TypeMethodDescriptionprivate Vec3
VillageSiege.findRandomSpawnPos
(ServerLevel p_27010_, BlockPos p_27011_) -
Uses of Vec3 in net.minecraft.world.entity.animal
Modifier and TypeFieldDescriptionprivate Vec3
Bee.BeePollinateGoal.hoverPos
private Vec3
Panda.rollDelta
Modifier and TypeMethodDescriptionprivate Vec3
Bee.BeeWanderGoal.findPos()
Pig.getDismountLocationForPassenger
(LivingEntity p_29487_) Bee.getLeashOffset()
Fox.getLeashOffset()
IronGolem.getLeashOffset()
Ocelot.getLeashOffset()
Parrot.getLeashOffset()
Pig.getLeashOffset()
Rabbit.getLeashOffset()
SnowGolem.getLeashOffset()
Wolf.getLeashOffset()
protected Vec3
Parrot.ParrotWanderGoal.getPosition()
protected Vec3
Pig.getRiddenInput
(Player p_278309_, Vec3 p_275479_) private Vec3
Parrot.ParrotWanderGoal.getTreePos()
private Vec3
Squid.rotateVector
(Vec3 p_29986_) Modifier and TypeMethodDescriptionprotected Vec3
Pig.getRiddenInput
(Player p_278309_, Vec3 p_275479_) private Vec3
Squid.rotateVector
(Vec3 p_29986_) protected void
Pig.tickRidden
(Player p_278330_, Vec3 p_278267_) void
void
void
void
-
Uses of Vec3 in net.minecraft.world.entity.animal.allay
Modifier and TypeMethodDescriptionboolean
Allay.JukeboxListener.handleGameEvent
(ServerLevel p_250009_, Holder<GameEvent> p_316687_, GameEvent.Context p_249478_, Vec3 p_250852_) void
-
Uses of Vec3 in net.minecraft.world.entity.animal.axolotl
-
Uses of Vec3 in net.minecraft.world.entity.animal.camel
Modifier and TypeMethodDescriptionCamel.getLeashOffset
(float p_251477_) protected Vec3
Camel.getPassengerAttachmentPoint
(Entity p_295101_, EntityDimensions p_294765_, float p_294716_) protected Vec3
Camel.getRiddenInput
(Player p_278264_, Vec3 p_278298_) Modifier and TypeMethodDescriptionprotected void
Camel.executeRidersJump
(float p_251967_, Vec3 p_275627_) protected Vec3
Camel.getRiddenInput
(Player p_278264_, Vec3 p_278298_) protected void
Camel.tickRidden
(Player p_278319_, Vec3 p_278301_) void
-
Uses of Vec3 in net.minecraft.world.entity.animal.frog
-
Uses of Vec3 in net.minecraft.world.entity.animal.horse
Modifier and TypeMethodDescriptionAbstractHorse.getDismountLocationForPassenger
(LivingEntity p_30576_) private Vec3
AbstractHorse.getDismountLocationInDirection
(Vec3 p_30562_, LivingEntity p_30563_) Llama.getLeashOffset()
protected Vec3
AbstractHorse.getPassengerAttachmentPoint
(Entity p_295612_, EntityDimensions p_296023_, float p_295509_) protected Vec3
Llama.getPassengerAttachmentPoint
(Entity p_294968_, EntityDimensions p_296042_, float p_295134_) protected Vec3
AbstractHorse.getRiddenInput
(Player p_278278_, Vec3 p_275506_) Modifier and TypeMethodDescriptionprotected void
AbstractHorse.executeRidersJump
(float p_248808_, Vec3 p_275435_) private Vec3
AbstractHorse.getDismountLocationInDirection
(Vec3 p_30562_, LivingEntity p_30563_) protected Vec3
AbstractHorse.getRiddenInput
(Player p_278278_, Vec3 p_275506_) protected void
AbstractHorse.tickRidden
(Player p_278233_, Vec3 p_275693_) -
Uses of Vec3 in net.minecraft.world.entity.animal.sniffer
-
Uses of Vec3 in net.minecraft.world.entity.boss.enderdragon
-
Uses of Vec3 in net.minecraft.world.entity.boss.enderdragon.phases
Modifier 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
Modifier and TypeMethodDescriptionAbstractDragonPhaseInstance.getFlyTargetLocation()
DragonChargePlayerPhase.getFlyTargetLocation()
DragonDeathPhase.getFlyTargetLocation()
DragonHoldingPatternPhase.getFlyTargetLocation()
DragonHoverPhase.getFlyTargetLocation()
DragonLandingApproachPhase.getFlyTargetLocation()
DragonLandingPhase.getFlyTargetLocation()
DragonPhaseInstance.getFlyTargetLocation()
DragonStrafePlayerPhase.getFlyTargetLocation()
DragonTakeoffPhase.getFlyTargetLocation()
-
Uses of Vec3 in net.minecraft.world.entity.boss.wither
Modifier and TypeMethodDescriptionvoid
WitherBoss.makeStuckInBlock
(BlockState p_31471_, Vec3 p_31472_) -
Uses of Vec3 in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionArmorStand.getLightProbePosition
(float p_31665_) LeashFenceKnotEntity.getRopeHoldPosition
(float p_31863_) Painting.trackingPosition()
Modifier and TypeMethodDescriptionprivate EquipmentSlot
ArmorStand.getClickedSlot
(Vec3 p_31660_) ArmorStand.interactAt
(Player p_31594_, Vec3 p_31595_, InteractionHand p_31596_) void
void
void
-
Uses of Vec3 in net.minecraft.world.entity.monster
Modifier and TypeFieldDescriptionprivate final Vec3[][]
Illusioner.clientSideIllusionOffsets
(package private) Vec3
Phantom.moveTargetPoint
Modifier and TypeMethodDescriptionShulker.getDeltaMovement()
Strider.getDismountLocationForPassenger
(LivingEntity p_33908_) Vec3[]
Illusioner.getIllusionOffsets
(float p_32940_) Strider.getLeashOffset()
protected Vec3
Slime.getPassengerAttachmentPoint
(Entity p_296103_, EntityDimensions p_295741_, float p_295572_) protected Vec3
Strider.getPassengerAttachmentPoint
(Entity p_294748_, EntityDimensions p_295089_, float p_295230_) protected Vec3
Strider.getRiddenInput
(Player p_278251_, Vec3 p_275578_) CaveSpider.getVehicleAttachmentPoint
(Entity p_316479_) Spider.getVehicleAttachmentPoint
(Entity p_316696_) private Vec3
Drowned.DrownedGoToWaterGoal.getWaterPos()
Modifier and TypeMethodDescriptionprivate boolean
protected Vec3
Strider.getRiddenInput
(Player p_278251_, Vec3 p_275578_) void
Spider.makeStuckInBlock
(BlockState p_33796_, Vec3 p_33797_) void
void
void
Shulker.setDeltaMovement
(Vec3 p_149804_) protected void
Strider.tickRidden
(Player p_278331_, Vec3 p_278234_) void
void
-
Uses of Vec3 in net.minecraft.world.entity.monster.breeze
Modifier and TypeMethodDescriptionstatic Vec3
BreezeUtil.randomPointBehindTarget
(LivingEntity p_316886_, RandomSource p_316867_) private static Vec3
Slide.randomPointInMiddleCircle
(Breeze p_311931_, LivingEntity p_312413_) Modifier and TypeMethodDescriptionLongJump.calculateOptimalJumpVector
(Breeze p_312651_, RandomSource p_312364_, Vec3 p_312758_) Modifier and TypeMethodDescriptionLongJump.calculateOptimalJumpVector
(Breeze p_312651_, RandomSource p_312364_, Vec3 p_312758_) static boolean
BreezeUtil.hasLineOfSight
(Breeze p_316785_, Vec3 p_316249_) private static BlockPos
LongJump.snapToSurface
(LivingEntity p_311909_, Vec3 p_312597_) boolean
Breeze.withinInnerCircleRange
(Vec3 p_312331_) -
Uses of Vec3 in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionprivate static Vec3
PiglinAi.getRandomNearbyPos
(Piglin p_35017_) Modifier and TypeMethodDescriptionprivate static void
PiglinAi.throwItemsTowardPos
(Piglin p_34864_, List<ItemStack> p_34865_, Vec3 p_34866_) -
Uses of Vec3 in net.minecraft.world.entity.monster.warden
Modifier and TypeMethodDescriptionstatic void
Warden.applyDarknessAround
(ServerLevel p_219376_, Vec3 p_219377_, Entity p_219378_, int p_219379_) -
Uses of Vec3 in net.minecraft.world.entity.npc
-
Uses of Vec3 in net.minecraft.world.entity.player
Modifier and TypeFieldDescriptionPlayer.currentImpulseImpactPos
static final Vec3
Player.DEFAULT_VEHICLE_ATTACHMENT
Modifier and TypeMethodDescriptionPlayer.getRopeHoldPosition
(float p_36374_) protected Vec3
Player.maybeBackOffFromEdge
(Vec3 p_36201_, MoverType p_36202_) Modifier and TypeMethodDescriptionPlayer.findRespawnPositionAndUseSpawnBlock
(ServerLevel p_36131_, BlockPos p_36132_, float p_36133_, boolean p_36134_, boolean p_36135_) Modifier and TypeMethodDescriptionvoid
Player.makeStuckInBlock
(BlockState p_36196_, Vec3 p_36197_) protected Vec3
Player.maybeBackOffFromEdge
(Vec3 p_36201_, MoverType p_36202_) void
-
Uses of Vec3 in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionProjectile.getMovementToShoot
(double p_338345_, double p_338731_, double p_338427_, float p_338430_, float p_338697_) Modifier and TypeMethodDescriptionprotected EntityHitResult
AbstractArrow.findHitEntity
(Vec3 p_36758_, Vec3 p_36759_) protected EntityHitResult
ThrownTrident.findHitEntity
(Vec3 p_37575_, Vec3 p_37576_) static EntityHitResult
ProjectileUtil.getEntityHitResult
(Entity p_37288_, Vec3 p_37289_, Vec3 p_37290_, AABB p_37291_, Predicate<Entity> p_37292_, double p_37293_) static EntityHitResult
ProjectileUtil.getEntityHitResult
(Level p_37305_, Entity p_37306_, Vec3 p_37307_, Vec3 p_37308_, AABB p_37309_, Predicate<Entity> p_37310_) static EntityHitResult
ProjectileUtil.getEntityHitResult
(Level p_150176_, Entity p_150177_, Vec3 p_150178_, Vec3 p_150179_, AABB p_150180_, Predicate<Entity> p_150181_, float p_150182_) private static HitResult
ProjectileUtil.getHitResult
(Vec3 p_278237_, Entity p_278320_, Predicate<Entity> p_278257_, Vec3 p_278342_, Level p_278321_, float p_305813_, ClipContext.Block p_312920_) void
-
Uses of Vec3 in net.minecraft.world.entity.vehicle
Modifier and TypeFieldDescriptionprivate static final Vec3
AbstractMinecart.LOWERED_PASSENGER_ATTACHMENT
private Vec3
AbstractMinecart.targetDeltaMovement
Modifier and TypeMethodDescriptionstatic Vec3
DismountHelper.findSafeDismountLocation
(EntityType<?> p_38442_, CollisionGetter p_38443_, BlockPos p_38444_, boolean p_38445_) AbstractMinecart.getDismountLocationForPassenger
(LivingEntity p_38145_) Boat.getDismountLocationForPassenger
(LivingEntity p_38357_) protected Vec3
AbstractMinecart.getPassengerAttachmentPoint
(Entity p_294753_, EntityDimensions p_295251_, float p_296054_) protected Vec3
Boat.getPassengerAttachmentPoint
(Entity p_294665_, EntityDimensions p_295933_, float p_295585_) AbstractMinecart.getPos
(double p_38180_, double p_38181_, double p_38182_) MinecartCommandBlock.MinecartCommandBase.getPosition()
AbstractMinecart.getPosOffs
(double p_38097_, double p_38098_, double p_38099_, double p_38100_) protected Vec3
AbstractMinecart.getRelativePortalPosition
(Direction.Axis p_38132_, BlockUtil.FoundRectangle p_38133_) protected Vec3
Boat.getRelativePortalPosition
(Direction.Axis p_38335_, BlockUtil.FoundRectangle p_38336_) ContainerEntity.position()
Modifier and TypeMethodDescriptionstatic boolean
DismountHelper.canDismountTo
(CollisionGetter p_150280_, Vec3 p_150281_, LivingEntity p_150282_, Pose p_150283_) -
Uses of Vec3 in net.minecraft.world.item
Modifier and TypeMethodDescriptionprivate static Vec3
FireworkRocketItem.getEntityPokingOutOfBlockPos
(BlockSource p_338806_, Direction p_338706_) Modifier and TypeMethodDescriptionstatic BrushItem.DustParticlesDelta
BrushItem.DustParticlesDelta.fromDirection
(Vec3 p_273421_, Direction p_272987_) private static double
MaceItem.getKnockbackPower
(Player p_338265_, LivingEntity p_338630_, Vec3 p_338866_) private static org.joml.Vector3f
CrossbowItem.getProjectileShotVector
(LivingEntity p_331584_, Vec3 p_331590_, float p_331104_) private void
BrushItem.spawnDustParticles
(Level p_278327_, BlockHitResult p_278272_, BlockState p_278235_, Vec3 p_278337_, HumanoidArm p_285071_) SpawnEggItem.spawnOffspringFromSpawnEgg
(Player p_43216_, Mob p_43217_, EntityType<? extends Mob> p_43218_, ServerLevel p_43219_, Vec3 p_43220_, ItemStack p_43221_) -
Uses of Vec3 in net.minecraft.world.item.context
-
Uses of Vec3 in net.minecraft.world.level
Modifier and TypeFieldDescriptionprivate final Vec3
ClipBlockStateContext.from
private final Vec3
ClipContext.from
private final Vec3
ClipBlockStateContext.to
private final Vec3
ClipContext.to
Modifier and TypeMethodDescriptionExplosion.center()
ClipBlockStateContext.getFrom()
ClipContext.getFrom()
abstract Vec3
BaseCommandBlock.getPosition()
ClipBlockStateContext.getTo()
ClipContext.getTo()
Modifier and TypeMethodDescriptionCollisionGetter.findFreePosition
(Entity p_151419_, VoxelShape p_151420_, Vec3 p_151421_, double p_151422_, double p_151423_, double p_151424_) Explosion.getHitPlayers()
Modifier and TypeMethodDescriptiondefault BlockHitResult
BlockGetter.clipWithInteractionOverride
(Vec3 p_45559_, Vec3 p_45560_, BlockPos p_45561_, VoxelShape p_45562_, BlockState p_45563_) Level.explode
(Entity p_255653_, DamageSource p_256558_, ExplosionDamageCalculator p_255929_, Vec3 p_256001_, float p_255963_, boolean p_256099_, Level.ExplosionInteraction p_256371_) CollisionGetter.findFreePosition
(Entity p_151419_, VoxelShape p_151420_, Vec3 p_151421_, double p_151422_, double p_151423_, double p_151424_) void
LevelAccessor.gameEvent
(Holder<GameEvent> p_316267_, Vec3 p_220405_, GameEvent.Context p_220406_) default void
static float
Explosion.getSeenPercent
(Vec3 p_46065_, Entity p_46066_) static <T,
C> T BlockGetter.traverseBlocks
(Vec3 p_151362_, Vec3 p_151363_, C p_151364_, BiFunction<C, BlockPos, T> p_151365_, Function<C, T> p_151366_) ModifierConstructorDescriptionClipBlockStateContext
(Vec3 p_151401_, Vec3 p_151402_, Predicate<BlockState> p_151403_) ClipContext
(Vec3 p_45688_, Vec3 p_45689_, ClipContext.Block p_45690_, ClipContext.Fluid p_45691_, Entity p_45692_) ClipContext
(Vec3 p_311916_, Vec3 p_312802_, ClipContext.Block p_312540_, ClipContext.Fluid p_312487_, CollisionContext p_311823_) -
Uses of Vec3 in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionSignBlock.getSignHitboxCenterPosition
(BlockState p_278294_) WallSignBlock.getSignHitboxCenterPosition
(BlockState p_278316_) Modifier and TypeMethodDescriptionBedBlock.findBunkBedStandUpPosition
(EntityType<?> p_49464_, CollisionGetter p_49465_, BlockPos p_49466_, Direction p_49467_, Direction p_49468_) BedBlock.findStandUpPosition
(EntityType<?> p_261547_, CollisionGetter p_261946_, BlockPos p_261614_, Direction p_261648_, float p_261680_) RespawnAnchorBlock.findStandUpPosition
(EntityType<?> p_55840_, CollisionGetter p_55841_, BlockPos p_55842_) RespawnAnchorBlock.findStandUpPosition
(EntityType<?> p_55844_, CollisionGetter p_55845_, BlockPos p_55846_, boolean p_55847_) BedBlock.findStandUpPositionAtOffset
(EntityType<?> p_49470_, CollisionGetter p_49471_, BlockPos p_49472_, int[][] p_49473_, boolean p_49474_) AbstractCandleBlock.getParticleOffsets
(BlockState p_151927_) CandleBlock.getParticleOffsets
(BlockState p_152812_) CandleCakeBlock.getParticleOffsets
(BlockState p_152868_) Modifier and TypeMethodDescriptionprivate static void
AbstractCandleBlock.addParticlesAndSound
(Level p_220688_, Vec3 p_220689_, RandomSource p_220690_) static Position
DispenserBlock.getDispensePosition
(BlockSource p_338419_, double p_338633_, Vec3 p_338798_) private static int
TargetBlock.getRedstoneStrength
(BlockHitResult p_57409_, Vec3 p_57410_) private void
RedStoneWireBlock.spawnParticlesAlongLine
(Level p_221923_, RandomSource p_221924_, BlockPos p_221925_, Vec3 p_221926_, Direction p_221927_, Direction p_221928_, float p_221929_, float p_221930_) -
Uses of Vec3 in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionprivate static Vec3
TheEndGatewayBlockEntity.findExitPortalXZPosTentative
(ServerLevel p_155842_, BlockPos p_155843_) Modifier and TypeMethodDescriptionprivate static void
AbstractFurnaceBlockEntity.createExperience
(ServerLevel p_154999_, Vec3 p_155000_, int p_155001_, float p_155002_) private static LevelChunk
List
<RecipeHolder<?>> AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience
(ServerLevel p_154996_, Vec3 p_154997_) boolean
SculkCatalystBlockEntity.CatalystListener.handleGameEvent
(ServerLevel p_283470_, Holder<GameEvent> p_316661_, GameEvent.Context p_283014_, Vec3 p_282350_) private static boolean
TheEndGatewayBlockEntity.isChunkEmpty
(ServerLevel p_155816_, Vec3 p_155817_) -
Uses of Vec3 in net.minecraft.world.level.block.entity.trialspawner
Modifier and TypeMethodDescriptionTrialSpawnerState.calculatePositionAbove
(Entity p_338791_, ServerLevel p_338807_) TrialSpawnerState.calculatePositionToSpawnSpawner
(ServerLevel p_338436_, BlockPos p_338583_, TrialSpawner p_338226_, TrialSpawnerData p_338461_) Modifier and TypeMethodDescriptionprivate static void
TrialSpawnerState.ParticleEmission.addParticle
(SimpleParticleType p_312519_, Vec3 p_312023_, Level p_311937_) private static boolean
PlayerDetector.inLineOfSight
(Level p_338760_, Vec3 p_338259_, Vec3 p_338810_) private static boolean
TrialSpawner.inLineOfSight
(Level p_312623_, Vec3 p_312390_, Vec3 p_312652_) -
Uses of Vec3 in net.minecraft.world.level.block.entity.vault
Modifier and TypeMethodDescriptionprivate static Vec3
VaultBlockEntity.Client.keyholePos
(BlockPos p_323572_, Direction p_324503_) private static Vec3
VaultBlockEntity.Client.randomPosCenterOfCage
(BlockPos p_323493_, RandomSource p_324481_) private static Vec3
VaultBlockEntity.Client.randomPosInsideCage
(BlockPos p_324080_, RandomSource p_324532_) Modifier and TypeMethodDescriptionprivate static void
VaultBlockEntity.Client.emitConnectionParticlesForPlayer
(Level p_323629_, Vec3 p_324592_, Player p_324428_) -
Uses of Vec3 in net.minecraft.world.level.block.state
Modifier and TypeMethodDescriptionBlockBehaviour.OffsetFunction.evaluate
(BlockState p_273639_, BlockGetter p_273732_, BlockPos p_273779_) BlockBehaviour.BlockStateBase.getOffset
(BlockGetter p_60825_, BlockPos p_60826_) -
Uses of Vec3 in net.minecraft.world.level.gameevent
Modifier and TypeMethodDescriptionBlockPositionSource.getPosition
(Level p_157708_) EntityPositionSource.getPosition
(Level p_157733_) PositionSource.getPosition
(Level p_157870_) EuclideanGameEventListenerRegistry.getPostableListenerPosition
(ServerLevel p_249585_, Vec3 p_251333_, GameEventListener p_251051_) Modifier and TypeMethodDescriptionEuclideanGameEventListenerRegistry.getPostableListenerPosition
(ServerLevel p_249585_, Vec3 p_251333_, GameEventListener p_251051_) boolean
GameEventListener.handleGameEvent
(ServerLevel p_223757_, Holder<GameEvent> p_316739_, GameEvent.Context p_249681_, Vec3 p_251048_) void
GameEventDispatcher.post
(Holder<GameEvent> p_316151_, Vec3 p_250613_, GameEvent.Context p_251777_) void
GameEventListenerRegistry.ListenerVisitor.visit
(GameEventListener p_250787_, Vec3 p_251603_) boolean
EuclideanGameEventListenerRegistry.visitInRangeListeners
(Holder<GameEvent> p_316862_, Vec3 p_251445_, GameEvent.Context p_252317_, GameEventListenerRegistry.ListenerVisitor p_251422_) boolean
GameEventListenerRegistry.visitInRangeListeners
(Holder<GameEvent> p_316434_, Vec3 p_249144_, GameEvent.Context p_249328_, GameEventListenerRegistry.ListenerVisitor p_250123_) ModifierConstructorDescriptionListenerInfo
(Holder<GameEvent> p_316198_, Vec3 p_249118_, GameEvent.Context p_251196_, GameEventListener p_251701_, Vec3 p_248854_) -
Uses of Vec3 in net.minecraft.world.level.gameevent.vibrations
Modifier and TypeFieldDescriptionprivate final Vec3
VibrationInfo.pos
The field for thepos
record component.Modifier and TypeMethodDescriptionVibrationInfo.pos()
Returns the value of thepos
record component.Modifier and TypeMethodDescriptionvoid
VibrationSystem.Listener.forceScheduleVibration
(ServerLevel p_282808_, Holder<GameEvent> p_316321_, GameEvent.Context p_281652_, Vec3 p_281530_) boolean
VibrationSystem.Listener.handleGameEvent
(ServerLevel p_282254_, Holder<GameEvent> p_316513_, GameEvent.Context p_283664_, Vec3 p_282426_) private static boolean
VibrationSystem.Listener.isOccluded
(Level p_283225_, Vec3 p_283328_, Vec3 p_283163_) private void
VibrationSystem.Listener.scheduleVibration
(ServerLevel p_282037_, VibrationSystem.Data p_283229_, Holder<GameEvent> p_316858_, GameEvent.Context p_283344_, Vec3 p_281758_, Vec3 p_282990_) ModifierConstructorDescriptionVibrationInfo
(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
-
Uses of Vec3 in net.minecraft.world.level.levelgen.structure.templatesystem
Modifier and TypeMethodDescriptionstatic Vec3
static Vec3
StructureTemplate.transformedVec3d
(StructurePlaceSettings placementIn, Vec3 pos) Modifier and TypeMethodDescriptionstatic Vec3
static Vec3
StructureTemplate.transformedVec3d
(StructurePlaceSettings placementIn, Vec3 pos) ModifierConstructorDescriptionStructureEntityInfo
(Vec3 p_74687_, BlockPos p_74688_, CompoundTag p_74689_) -
Uses of Vec3 in net.minecraft.world.level.material
Modifier and TypeMethodDescriptionEmptyFluid.getFlow
(BlockGetter p_75918_, BlockPos p_75919_, FluidState p_75920_) FlowingFluid.getFlow
(BlockGetter p_75987_, BlockPos p_75988_, FluidState p_75989_) protected abstract Vec3
Fluid.getFlow
(BlockGetter p_76110_, BlockPos p_76111_, FluidState p_76112_) FluidState.getFlow
(BlockGetter p_76180_, BlockPos p_76181_) -
Uses of Vec3 in net.minecraft.world.level.pathfinder
Modifier and TypeMethodDescriptionNode.asVec3()
Path.getEntityPosAtNode
(Entity p_77383_, int p_77384_) Path.getNextEntityPos
(Entity p_77381_) -
Uses of Vec3 in net.minecraft.world.level.portal
Modifier and TypeMethodDescriptionprivate static Vec3
PortalShape.findCollisionFreePosition
(Vec3 p_260315_, ServerLevel p_259704_, Entity p_259626_, EntityDimensions p_259816_) static Vec3
PortalShape.getRelativePosition
(BlockUtil.FoundRectangle p_77739_, Direction.Axis p_77740_, Vec3 p_77741_, EntityDimensions p_77742_) Modifier and TypeMethodDescriptionstatic PortalInfo
PortalShape.createPortalInfo
(ServerLevel p_259301_, BlockUtil.FoundRectangle p_259931_, Direction.Axis p_259901_, Vec3 p_259630_, Entity p_259166_, Vec3 p_260043_, float p_259853_, float p_259667_) private static Vec3
PortalShape.findCollisionFreePosition
(Vec3 p_260315_, ServerLevel p_259704_, Entity p_259626_, EntityDimensions p_259816_) static Vec3
PortalShape.getRelativePosition
(BlockUtil.FoundRectangle p_77739_, Direction.Axis p_77740_, Vec3 p_77741_, EntityDimensions p_77742_) ModifierConstructorDescriptionPortalInfo
(Vec3 p_77681_, Vec3 p_77682_, float p_77683_, float p_77684_) -
Uses of Vec3 in net.minecraft.world.level.storage.loot.parameters
-
Uses of Vec3 in net.minecraft.world.phys
Modifier and TypeFieldDescriptionprotected final Vec3
HitResult.location
static final Vec3
Vec3.ZERO
Modifier and TypeMethodDescriptionVec3.add
(double p_82521_, double p_82522_, double p_82523_) Vec3.align
(EnumSet<Direction.Axis> p_82518_) static Vec3
Vec3.atBottomCenterOf
(Vec3i p_82540_) static Vec3
Vec3.atCenterOf
(Vec3i p_82513_) static Vec3
Vec3.atLowerCornerOf
(Vec3i p_82529_) static Vec3
Vec3.atLowerCornerWithOffset
(Vec3i p_272866_, double p_273680_, double p_273668_, double p_273687_) static Vec3
Vec3.directionFromRotation
(float p_82499_, float p_82500_) static Vec3
Vec3.directionFromRotation
(Vec2 p_82504_) static Vec3
Vec3.fromRGB24
(int p_82502_) AABB.getCenter()
HitResult.getLocation()
Vec3.multiply
(double p_82543_, double p_82544_, double p_82545_) Vec3.normalize()
Vec3.offsetRandom
(RandomSource p_272810_, float p_273473_) Vec3.reverse()
Vec3.scale
(double p_82491_) Vec3.subtract
(double p_82493_, double p_82494_, double p_82495_) static Vec3
Vec3.upFromBottomCenterOf
(Vec3i p_82515_, double p_82516_) Vec3.with
(Direction.Axis p_193104_, double p_193105_) Vec3.xRot
(float p_82497_) Vec3.yRot
(float p_82525_) Vec3.zRot
(float p_82536_) Modifier and TypeMethodDescriptionstatic BlockHitResult
boolean
Vec3.closerThan
(Vec3 p_312866_, double p_312928_, double p_312788_) boolean
double
Vec3.distanceTo
(Vec3 p_82555_) double
AABB.distanceToSqr
(Vec3 p_273572_) double
Vec3.distanceToSqr
(Vec3 p_82558_) double
AABB.expandTowards
(Vec3 p_82370_) private static Direction
AABB.getDirection
(AABB p_82326_, Vec3 p_82327_, double[] p_82328_, Direction p_82329_, double p_82330_, double p_82331_, double p_82332_) boolean
AABB.intersects
(Vec3 p_82336_, Vec3 p_82337_) static BlockHitResult
static AABB
static AABB
AABB.unitCubeFromLowerCorner
(Vec3 p_82334_) ModifierConstructorDescriptionprivate
BlockHitResult
(boolean p_82420_, Vec3 p_82421_, Direction p_82422_, BlockPos p_82423_, boolean p_82424_) BlockHitResult
(Vec3 p_82415_, Direction p_82416_, BlockPos p_82417_, boolean p_82418_) EntityHitResult
(Entity p_82441_, Vec3 p_82442_) protected
-
Uses of Vec3 in net.minecraft.world.phys.shapes
-
Uses of Vec3 in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionprivate static void
BlockEntityRenderBoundsDebugRenderer.drawRenderBoundingBox
(PoseStack poseStack, VertexConsumer consumer, Vec3 camera, BlockEntity be) ModifierConstructorDescriptionClientCommandSourceStack
(CommandSource source, Vec3 position, Vec2 rotation, int permission, String plainTextName, Component displayName, Entity executing) -
Uses of Vec3 in net.neoforged.neoforge.common
Modifier and TypeFieldDescriptionprivate static final Map
<LevelReader, Map<ChunkPos, ChunkTicketManager<Vec3>>> FarmlandWaterManager.customWaterHandler
Modifier and TypeMethodDescriptionstatic <T extends SimpleTicket<Vec3>>
TFarmlandWaterManager.addCustomTicket
(Level level, T ticket, ChunkPos masterChunk, ChunkPos... additionalChunks) Adds a custom ticket.Modifier and TypeMethodDescriptionprivate static ChunkTicketManager
<Vec3> FarmlandWaterManager.getTicketManager
(ChunkPos pos, LevelReader level) Modifier 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
Modifier and TypeMethodDescriptionboolean
PiglinNeutralArmorEntityPredicate.matches
(Entity entity, ServerLevel level, @Nullable Vec3 position) -
Uses of Vec3 in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptionIBlockExtension.getRespawnPosition
(BlockState state, EntityType<?> type, LevelReader levelReader, BlockPos pos, float orientation) Returns the position that the entity is moved to upon respawning at this block.IBlockStateExtension.getRespawnPosition
(EntityType<?> type, LevelReader level, BlockPos pos, float orientation) Returns the position that the entity is moved to upon respawning at this block.Modifier and TypeMethodDescriptiondefault BlockState
IBlockExtension.getStateAtViewpoint
(BlockState state, BlockGetter level, BlockPos pos, Vec3 viewpoint) Used to determine the state 'viewed' by an entity (seeCamera.getBlockAtCamera()
).default BlockState
IBlockStateExtension.getStateAtViewpoint
(BlockGetter level, BlockPos pos, Vec3 viewpoint) Used to determine the state 'viewed' by an entity (seeCamera.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
-
Uses of Vec3 in net.neoforged.neoforge.debug.chat
ModifierConstructorDescriptionErrorCatchingStack
(CommandSource p_81302_, Vec3 p_81303_, Vec2 p_81304_, ServerLevel p_81305_, int p_81306_, String p_81307_, Component p_81308_, MinecraftServer p_81309_, @Nullable Entity p_81310_) -
Uses of Vec3 in net.neoforged.neoforge.debug.client
-
Uses of Vec3 in net.neoforged.neoforge.event
Modifier and TypeFieldDescriptionprivate final Vec3
PlayLevelSoundEvent.AtPosition.position
private final Vec3
VanillaGameEvent.position
Modifier and TypeMethodDescriptionVanillaGameEvent.getEventPosition()
static Vec3
EventHooks.getExplosionKnockback
(Level level, Explosion explosion, Entity entity, Vec3 initialVelocity) 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.Modifier and TypeMethodDescriptionstatic PlayerRespawnPositionEvent
EventHooks.firePlayerRespawnPositionEvent
(ServerPlayer player, ServerLevel respawnLevel, float respawnAngle, @Nullable Vec3 respawnPosition, boolean fromEndFight) Called byPlayerList.respawn(ServerPlayer, boolean)
before creating the newServerPlayer
to fire thePlayerRespawnPositionEvent
static Vec3
EventHooks.getExplosionKnockback
(Level level, Explosion explosion, Entity entity, Vec3 initialVelocity) To be called when an explosion has calculated the knockback velocity but has not yet added the knockback to the entity caught in blast.ModifierConstructorDescriptionAtPosition
(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
-
Uses of Vec3 in net.neoforged.neoforge.event.entity.player
Modifier and TypeFieldDescriptionprivate final Vec3
PlayerInteractEvent.EntityInteractSpecific.localPos
private final @Nullable Vec3
PlayerRespawnPositionEvent.originalRespawnPosition
private @Nullable Vec3
PlayerRespawnPositionEvent.respawnPosition
Modifier and TypeMethodDescriptionPlayerInteractEvent.EntityInteractSpecific.getLocalPos()
Returns the local interaction position.@Nullable Vec3
PlayerRespawnPositionEvent.getOriginalRespawnPosition()
@Nullable Vec3
PlayerRespawnPositionEvent.getRespawnPosition()
Modifier and TypeMethodDescriptionvoid
PlayerRespawnPositionEvent.setRespawnPosition
(@Nullable Vec3 respawnPosition) Set the player's respawn position within the respawn level.ModifierConstructorDescriptionEntityInteractSpecific
(Player player, InteractionHand hand, Entity target, Vec3 localPos) PlayerRespawnPositionEvent
(ServerPlayer player, ServerLevel respawnLevel, float respawnAngle, @Nullable Vec3 respawnPosition, boolean fromEndFight) -
Uses of Vec3 in net.neoforged.neoforge.event.level
Modifier and TypeMethodDescriptionExplosionKnockbackEvent.getKnockbackVelocity()
return the explosion knockback velocity to apply to entity.Modifier and TypeMethodDescriptionvoid
ExplosionKnockbackEvent.setKnockbackVelocity
(Vec3 newKnockbackVelocity) Sets the explosion knockback velocity to add to the entity's existing velocity.ModifierConstructorDescriptionExplosionKnockbackEvent
(Level level, Explosion explosion, Entity entity, Vec3 knockbackVelocity) -
Uses of Vec3 in net.neoforged.neoforge.event.village
ModifierConstructorDescriptionVillageSiegeEvent
(VillageSiege siege, Level level, Player player, Vec3 attemptedSpawnPos) -
Uses of Vec3 in net.neoforged.neoforge.fluids
Modifier and TypeMethodDescriptionboolean
FluidType.move
(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.