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 Vec3ListenerTransform.forwardThe field for theforwardrecord component.private final Vec3ListenerTransform.positionThe field for thepositionrecord component.private final Vec3ListenerTransform.upThe field for theuprecord component.Methods in com.mojang.blaze3d.audio that return Vec3Modifier and TypeMethodDescriptionListenerTransform.forward()Returns the value of theforwardrecord component.ListenerTransform.position()Returns the value of thepositionrecord component.ListenerTransform.right()ListenerTransform.up()Returns the value of theuprecord component.Methods in com.mojang.blaze3d.audio with parameters of type Vec3Modifier and TypeMethodDescriptionvoidChannel.setSelfPosition(Vec3 source) 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 aListenerTransformrecord class. -
Uses of Vec3 in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type Vec3Modifier and TypeMethodDescriptionbooleanDamageSourcePredicate.matches(ServerLevel level, Vec3 position, DamageSource source) booleanDistanceTrigger.TriggerInstance.matches(ServerLevel level, Vec3 startPosition, Vec3 currentPosition) booleanEntityPredicate.matches(ServerLevel level, Vec3 position, Entity entity) booleanEntitySubPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanEntitySubPredicates.EntityHolderVariantPredicateType.Instance.matches(Entity entity, ServerLevel level, Vec3 position) booleanEntitySubPredicates.EntityVariantPredicateType.Instance.matches(Entity entity, ServerLevel level, Vec3 position) booleanFallAfterExplosionTrigger.TriggerInstance.matches(ServerLevel level, Vec3 startPosition, Vec3 endPosition, LootContext context) booleanFishingHookPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanLevitationTrigger.TriggerInstance.matches(ServerPlayer player, Vec3 startPos, int duration) booleanLightningBoltPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanPlayerPredicate.matches(Entity p_entity, ServerLevel level, Vec3 position) booleanRaiderPredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanSlimePredicate.matches(Entity entity, ServerLevel level, Vec3 position) booleanTargetBlockTrigger.TriggerInstance.matches(LootContext context, Vec3 vector, int signalStrength) voidDistanceTrigger.trigger(ServerPlayer player, Vec3 position) voidFallAfterExplosionTrigger.trigger(ServerPlayer player, Vec3 pos, Entity entity) voidLevitationTrigger.trigger(ServerPlayer player, Vec3 startPos, int duration) voidTargetBlockTrigger.trigger(ServerPlayer player, Entity projectile, Vec3 vector, int signalStrength) -
Uses of Vec3 in net.minecraft.client
Fields in net.minecraft.client declared as Vec3Modifier and TypeFieldDescription(package private) final Vec3Camera.NearPlane.forwardprivate final Vec3Camera.NearPlane.leftprivate Vec3Camera.positionprivate final Vec3Camera.NearPlane.upMethods in net.minecraft.client that return Vec3Modifier and TypeMethodDescriptionCamera.NearPlane.getBottomLeft()Camera.NearPlane.getBottomRight()Camera.NearPlane.getPointOnPlane(float leftScale, float upScale) Camera.getPosition()Camera.NearPlane.getTopLeft()Camera.NearPlane.getTopRight()Methods in net.minecraft.client with parameters of type Vec3Modifier and TypeMethodDescriptionprivate voidKeyboardHandler.copyCreateEntityCommand(ResourceLocation entityId, Vec3 pos, CompoundTag compound) protected voidCamera.setPosition(Vec3 pos) 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 Vec3SubtitleOverlay.SoundPlayedAt.locationThe field for thelocationrecord component.Methods in net.minecraft.client.gui.components that return Vec3Modifier and TypeMethodDescriptionSubtitleOverlay.SoundPlayedAt.location()Returns the value of thelocationrecord component.Methods in net.minecraft.client.gui.components with parameters of type Vec3Modifier and TypeMethodDescriptionSubtitleOverlay.Subtitle.getClosest(Vec3 location) booleanSubtitleOverlay.Subtitle.isAudibleFrom(Vec3 location) voidConstructors in net.minecraft.client.gui.components with parameters of type Vec3ModifierConstructorDescription(package private)SoundPlayedAt(Vec3 location, long time) Creates an instance of aSoundPlayedAtrecord class. -
Uses of Vec3 in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer that return Vec3Modifier and TypeMethodDescriptionClientLevel.getCloudColor(float partialTick) ClientLevel.getSkyColor(Vec3 pos, float partialTick) Methods in net.minecraft.client.multiplayer with parameters of type Vec3Modifier and TypeMethodDescriptionvoidClientLevel.gameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) ClientLevel.getSkyColor(Vec3 pos, float partialTick) voidClientLevel.syncBlockState(BlockPos pos, BlockState state, Vec3 playerPos) -
Uses of Vec3 in net.minecraft.client.multiplayer.prediction
Fields in net.minecraft.client.multiplayer.prediction declared as Vec3Modifier and TypeFieldDescription(package private) final Vec3BlockStatePredictionHandler.ServerVerifiedState.playerPosConstructors in net.minecraft.client.multiplayer.prediction with parameters of type Vec3ModifierConstructorDescription(package private)ServerVerifiedState(int sequence, BlockState blockState, Vec3 playerPos) -
Uses of Vec3 in net.minecraft.client.particle
Methods in net.minecraft.client.particle that return Vec3Constructors in net.minecraft.client.particle with parameters of type Vec3ModifierConstructorDescriptionprivateItemPickupParticle(EntityRenderDispatcher entityRenderDispatcher, RenderBuffers buffers, ClientLevel level, Entity itemEntity, Entity target, Vec3 speedVector) privateTrackingEmitter(ClientLevel level, Entity entity, ParticleOptions particleType, int lifetime, Vec3 speedVector) -
Uses of Vec3 in net.minecraft.client.player
Fields in net.minecraft.client.player declared as Vec3Modifier and TypeFieldDescriptionprotected Vec3AbstractClientPlayer.deltaMovementOnPreviousTickprivate Vec3RemotePlayer.lerpDeltaMovementMethods in net.minecraft.client.player that return Vec3Modifier and TypeMethodDescriptionAbstractClientPlayer.getDeltaMovementLerped(float patialTick) LocalPlayer.getRopeHoldPosition(float partialTick) Methods in net.minecraft.client.player with parameters of type Vec3Modifier and TypeMethodDescriptionprotected booleanLocalPlayer.isHorizontalCollisionMinor(Vec3 deltaMovement) void -
Uses of Vec3 in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer declared as Vec3Methods in net.minecraft.client.renderer that return Vec3Modifier and TypeMethodDescriptionDimensionSpecialEffects.EndEffects.getBrightnessDependentFogColor(Vec3 p_108894_, float p_108895_) abstract Vec3DimensionSpecialEffects.getBrightnessDependentFogColor(Vec3 fogColor, float brightness) DimensionSpecialEffects.NetherEffects.getBrightnessDependentFogColor(Vec3 p_108901_, float p_108902_) DimensionSpecialEffects.OverworldEffects.getBrightnessDependentFogColor(Vec3 p_108908_, float p_108909_) private static Vec3LevelRenderer.mixColor(float hue) private static Vec3LevelRenderer.shiftHue(float red, float green, float blue, float hue) Methods in net.minecraft.client.renderer with parameters of type Vec3Modifier and TypeMethodDescriptionprivate MeshDataLevelRenderer.buildClouds(Tesselator tesselator, double x, double y, double z, Vec3 cloudColor) private static HitResultGameRenderer.filterHitResult(HitResult hitResult, Vec3 pos, double blockInteractionRange) DimensionSpecialEffects.EndEffects.getBrightnessDependentFogColor(Vec3 p_108894_, float p_108895_) abstract Vec3DimensionSpecialEffects.getBrightnessDependentFogColor(Vec3 fogColor, float brightness) DimensionSpecialEffects.NetherEffects.getBrightnessDependentFogColor(Vec3 p_108901_, float p_108902_) DimensionSpecialEffects.OverworldEffects.getBrightnessDependentFogColor(Vec3 p_108908_, float p_108909_) voidLevelRenderer.prepareCullFrustum(Vec3 cameraPosition, org.joml.Matrix4f frustumMatrix, org.joml.Matrix4f projectionMatrix) private voidSectionOcclusionGraph.runPartialUpdate(boolean smartCull, Frustum p_frustum, List<SectionRenderDispatcher.RenderSection> sections, Vec3 cameraPosition) private voidSectionOcclusionGraph.runUpdates(SectionOcclusionGraph.GraphStorage graphStorage, Vec3 cameraPosition, Queue<SectionOcclusionGraph.Node> nodeQueue, boolean smartCull, Consumer<SectionRenderDispatcher.RenderSection> sections) private voidSectionOcclusionGraph.scheduleFullUpdate(boolean smartCull, Camera camera, Vec3 cameraPosition) -
Uses of Vec3 in net.minecraft.client.renderer.blockentity
Fields in net.minecraft.client.renderer.blockentity declared as Vec3Modifier and TypeFieldDescriptionprivate static final Vec3HangingSignRenderer.TEXT_OFFSETprivate static final Vec3SignRenderer.TEXT_OFFSETMethods in net.minecraft.client.renderer.blockentity that return Vec3Modifier and TypeMethodDescription(package private) Vec3HangingSignRenderer.getTextOffset()(package private) Vec3SignRenderer.getTextOffset()Methods in net.minecraft.client.renderer.blockentity with parameters of type Vec3Modifier and TypeMethodDescriptionbooleanBeaconRenderer.shouldRender(BeaconBlockEntity blockEntity, Vec3 cameraPos) default booleanBlockEntityRenderer.shouldRender(T blockEntity, Vec3 cameraPos) private voidSignRenderer.translateSignText(PoseStack poseStack, boolean isFrontText, Vec3 offset) -
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 that return Vec3Methods in net.minecraft.client.renderer.chunk with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.client.renderer.debug
Fields in net.minecraft.client.renderer.debug declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3GameEventListenerRenderer.TrackedGameEvent.positionThe field for thepositionrecord component.Methods in net.minecraft.client.renderer.debug that return Vec3Modifier and TypeMethodDescriptionGameEventListenerRenderer.TrackedGameEvent.position()Returns the value of thepositionrecord component.Methods in net.minecraft.client.renderer.debug that return types with arguments of type Vec3Modifier and TypeMethodDescriptionGameEventListenerRenderer.TrackedListener.getPosition(Level level) Methods in net.minecraft.client.renderer.debug with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidBreezeDebugRenderer.drawCircle(org.joml.Matrix4f pose, double xOffset, double yOffset, double zOffset, VertexConsumer consumer, Vec3 pos, float radius, int color) private static voidBreezeDebugRenderer.drawCircleVertex(int index, org.joml.Matrix4f pose, double xOffset, double yOffset, double zOffset, VertexConsumer consumer, Vec3 circleCenter, float radius, int color) private static voidBreezeDebugRenderer.drawLine(PoseStack poseStack, MultiBufferSource buffer, double xOffset, double yOffset, double zOffset, Vec3 fromPos, Vec3 toPos, int color) booleanGameEventListenerRenderer.TrackedListener.handleGameEvent(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) booleanvoidGameEventListenerRenderer.trackGameEvent(ResourceKey<GameEvent> gameEvent, Vec3 position) 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 aTrackedGameEventrecord class. -
Uses of Vec3 in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity that return Vec3Modifier and TypeMethodDescriptionprivate Vec3FishingHookRenderer.getPlayerHandPos(Player player, float p_340872_, float partialTick) private Vec3GuardianRenderer.getPosition(LivingEntity livingEntity, double yOffset, float partialTick) EndermanRenderer.getRenderOffset(EnderMan entity, float partialTicks) EntityRenderer.getRenderOffset(T entity, float partialTicks) ItemFrameRenderer.getRenderOffset(T entity, float partialTicks) ShulkerRenderer.getRenderOffset(Shulker entity, float partialTicks) Methods in net.minecraft.client.renderer.entity with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidEntityRenderDispatcher.renderVector(PoseStack poseStack, VertexConsumer buffer, org.joml.Vector3f startPos, Vec3 vector, int color) -
Uses of Vec3 in net.minecraft.client.renderer.entity.player
Methods in net.minecraft.client.renderer.entity.player that return Vec3Modifier and TypeMethodDescriptionPlayerRenderer.getRenderOffset(AbstractClientPlayer entity, float partialTicks) -
Uses of Vec3 in net.minecraft.client.resources.sounds
Methods in net.minecraft.client.resources.sounds with parameters of type Vec3Modifier and TypeMethodDescriptionstatic SimpleSoundInstanceSimpleSoundInstance.forJukeboxSong(SoundEvent sound, Vec3 pos) -
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 source, Vec3 worldPosition, Vec2 rotation, ServerLevel level, int permissionLevel, String textName, Component displayName, MinecraftServer server, Entity entity) protectedCommandSourceStack(CommandSource source, Vec3 worldPosition, Vec2 rotation, ServerLevel level, int permissionLevel, String textName, Component displayName, MinecraftServer server, Entity entity, boolean silent, CommandResultCallback resultCallback, EntityAnchorArgument.Anchor anchor, CommandSigningContext signingContext, TaskChainer chatMessageChainer) -
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.transformprivate final BiFunction<Vec3, Entity, Vec3> EntityAnchorArgument.Anchor.transformMethods in net.minecraft.commands.arguments that return Vec3Modifier and TypeMethodDescriptionEntityAnchorArgument.Anchor.apply(CommandSourceStack source) 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 source) LocalCoordinates.getPosition(CommandSourceStack source) WorldCoordinates.getPosition(CommandSourceStack source) static Vec3Vec3Argument.getVec3(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
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.orderprivate BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.orderstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelector.ORDER_ARBITRARYstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_FURTHESTstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_NEARESTstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_RANDOMEntitySelector.positionEntitySelector.positionMethods 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 AABBEntitySelector.getAbsoluteAabb(Vec3 pos) EntitySelector.getPredicate(Vec3 pos, AABB box, FeatureFlagSet enabledFeatures) EntitySelector.sortAndLimit(Vec3 pos, List<T> entities) Method parameters in net.minecraft.commands.arguments.selector with type arguments of type Vec3Modifier and TypeMethodDescriptionvoidEntitySelectorParser.setOrder(BiConsumer<Vec3, List<? extends Entity>> order) Constructor parameters in net.minecraft.commands.arguments.selector with type arguments of type Vec3ModifierConstructorDescriptionEntitySelector(int maxResults, boolean includesEntities, boolean worldLimited, List<Predicate<Entity>> contextFreePredicates, MinMaxBounds.Doubles range, Function<Vec3, Vec3> position, AABB aabb, BiConsumer<Vec3, List<? extends Entity>> order, boolean currentEntity, String playerName, UUID entityUUID, EntityType<?> type, boolean usesSelector) EntitySelector(int maxResults, boolean includesEntities, boolean worldLimited, List<Predicate<Entity>> contextFreePredicates, MinMaxBounds.Doubles range, Function<Vec3, Vec3> position, AABB aabb, BiConsumer<Vec3, List<? extends Entity>> order, boolean currentEntity, String playerName, UUID entityUUID, EntityType<?> type, boolean usesSelector) EntitySelector(int maxResults, boolean includesEntities, boolean worldLimited, List<Predicate<Entity>> contextFreePredicates, MinMaxBounds.Doubles range, Function<Vec3, Vec3> position, AABB aabb, BiConsumer<Vec3, List<? extends Entity>> order, boolean currentEntity, String playerName, UUID entityUUID, EntityType<?> type, boolean usesSelector) -
Uses of Vec3 in net.minecraft.core
Methods in net.minecraft.core that return Vec3Modifier and TypeMethodDescriptionBlockPos.clampLocationWithin(Vec3 pos) BlockPos.getBottomCenter()BlockPos.getCenter()Methods in net.minecraft.core with parameters of type Vec3Modifier and TypeMethodDescriptionBlockPos.clampLocationWithin(Vec3 pos) static DirectionDirection.getNearest(Vec3 ois) -
Uses of Vec3 in net.minecraft.core.dispenser
Methods in net.minecraft.core.dispenser that return Vec3 -
Uses of Vec3 in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework that return Vec3Modifier and TypeMethodDescriptionGameTestHelper.absoluteVec(Vec3 relativeVec3) GameTestHelper.relativeVec(Vec3 absoluteVec3) Methods in net.minecraft.gametest.framework with parameters of type Vec3Modifier and TypeMethodDescriptionGameTestHelper.absoluteVec(Vec3 relativeVec3) voidGameTestHelper.assertEntityNotPresent(EntityType<?> type, Vec3 from, Vec3 to) voidGameTestHelper.assertEntityPresent(EntityType<?> entityType, Vec3 startPos, Vec3 endPos) GameTestHelper.findEntities(EntityType<E> type, Vec3 pos, double radius) GameTestHelper.relativeVec(Vec3 absoluteVec3) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> type, Vec3 pos) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill(EntityType<E> type, Vec3 pos) -
Uses of Vec3 in net.minecraft.network
Methods in net.minecraft.network that return Vec3Methods 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 Vec3BeeDebugPayload.BeeInfo.posThe field for theposrecord component.private final Vec3BrainDebugPayload.BrainDump.posThe field for theposrecord component.private final Vec3GameEventDebugPayload.posThe field for theposrecord component.Methods in net.minecraft.network.protocol.common.custom that return Vec3Modifier and TypeMethodDescriptionBeeDebugPayload.BeeInfo.pos()Returns the value of theposrecord component.BrainDebugPayload.BrainDump.pos()Returns the value of theposrecord component.GameEventDebugPayload.pos()Returns the value of theposrecord 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 aBeeInforecord 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 aBrainDumprecord class.GameEventDebugPayload(ResourceKey<GameEvent> gameEventType, Vec3 pos) Creates an instance of aGameEventDebugPayloadrecord class. -
Uses of Vec3 in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3VecDeltaCodec.baseprivate final Vec3ServerboundInteractPacket.InteractionAtLocationAction.locationFields in net.minecraft.network.protocol.game with type parameters of type Vec3Modifier and TypeFieldDescriptionClientboundDamageEventPacket.sourcePositionThe field for thesourcePositionrecord component.Methods in net.minecraft.network.protocol.game that return Vec3Modifier and TypeMethodDescriptionVecDeltaCodec.decode(long x, long y, long z) VecDeltaCodec.getBase()ClientboundPlayerLookAtPacket.getPosition(Level level) Methods in net.minecraft.network.protocol.game that return types with arguments of type Vec3Modifier and TypeMethodDescriptionClientboundDamageEventPacket.sourcePosition()Returns the value of thesourcePositionrecord component.Methods in net.minecraft.network.protocol.game with parameters of type Vec3Modifier and TypeMethodDescriptionstatic ServerboundInteractPacketServerboundInteractPacket.createInteractionPacket(Entity entity, boolean usingSecondaryAction, InteractionHand hand, Vec3 interactionLocation) longlonglongvoidServerboundInteractPacket.Handler.onInteraction(InteractionHand hand, Vec3 interactionLocation) static voidDebugPackets.sendGameEventInfo(Level level, Holder<GameEvent> gameEvent, Vec3 pos) voidConstructors in net.minecraft.network.protocol.game with parameters of type Vec3ModifierConstructorDescriptionClientboundAddEntityPacket(int id, UUID uuid, double x, double y, double z, float xRot, float yRot, EntityType<?> type, int data, Vec3 deltaMovement, double yHeadRot) ClientboundExplodePacket(double x, double y, double z, float power, List<BlockPos> toBlow, Vec3 knockback, Explosion.BlockInteraction blockInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, Holder<SoundEvent> explosionSound) ClientboundSetEntityMotionPacket(int id, Vec3 deltaMovement) (package private)InteractionAtLocationAction(InteractionHand hand, Vec3 location) 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 aClientboundDamageEventPacketrecord class. -
Uses of Vec3 in net.minecraft.server.chase
Fields in net.minecraft.server.chase declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3ChaseClient.TeleportTarget.posThe field for theposrecord component.Methods in net.minecraft.server.chase that return Vec3Modifier and TypeMethodDescriptionChaseClient.TeleportTarget.pos()Returns the value of theposrecord 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 aTeleportTargetrecord class. -
Uses of Vec3 in net.minecraft.server.commands
Fields in net.minecraft.server.commands declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3TeleportCommand.LookAtPosition.positionThe field for thepositionrecord component.Methods in net.minecraft.server.commands that return Vec3Modifier and TypeMethodDescriptionTeleportCommand.LookAtPosition.position()Returns the value of thepositionrecord component.Methods in net.minecraft.server.commands with parameters of type Vec3Modifier and TypeMethodDescriptionstatic EntitySummonCommand.createEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag tag, boolean randomizeProperties) private static intLootCommand.dropInWorld(CommandSourceStack source, Vec3 pos, List<ItemStack> items, LootCommand.Callback callback) private static intPlaySoundCommand.playSound(CommandSourceStack source, Collection<ServerPlayer> targets, ResourceLocation sound, SoundSource category, Vec3 pos, float volume, float pitch, float minVolume) private static intParticleCommand.sendParticles(CommandSourceStack source, ParticleOptions particleData, Vec3 pos, Vec3 delta, float speed, int count, boolean force, Collection<ServerPlayer> viewers) private static intSummonCommand.spawnEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag tag, boolean randomizeProperties) Constructors in net.minecraft.server.commands with parameters of type Vec3ModifierConstructorDescription(package private)LookAtPosition(Vec3 position) Creates an instance of aLookAtPositionrecord class. -
Uses of Vec3 in net.minecraft.server.level
Fields in net.minecraft.server.level declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3ServerPlayer.enteredLavaOnVehiclePositionprivate Vec3ServerPlayer.enteredNetherPositionprivate Vec3ServerPlayer.lastKnownClientMovementprivate Vec3ServerEntity.lastSentMovementprivate Vec3ServerPlayer.levitationStartPosprivate final Vec3ServerPlayer.RespawnPosAngle.positionThe field for thepositionrecord component.private Vec3ServerPlayer.startingToFallPositionMethods in net.minecraft.server.level that return Vec3Modifier and TypeMethodDescriptionServerPlayer.getKnownMovement()ServerEntity.getLastSentMovement()ServerEntity.getPositionBase()ServerPlayer.RespawnPosAngle.position()Returns the value of thepositionrecord component.Methods in net.minecraft.server.level with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static floatServerPlayer.RespawnPosAngle.calculateLookAtYaw(Vec3 position, BlockPos towardsPos) voidServerLevel.gameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) voidWorldGenRegion.gameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) voidServerPlayer.lookAt(EntityAnchorArgument.Anchor anchor, Vec3 target) static ServerPlayer.RespawnPosAnglevoidServerPlayer.setKnownMovement(Vec3 knownMovement) voidConstructors in net.minecraft.server.level with parameters of type Vec3ModifierConstructorDescriptionRespawnPosAngle(Vec3 position, float yaw) Creates an instance of aRespawnPosAnglerecord class. -
Uses of Vec3 in net.minecraft.server.network
Fields in net.minecraft.server.network declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3ServerGamePacketListenerImpl.awaitingPositionFromClient -
Uses of Vec3 in net.minecraft.util
Methods in net.minecraft.util that return Vec3Modifier and TypeMethodDescriptionCubicSampler.Vec3Fetcher.fetch(int x, int y, int z) static Vec3CubicSampler.gaussianSampleVec3(Vec3 vec, CubicSampler.Vec3Fetcher fetcher) private static Vec3ParticleUtils.getRandomSpeedRanges(RandomSource random) Methods in net.minecraft.util with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3CubicSampler.gaussianSampleVec3(Vec3 vec, CubicSampler.Vec3Fetcher fetcher) static booleanMth.rayIntersectsAABB(Vec3 start, Vec3 end, AABB boundingBox) static voidParticleUtils.spawnParticleOnFace(Level level, BlockPos pos, Direction direction, ParticleOptions particle, Vec3 speed, double spread) Method parameters in net.minecraft.util with type arguments of type Vec3Modifier and TypeMethodDescriptionstatic voidParticleUtils.spawnParticlesOnBlockFace(Level level, BlockPos pos, ParticleOptions particle, IntProvider count, Direction direction, Supplier<Vec3> speedSupplier, double spread) -
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> type, Entity directEntity, Entity causingEntity, Vec3 damageSourcePosition) DamageSource(Holder<DamageType> type, Vec3 damageSourcePosition) -
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 level, Entity source, Vec3 pos, double radius, MobEffectInstance effect, int duration) -
Uses of Vec3 in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3Entity.deltaMovementprivate Vec3Entity.positionprotected Vec3Entity.stuckSpeedMultiplierFields in net.minecraft.world.entity with type parameters of type Vec3Modifier and TypeFieldDescriptionprivate final Map<EntityAttachment, List<Vec3>> EntityAttachments.attachmentsprivate final Map<EntityAttachment, List<Vec3>> EntityAttachments.Builder.attachmentsEntityAttachment.Fallback.ZEROMethods in net.minecraft.world.entity that return Vec3Modifier and TypeMethodDescriptionprotected final Vec3Entity.calculateUpVector(float xRot, float yRot) final Vec3Entity.calculateViewVector(float xRot, float yRot) Calculates the view vector using the X and Y rotation of an entity.private Vec3Given a motion vector, return an updated vector that takes into account restrictions such as collisions (from all directions) and step-up from stepHeightstatic Vec3Entity.collideBoundingBox(Entity entity, Vec3 vec, AABB collisionBox, Level level, List<VoxelShape> potentialHits) private static Vec3Entity.collideWithShapes(Vec3 deltaMovement, AABB entityBB, List<VoxelShape> shapes) EntityAttachments.get(EntityAttachment attachment, int index, float yRot) EntityAttachments.getClamped(EntityAttachment attachment, int index, float yRot) protected static Vec3Entity.getCollisionHorizontalEscapeVector(double vehicleWidth, double passengerWidth, float yRot) protected static Vec3Entity.getDefaultPassengerAttachmentPoint(Entity vehicle, Entity passenger, EntityAttachments attachments) Entity.getDeltaMovement()Entity.getDismountLocationForPassenger(LivingEntity passenger) final Vec3Entity.getEyePosition()final Vec3Entity.getEyePosition(float partialTicks) LivingEntity.getFluidFallingAdjustedMovement(double gravity, boolean isFalling, Vec3 deltaMovement) Entity.getForward()Entity.getHandHoldingItemAngle(Item item) private static Vec3Entity.getInputVector(Vec3 relative, float motionScaler, float facing) Entity.getKnownMovement()protected Vec3Entity.getLeashOffset()Entity.getLeashOffset(float partialTick) Entity.getLightProbePosition(float partialTicks) Entity.getLookAngle()EntityAttachments.getNullable(EntityAttachment attachment, int index, float yRot) protected Vec3Entity.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) Entity.getPassengerRidingPosition(Entity entity) LivingEntity.getPassengerRidingPosition(Entity entity) final Vec3Entity.getPosition(float partialTicks) Entity.getRelativePortalPosition(Direction.Axis axis, BlockUtil.FoundRectangle portal) LivingEntity.getRelativePortalPosition(Direction.Axis axis, BlockUtil.FoundRectangle portal) protected Vec3LivingEntity.getRiddenInput(Player player, Vec3 travelVector) Entity.getRopeHoldPosition(float partialTicks) final Vec3Entity.getUpVector(float partialTicks) Entity.getVehicleAttachmentPoint(Entity entity) final Vec3Entity.getViewVector(float partialTicks) Gets the interpolated look vector.private Vec3LivingEntity.handleOnClimbable(Vec3 deltaMovement) LivingEntity.handleRelativeFrictionAndCalculateMovement(Vec3 deltaMovement, float friction) protected Vec3Entity.limitPistonMovement(Vec3 pos) protected Vec3Entity.maybeBackOffFromEdge(Vec3 vec, MoverType mover) Entity.position()static Vec3LivingEntity.resetForwardDirectionOfRelativePortalPosition(Vec3 relativePortalPosition) Entity.trackingPosition()private static Vec3EntityAttachments.transformPoint(Vec3 point, float yRot) Methods in net.minecraft.world.entity that return types with arguments of type Vec3Modifier and TypeMethodDescriptionEntityAttachment.Fallback.create(float width, float height) EntityAttachment.createFallbackPoints(float width, float height) EntityAttachments.scalePoints(List<Vec3> attachmentPoints, float xScale, float yScale, float zScale) Methods in net.minecraft.world.entity with parameters of type Vec3Modifier and TypeMethodDescriptionvoidEntity.addDeltaMovement(Vec3 addend) EntityAttachments.Builder.attach(EntityAttachment attachment, Vec3 poas) EntityType.Builder.attach(EntityAttachment attachment, Vec3 pos) static voidExperienceOrb.award(ServerLevel level, Vec3 pos, int amount) protected voidEntity.checkSupportingBlock(boolean onGround, Vec3 movement) private Vec3Given a motion vector, return an updated vector that takes into account restrictions such as collisions (from all directions) and step-up from stepHeightstatic Vec3Entity.collideBoundingBox(Entity entity, Vec3 vec, AABB collisionBox, Level level, List<VoxelShape> potentialHits) private static Vec3Entity.collideWithShapes(Vec3 deltaMovement, AABB entityBB, List<VoxelShape> shapes) doubleEntity.distanceToSqr(Vec3 vec) LivingEntity.getFluidFallingAdjustedMovement(double gravity, boolean isFalling, Vec3 deltaMovement) private static Vec3Entity.getInputVector(Vec3 relative, float motionScaler, float facing) protected Vec3LivingEntity.getRiddenInput(Player player, Vec3 travelVector) private Vec3LivingEntity.handleOnClimbable(Vec3 deltaMovement) LivingEntity.handleRelativeFrictionAndCalculateMovement(Vec3 deltaMovement, float friction) Entity.interactAt(Player player, Vec3 vec, InteractionHand hand) Applies the given player interaction to this Entity.protected booleanEntity.isHorizontalCollisionMinor(Vec3 deltaMovement) protected Vec3Entity.limitPistonMovement(Vec3 pos) voidEntity.lookAt(EntityAnchorArgument.Anchor anchor, Vec3 target) voidLivingEntity.lookAt(EntityAnchorArgument.Anchor anchor, Vec3 target) EntityDimensions.makeBoundingBox(Vec3 pos) voidEntity.makeStuckInBlock(BlockState state, Vec3 motionMultiplier) protected Vec3Entity.maybeBackOffFromEdge(Vec3 vec, MoverType mover) voidvoidEntity.moveRelative(float amount, Vec3 relative) voidvoidEntityType.Builder.passengerAttachments(Vec3... attachPoints) voidstatic Vec3LivingEntity.resetForwardDirectionOfRelativePortalPosition(Vec3 relativePortalPosition) voidEntity.setDeltaMovement(Vec3 deltaMovement) voidEntity.setOnGroundWithMovement(boolean onGround, Vec3 movement) final voidprotected voidLivingEntity.tickRidden(Player player, Vec3 travelVector) private static Vec3EntityAttachments.transformPoint(Vec3 point, float yRot) voidvoidprivate voidLivingEntity.travelRidden(Player player, Vec3 travelVector) private static booleanExperienceOrb.tryMergeToExisting(ServerLevel level, Vec3 pos, int amount) EntityType.Builder.vehicleAttachment(Vec3 attachPoint) private booleanEntity.vibrationAndSoundEffectsFromBlock(BlockPos pos, BlockState state, boolean playStepSound, boolean broadcastGameEvent, Vec3 entityPos) Method parameters in net.minecraft.world.entity with type arguments of type Vec3Modifier and TypeMethodDescriptionEntityAttachments.scalePoints(List<Vec3> attachmentPoints, float xScale, float yScale, float zScale) Constructor parameters in net.minecraft.world.entity with type arguments of type Vec3ModifierConstructorDescription(package private)EntityAttachments(Map<EntityAttachment, List<Vec3>> attachments) -
Uses of Vec3 in net.minecraft.world.entity.ai.behavior
Fields in net.minecraft.world.entity.ai.behavior declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3BlockPosTracker.centerPositionprotected Vec3LongJumpToRandomPos.chosenJumpprivate Vec3RamTarget.ramDirectionFields 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 Vec3LongJumpToRandomPos.calculateOptimalJumpVector(Mob mob, Vec3 target) BlockPosTracker.currentPosition()EntityTracker.currentPosition()PositionTracker.currentPosition()private Vec3PrepareRamNearestTarget.getEdgeOfBlock(BlockPos pos, BlockPos other) private static Vec3MoveToSkySeeingSpot.getOutdoorPosition(ServerLevel level, LivingEntity entity) private Vec3AnimalPanic.getPanicPos(E pathfinder, ServerLevel level) static Vec3BehaviorUtils.getRandomSwimmablePos(PathfinderMob pathfinder, int radius, int verticalDistance) private static Vec3RandomStroll.getTargetFlyPos(PathfinderMob mob, int maxDistance, int yRange) private static Vec3RandomStroll.getTargetSwimPos(PathfinderMob mob) private static Vec3GoAndGiveItemsToTarget.getThrowPosition(PositionTracker positionTracker) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type Vec3Modifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle(Mob mob, Vec3 target, float maxJumpVelocity, int angle, boolean requireClearTransition) Methods in net.minecraft.world.entity.ai.behavior with parameters of type Vec3Modifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle(Mob mob, Vec3 target, float maxJumpVelocity, int angle, boolean requireClearTransition) protected Vec3LongJumpToRandomPos.calculateOptimalJumpVector(Mob mob, Vec3 target) private static booleanLongJumpUtil.isClearTransition(Mob mob, EntityDimensions dimensions, Vec3 startPos, Vec3 endPos) static voidBehaviorUtils.throwItem(LivingEntity livingEntity, ItemStack stack, Vec3 offset) static voidBehaviorUtils.throwItem(LivingEntity entity, ItemStack stack, Vec3 offset, Vec3 speedMultiplier, float yOffset) static voidGoAndGiveItemsToTarget.throwItem(LivingEntity entity, ItemStack stack, Vec3 throwPos) 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> walkTargetAwayFromMemory, float speedModifier, int desiredDistance, boolean hasTarget, Function<T, Vec3> toPosition) private static OneShot<PathfinderMob> RandomStroll.strollFlyOrSwim(float speedModifier, Function<PathfinderMob, Vec3> target, Predicate<PathfinderMob> canStroll) 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 Vec3FleeSunGoal.getHidePos()protected Vec3GolemRandomStrollInVillageGoal.getPosition()protected Vec3MoveBackToVillageGoal.getPosition()protected Vec3RandomStrollGoal.getPosition()protected Vec3RandomSwimmingGoal.getPosition()protected Vec3WaterAvoidingRandomFlyingGoal.getPosition()protected Vec3WaterAvoidingRandomStrollGoal.getPosition()private Vec3GolemRandomStrollInVillageGoal.getPositionTowardsAnywhere()private Vec3GolemRandomStrollInVillageGoal.getPositionTowardsPoi()private Vec3GolemRandomStrollInVillageGoal.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 vectorPos, float speedModifier, int closeEnoughDist) 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 Vec3RandomPos.generateRandomPos(Supplier<BlockPos> posSupplier, ToDoubleFunction<BlockPos> toDoubleFunction) Tries 10 times to maximize the return value of the position to double function based on the supplied positionstatic Vec3RandomPos.generateRandomPos(PathfinderMob mob, Supplier<BlockPos> posSupplier) static Vec3AirAndWaterRandomPos.getPos(PathfinderMob mob, int maxDistance, int yRange, int y, double x, double z, double amplifier) static Vec3DefaultRandomPos.getPos(PathfinderMob mob, int radius, int verticalDistance) static Vec3HoverRandomPos.getPos(PathfinderMob mob, int radius, int yRange, double x, double z, float amplifier, int maxSwimUp, int minSwimUp) Tries to generate a random position a couple different ways, and if failing, sees if swimming vertically is an option.static Vec3LandRandomPos.getPos(PathfinderMob mob, int radius, int verticalRange) static Vec3LandRandomPos.getPos(PathfinderMob mob, int radius, int yRange, ToDoubleFunction<BlockPos> toDoubleFunction) static Vec3DefaultRandomPos.getPosAway(PathfinderMob mob, int radius, int yRange, Vec3 vectorPosition) static Vec3LandRandomPos.getPosAway(PathfinderMob mob, int radius, int yRange, Vec3 vectorPosition) private static Vec3LandRandomPos.getPosInDirection(PathfinderMob mob, int radius, int yRange, Vec3 vectorPosition, boolean shortCircuit) static Vec3AirRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, int y, Vec3 vectorPosition, double amplifier) static Vec3DefaultRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 vectorPosition, double amplifier) static Vec3LandRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 vectorPosition) Methods in net.minecraft.world.entity.ai.util with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3DefaultRandomPos.getPosAway(PathfinderMob mob, int radius, int yRange, Vec3 vectorPosition) static Vec3LandRandomPos.getPosAway(PathfinderMob mob, int radius, int yRange, Vec3 vectorPosition) private static Vec3LandRandomPos.getPosInDirection(PathfinderMob mob, int radius, int yRange, Vec3 vectorPosition, boolean shortCircuit) static Vec3AirRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, int y, Vec3 vectorPosition, double amplifier) static Vec3DefaultRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 vectorPosition, double amplifier) static Vec3LandRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 vectorPosition) -
Uses of Vec3 in net.minecraft.world.entity.ai.village
Methods in net.minecraft.world.entity.ai.village that return Vec3Modifier and TypeMethodDescriptionprivate Vec3VillageSiege.findRandomSpawnPos(ServerLevel level, BlockPos pos) -
Uses of Vec3 in net.minecraft.world.entity.animal
Fields in net.minecraft.world.entity.animal declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3Bee.BeePollinateGoal.hoverPosprivate Vec3Panda.rollDeltaMethods in net.minecraft.world.entity.animal that return Vec3Modifier and TypeMethodDescriptionprivate Vec3Bee.BeeWanderGoal.findPos()Pig.getDismountLocationForPassenger(LivingEntity livingEntity) Bee.getLeashOffset()Fox.getLeashOffset()IronGolem.getLeashOffset()Ocelot.getLeashOffset()Parrot.getLeashOffset()Pig.getLeashOffset()Rabbit.getLeashOffset()SnowGolem.getLeashOffset()Wolf.getLeashOffset()protected Vec3Parrot.ParrotWanderGoal.getPosition()protected Vec3Pig.getRiddenInput(Player player, Vec3 travelVector) private Vec3Parrot.ParrotWanderGoal.getTreePos()private Vec3Squid.rotateVector(Vec3 vector) Methods in net.minecraft.world.entity.animal with parameters of type Vec3Modifier and TypeMethodDescriptionprotected Vec3Pig.getRiddenInput(Player player, Vec3 travelVector) private Vec3Squid.rotateVector(Vec3 vector) protected voidPig.tickRidden(Player player, Vec3 travelVector) voidvoidvoidvoid -
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 TypeMethodDescriptionbooleanAllay.JukeboxListener.handleGameEvent(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) 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 partialTick) protected Vec3Camel.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3Camel.getRiddenInput(Player player, Vec3 travelVector) Methods in net.minecraft.world.entity.animal.camel with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidCamel.executeRidersJump(float playerJumpPendingScale, Vec3 travelVector) protected Vec3Camel.getRiddenInput(Player player, Vec3 travelVector) protected voidCamel.tickRidden(Player player, Vec3 travelVector) 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 livingEntity) private Vec3AbstractHorse.getDismountLocationInDirection(Vec3 direction, LivingEntity passenger) Llama.getLeashOffset()protected Vec3AbstractHorse.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3Llama.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3AbstractHorse.getRiddenInput(Player player, Vec3 travelVector) Methods in net.minecraft.world.entity.animal.horse with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidAbstractHorse.executeRidersJump(float playerJumpPendingScale, Vec3 travelVector) private Vec3AbstractHorse.getDismountLocationInDirection(Vec3 direction, LivingEntity passenger) protected Vec3AbstractHorse.getRiddenInput(Player player, Vec3 travelVector) protected voidAbstractHorse.tickRidden(Player player, Vec3 travelVector) -
Uses of Vec3 in net.minecraft.world.entity.animal.sniffer
Methods in net.minecraft.world.entity.animal.sniffer 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 Vec3DragonChargePlayerPhase.targetLocationprivate Vec3DragonDeathPhase.targetLocationprivate Vec3DragonHoldingPatternPhase.targetLocationprivate Vec3DragonHoverPhase.targetLocationprivate Vec3DragonLandingApproachPhase.targetLocationprivate Vec3DragonLandingPhase.targetLocationprivate Vec3DragonStrafePlayerPhase.targetLocationprivate Vec3DragonTakeoffPhase.targetLocationMethods 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 TypeMethodDescriptionvoidWitherBoss.makeStuckInBlock(BlockState state, Vec3 motionMultiplier) -
Uses of Vec3 in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return Vec3Modifier and TypeMethodDescriptionArmorStand.getLightProbePosition(float partialTicks) LeashFenceKnotEntity.getRopeHoldPosition(float partialTicks) Painting.trackingPosition()Methods in net.minecraft.world.entity.decoration with parameters of type Vec3Modifier and TypeMethodDescriptionprivate EquipmentSlotArmorStand.getClickedSlot(Vec3 vector) ArmorStand.interactAt(Player player, Vec3 vec, InteractionHand hand) Applies the given player interaction to this Entity.voidvoidvoid -
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) Vec3Phantom.moveTargetPointMethods in net.minecraft.world.entity.monster that return Vec3Modifier and TypeMethodDescriptionShulker.getDeltaMovement()Strider.getDismountLocationForPassenger(LivingEntity livingEntity) Vec3[]Illusioner.getIllusionOffsets(float partialTick) Strider.getLeashOffset()protected Vec3Slime.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3Strider.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3Strider.getRiddenInput(Player player, Vec3 travelVector) CaveSpider.getVehicleAttachmentPoint(Entity entity) Spider.getVehicleAttachmentPoint(Entity entity) private Vec3Drowned.DrownedGoToWaterGoal.getWaterPos()Methods in net.minecraft.world.entity.monster that return types with arguments of type Vec3Methods in net.minecraft.world.entity.monster with parameters of type Vec3Modifier and TypeMethodDescriptionprivate booleanprotected Vec3Strider.getRiddenInput(Player player, Vec3 travelVector) voidSpider.makeStuckInBlock(BlockState state, Vec3 motionMultiplier) voidvoidvoidShulker.setDeltaMovement(Vec3 deltaMovement) protected voidStrider.tickRidden(Player player, Vec3 travelVector) voidvoid -
Uses of Vec3 in net.minecraft.world.entity.monster.breeze
Methods in net.minecraft.world.entity.monster.breeze that return Vec3Modifier and TypeMethodDescriptionstatic Vec3BreezeUtil.randomPointBehindTarget(LivingEntity target, RandomSource random) private static Vec3Slide.randomPointInMiddleCircle(Breeze breeze, LivingEntity target) Methods in net.minecraft.world.entity.monster.breeze that return types with arguments of type Vec3Modifier and TypeMethodDescriptionLongJump.calculateOptimalJumpVector(Breeze breeze, RandomSource random, Vec3 target) Methods in net.minecraft.world.entity.monster.breeze with parameters of type Vec3Modifier and TypeMethodDescriptionLongJump.calculateOptimalJumpVector(Breeze breeze, RandomSource random, Vec3 target) static booleanBreezeUtil.hasLineOfSight(Breeze breeze, Vec3 pos) private static BlockPosLongJump.snapToSurface(LivingEntity owner, Vec3 targetPos) booleanBreeze.withinInnerCircleRange(Vec3 pos) -
Uses of Vec3 in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin that return Vec3Methods in net.minecraft.world.entity.monster.piglin with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidPiglinAi.throwItemsTowardPos(Piglin piglin, List<ItemStack> stacks, Vec3 pos) -
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 voidWarden.applyDarknessAround(ServerLevel level, Vec3 pos, Entity source, int radius) -
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.currentImpulseImpactPosstatic final Vec3Player.DEFAULT_VEHICLE_ATTACHMENTMethods in net.minecraft.world.entity.player that return Vec3Modifier and TypeMethodDescriptionPlayer.getRopeHoldPosition(float partialTicks) protected Vec3Player.maybeBackOffFromEdge(Vec3 vec, MoverType mover) Methods in net.minecraft.world.entity.player with parameters of type Vec3Modifier and TypeMethodDescriptionvoidPlayer.makeStuckInBlock(BlockState state, Vec3 motionMultiplier) protected Vec3Player.maybeBackOffFromEdge(Vec3 vec, MoverType mover) void -
Uses of Vec3 in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile that return Vec3Modifier and TypeMethodDescriptionProjectile.getMovementToShoot(double x, double y, double z, float velocity, float inaccuracy) Methods in net.minecraft.world.entity.projectile with parameters of type Vec3Modifier and TypeMethodDescriptionprivate voidAbstractHurtingProjectile.assignDirectionalMovement(Vec3 movement, double accelerationPower) protected EntityHitResultAbstractArrow.findHitEntity(Vec3 startVec, Vec3 endVec) Gets the EntityRayTraceResult representing the entity hitprotected EntityHitResultThrownTrident.findHitEntity(Vec3 startVec, Vec3 endVec) Gets the EntityHitResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Entity shooter, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, double distance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) Gets the EntityHitResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, float inflationAmount) Gets the EntityHitResult representing the entity hitprivate static HitResultProjectileUtil.getHitResult(Vec3 pos, Entity projectile, Predicate<Entity> filter, Vec3 deltaMovement, Level level, float margin, ClipContext.Block clipContext) voidprivate voidConstructors in net.minecraft.world.entity.projectile with parameters of type Vec3ModifierConstructorDescriptionAbstractHurtingProjectile(EntityType<? extends AbstractHurtingProjectile> entityType, double x, double y, double z, Vec3 movement, Level level) AbstractHurtingProjectile(EntityType<? extends AbstractHurtingProjectile> entityType, LivingEntity owner, Vec3 movement, Level level) DragonFireball(Level level, LivingEntity owner, Vec3 movement) Fireball(EntityType<? extends Fireball> entityType, double x, double y, double z, Vec3 movement, Level level) Fireball(EntityType<? extends Fireball> entityType, LivingEntity owner, Vec3 movement, Level level) LargeFireball(Level level, LivingEntity owner, Vec3 movement, int explosionPower) SmallFireball(Level level, double x, double y, double z, Vec3 movement) SmallFireball(Level level, LivingEntity owner, Vec3 movement) WitherSkull(Level level, LivingEntity owner, Vec3 movement) -
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 voidprotected voidprotected voidConstructors in net.minecraft.world.entity.projectile.windcharge with parameters of type Vec3ModifierConstructorDescription(package private)AbstractWindCharge(EntityType<? extends AbstractWindCharge> entityType, double x, double y, double z, Vec3 movement, Level level) WindCharge(Level level, double x, double y, double z, Vec3 movement) -
Uses of Vec3 in net.minecraft.world.entity.vehicle
Fields in net.minecraft.world.entity.vehicle declared as Vec3Modifier and TypeFieldDescriptionprivate static final Vec3AbstractMinecart.LOWERED_PASSENGER_ATTACHMENTprivate Vec3AbstractMinecart.targetDeltaMovementMethods in net.minecraft.world.entity.vehicle that return Vec3Modifier and TypeMethodDescriptionstatic Vec3DismountHelper.findSafeDismountLocation(EntityType<?> entityType, CollisionGetter level, BlockPos pos, boolean onlySafePositions) AbstractMinecart.getDismountLocationForPassenger(LivingEntity livingEntity) Boat.getDismountLocationForPassenger(LivingEntity livingEntity) Boat.getLeashOffset()protected Vec3AbstractMinecart.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) protected Vec3Boat.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) AbstractMinecart.getPos(double x, double y, double z) MinecartCommandBlock.MinecartCommandBase.getPosition()AbstractMinecart.getPosOffs(double x, double y, double z, double offset) AbstractMinecart.getRelativePortalPosition(Direction.Axis axis, BlockUtil.FoundRectangle portal) Boat.getRelativePortalPosition(Direction.Axis axis, BlockUtil.FoundRectangle portal) ContainerEntity.position()Methods in net.minecraft.world.entity.vehicle with parameters of type Vec3Modifier and TypeMethodDescriptionstatic booleanDismountHelper.canDismountTo(CollisionGetter level, Vec3 offset, LivingEntity passenger, Pose pose) -
Uses of Vec3 in net.minecraft.world.item
Methods in net.minecraft.world.item that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3FireworkRocketItem.getEntityPokingOutOfBlockPos(BlockSource source, Direction direction) Methods in net.minecraft.world.item with parameters of type Vec3Modifier and TypeMethodDescriptionstatic BrushItem.DustParticlesDeltaBrushItem.DustParticlesDelta.fromDirection(Vec3 pos, Direction direction) private static doubleMaceItem.getKnockbackPower(Player player, LivingEntity entity, Vec3 entityPos) private static org.joml.Vector3fCrossbowItem.getProjectileShotVector(LivingEntity shooter, Vec3 distance, float angle) private voidBrushItem.spawnDustParticles(Level level, BlockHitResult hitResult, BlockState state, Vec3 pos, HumanoidArm arm) SpawnEggItem.spawnOffspringFromSpawnEgg(Player player, Mob p_mob, EntityType<? extends Mob> entityType, ServerLevel serverLevel, Vec3 pos, ItemStack stack) -
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 LootContextEnchantment.blockHitContext(ServerLevel level, int enchantmentLevel, Entity entity, Vec3 origin, BlockState state) static LootContextEnchantment.entityContext(ServerLevel level, int enchantmentLevel, Entity entity, Vec3 origin) voidEnchantment.onHitBlock(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, BlockState state) static voidEnchantmentHelper.onHitBlock(ServerLevel level, ItemStack stack, LivingEntity owner, Entity entity, EquipmentSlot slot, Vec3 pos, BlockState state, Consumer<Item> onBreak) -
Uses of Vec3 in net.minecraft.world.item.enchantment.effects
Fields in net.minecraft.world.item.enchantment.effects declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3ExplodeEffect.offsetThe field for theoffsetrecord component.Methods in net.minecraft.world.item.enchantment.effects that return Vec3Modifier and TypeMethodDescriptionExplodeEffect.offset()Returns the value of theoffsetrecord component.Methods in net.minecraft.world.item.enchantment.effects with parameters of type Vec3Modifier and TypeMethodDescriptionvoidAllOf.EntityEffects.apply(ServerLevel p_346093_, int p_345940_, EnchantedItemInUse p_344929_, Entity p_345319_, Vec3 p_345200_) voidApplyMobEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidDamageEntity.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidDamageItem.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidEnchantmentEntityEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidExplodeEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidIgnite.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidPlaySoundEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidReplaceBlock.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidReplaceDisk.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidRunFunction.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidSetBlockProperties.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidSpawnParticlesEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidSummonEntityEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity p_entity, Vec3 origin) private DamageSourceExplodeEffect.getDamageSource(Entity entity, Vec3 pos) voidAllOf.LocationBasedEffects.onChangedBlock(ServerLevel p_345329_, int p_345154_, EnchantedItemInUse p_344984_, Entity p_345671_, Vec3 p_344781_, boolean p_345113_) voidEnchantmentAttributeEffect.onChangedBlock(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, boolean applyTransientEffects) default voidEnchantmentEntityEffect.onChangedBlock(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, boolean applyTransientEffects) voidEnchantmentLocationBasedEffect.onChangedBlock(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, boolean applyTransientEffects) voidAllOf.LocationBasedEffects.onDeactivated(EnchantedItemInUse p_346024_, Entity p_346234_, Vec3 p_346036_, int p_345698_) voidEnchantmentAttributeEffect.onDeactivated(EnchantedItemInUse item, Entity entity, Vec3 pos, int enchantmentLevel) default voidEnchantmentLocationBasedEffect.onDeactivated(EnchantedItemInUse item, Entity entity, Vec3 pos, int enchantmentLevel) 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 aExplodeEffectrecord class. -
Uses of Vec3 in net.minecraft.world.level
Fields in net.minecraft.world.level declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3ClipBlockStateContext.fromprivate final Vec3ClipContext.fromprivate final Vec3ClipBlockStateContext.toprivate final Vec3ClipContext.toFields in net.minecraft.world.level with type parameters of type Vec3Methods in net.minecraft.world.level that return Vec3Modifier and TypeMethodDescriptionExplosion.center()ClipBlockStateContext.getFrom()ClipContext.getFrom()abstract Vec3BaseCommandBlock.getPosition()ClipBlockStateContext.getTo()ClipContext.getTo()Methods in net.minecraft.world.level that return types with arguments of type Vec3Modifier and TypeMethodDescriptionCollisionGetter.findFreePosition(Entity entity, VoxelShape shape, Vec3 pos, double x, double y, double z) Explosion.getHitPlayers()Methods in net.minecraft.world.level with parameters of type Vec3Modifier and TypeMethodDescriptiondefault BlockHitResultBlockGetter.clipWithInteractionOverride(Vec3 startVec, Vec3 endVec, BlockPos pos, VoxelShape shape, BlockState state) Level.explode(Entity source, DamageSource damageSource, ExplosionDamageCalculator damageCalculator, Vec3 pos, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction) CollisionGetter.findFreePosition(Entity entity, VoxelShape shape, Vec3 pos, double x, double y, double z) voidLevelAccessor.gameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) default voidstatic floatExplosion.getSeenPercent(Vec3 explosionVector, Entity entity) static <T,C> T BlockGetter.traverseBlocks(Vec3 from, Vec3 to, C context, BiFunction<C, BlockPos, T> tester, Function<C, T> onFail) Constructors in net.minecraft.world.level with parameters of type Vec3ModifierConstructorDescriptionClipBlockStateContext(Vec3 from, Vec3 to, Predicate<BlockState> block) ClipContext(Vec3 from, Vec3 to, ClipContext.Block block, ClipContext.Fluid fluid, Entity entity) ClipContext(Vec3 from, Vec3 to, ClipContext.Block block, ClipContext.Fluid fluid, CollisionContext collisionContext) -
Uses of Vec3 in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block declared as Vec3Fields in net.minecraft.world.level.block with type parameters of type Vec3Methods in net.minecraft.world.level.block that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3EndGatewayBlock.calculateExitMovement(Entity entity) SignBlock.getSignHitboxCenterPosition(BlockState state) WallSignBlock.getSignHitboxCenterPosition(BlockState state) Methods in net.minecraft.world.level.block that return types with arguments of type Vec3Modifier and TypeMethodDescriptionBedBlock.findBunkBedStandUpPosition(EntityType<?> entityType, CollisionGetter collisionGetter, BlockPos pos, Direction stateFacing, Direction entityFacing) BedBlock.findStandUpPosition(EntityType<?> entityType, CollisionGetter collisionGetter, BlockPos pos, Direction p_direction, float yRot) RespawnAnchorBlock.findStandUpPosition(EntityType<?> entityType, CollisionGetter level, BlockPos pos) RespawnAnchorBlock.findStandUpPosition(EntityType<?> entityType, CollisionGetter level, BlockPos pos, boolean simulate) BedBlock.findStandUpPositionAtOffset(EntityType<?> entityType, CollisionGetter collisionGetter, BlockPos pos, int[][] offsets, boolean simulate) AbstractCandleBlock.getParticleOffsets(BlockState state) CandleBlock.getParticleOffsets(BlockState state) CandleCakeBlock.getParticleOffsets(BlockState state) Methods in net.minecraft.world.level.block with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidAbstractCandleBlock.addParticlesAndSound(Level level, Vec3 offset, RandomSource random) private static DimensionTransitionNetherPortalBlock.createDimensionTransition(ServerLevel level, BlockUtil.FoundRectangle rectangle, Direction.Axis axis, Vec3 offset, Entity entity, Vec3 speed, float yRot, float xRot, DimensionTransition.PostDimensionTransition postDimensionTransition) static PositionDispenserBlock.getDispensePosition(BlockSource blockSource, double multiplier, Vec3 offset) private static intTargetBlock.getRedstoneStrength(BlockHitResult hit, Vec3 hitLocation) private voidRedStoneWireBlock.spawnParticlesAlongLine(Level level, RandomSource random, BlockPos pos, Vec3 particleVec, Direction xDirection, Direction zDirection, float min, float max) -
Uses of Vec3 in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3TheEndGatewayBlockEntity.findExitPortalXZPosTentative(ServerLevel level, BlockPos pos) TheEndGatewayBlockEntity.getPortalPosition(ServerLevel level, BlockPos pos) Methods in net.minecraft.world.level.block.entity with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidAbstractFurnaceBlockEntity.createExperience(ServerLevel level, Vec3 popVec, int recipeIndex, float experience) private static LevelChunkList<RecipeHolder<?>> AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience(ServerLevel level, Vec3 popVec) booleanSculkCatalystBlockEntity.CatalystListener.handleGameEvent(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) private static booleanTheEndGatewayBlockEntity.isChunkEmpty(ServerLevel level, Vec3 pos) -
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 entity, ServerLevel level) TrialSpawnerState.calculatePositionToSpawnSpawner(ServerLevel level, BlockPos pos, TrialSpawner spawner, TrialSpawnerData spawnerData) Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidTrialSpawnerState.ParticleEmission.addParticle(SimpleParticleType particleType, Vec3 pos, Level level) private static booleanPlayerDetector.inLineOfSight(Level level, Vec3 pos, Vec3 targetPos) private static booleanTrialSpawner.inLineOfSight(Level level, Vec3 spawnerPos, Vec3 mobPos) -
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 Vec3VaultBlockEntity.Client.keyholePos(BlockPos pos, Direction facing) private static Vec3VaultBlockEntity.Client.randomPosCenterOfCage(BlockPos pos, RandomSource random) private static Vec3VaultBlockEntity.Client.randomPosInsideCage(BlockPos pos, RandomSource random) Methods in net.minecraft.world.level.block.entity.vault with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidVaultBlockEntity.Client.emitConnectionParticlesForPlayer(Level level, Vec3 pos, Player player) -
Uses of Vec3 in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state that return Vec3Modifier and TypeMethodDescriptionBlockBehaviour.OffsetFunction.evaluate(BlockState state, BlockGetter level, BlockPos pos) BlockBehaviour.BlockStateBase.getOffset(BlockGetter level, BlockPos pos) -
Uses of Vec3 in net.minecraft.world.level.border
Methods in net.minecraft.world.level.border with parameters of type Vec3Modifier and TypeMethodDescriptionWorldBorder.clampToBounds(Vec3 pos) booleanWorldBorder.isWithinBounds(Vec3 pos) -
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 level) EntityPositionSource.getPosition(Level level) PositionSource.getPosition(Level level) EuclideanGameEventListenerRegistry.getPostableListenerPosition(ServerLevel level, Vec3 pos, GameEventListener listener) Methods in net.minecraft.world.level.gameevent with parameters of type Vec3Modifier and TypeMethodDescriptionEuclideanGameEventListenerRegistry.getPostableListenerPosition(ServerLevel level, Vec3 pos, GameEventListener listener) booleanGameEventListener.handleGameEvent(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) voidGameEventDispatcher.post(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) voidGameEventListenerRegistry.ListenerVisitor.visit(GameEventListener listener, Vec3 pos) booleanEuclideanGameEventListenerRegistry.visitInRangeListeners(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context, GameEventListenerRegistry.ListenerVisitor visitor) booleanGameEventListenerRegistry.visitInRangeListeners(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context, GameEventListenerRegistry.ListenerVisitor visitor) Constructors in net.minecraft.world.level.gameevent with parameters of type Vec3ModifierConstructorDescriptionListenerInfo(Holder<GameEvent> gameEvent, Vec3 source, GameEvent.Context context, GameEventListener recipient, Vec3 pos) -
Uses of Vec3 in net.minecraft.world.level.gameevent.vibrations
Fields in net.minecraft.world.level.gameevent.vibrations declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3VibrationInfo.posThe field for theposrecord component.Methods in net.minecraft.world.level.gameevent.vibrations that return Vec3Modifier and TypeMethodDescriptionVibrationInfo.pos()Returns the value of theposrecord component.Methods in net.minecraft.world.level.gameevent.vibrations with parameters of type Vec3Modifier and TypeMethodDescriptionvoidVibrationSystem.Listener.forceScheduleVibration(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) booleanVibrationSystem.Listener.handleGameEvent(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) private static booleanVibrationSystem.Listener.isOccluded(Level level, Vec3 eventPos, Vec3 vibrationUserPos) private voidVibrationSystem.Listener.scheduleVibration(ServerLevel level, VibrationSystem.Data data, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos, Vec3 sensorPos) 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 aVibrationInforecord 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 Vec3static Vec3StructureTemplate.transformedVec3d(StructurePlaceSettings placementIn, Vec3 pos) Methods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3static Vec3StructureTemplate.transformedVec3d(StructurePlaceSettings placementIn, Vec3 pos) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.level.material
Methods in net.minecraft.world.level.material that return Vec3Modifier and TypeMethodDescriptionEmptyFluid.getFlow(BlockGetter blockReader, BlockPos pos, FluidState fluidState) FlowingFluid.getFlow(BlockGetter blockReader, BlockPos pos, FluidState fluidState) protected abstract Vec3Fluid.getFlow(BlockGetter blockReader, BlockPos pos, FluidState fluidState) FluidState.getFlow(BlockGetter level, BlockPos pos) -
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 entity, int index) Gets the vector of theNodeassociated with the given index.Path.getNextEntityPos(Entity entity) -
Uses of Vec3 in net.minecraft.world.level.portal
Fields in net.minecraft.world.level.portal declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3DimensionTransition.posThe field for theposrecord component.private final Vec3DimensionTransition.speedThe field for thespeedrecord component.Methods in net.minecraft.world.level.portal that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3DimensionTransition.findAdjustedSharedSpawnPos(ServerLevel newLevel, Entity entity) static Vec3PortalShape.findCollisionFreePosition(Vec3 pos, ServerLevel level, Entity entity, EntityDimensions dimensions) static Vec3PortalShape.getRelativePosition(BlockUtil.FoundRectangle foundRectangle, Direction.Axis axis, Vec3 pos, EntityDimensions entityDimensions) DimensionTransition.pos()Returns the value of theposrecord component.DimensionTransition.speed()Returns the value of thespeedrecord component.Methods in net.minecraft.world.level.portal with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3PortalShape.findCollisionFreePosition(Vec3 pos, ServerLevel level, Entity entity, EntityDimensions dimensions) static Vec3PortalShape.getRelativePosition(BlockUtil.FoundRectangle foundRectangle, Direction.Axis axis, Vec3 pos, EntityDimensions entityDimensions) Constructors in net.minecraft.world.level.portal with parameters of type Vec3ModifierConstructorDescriptionDimensionTransition(ServerLevel newLevel, Vec3 pos, Vec3 speed, float yRot, float xRot, boolean missingRespawnBlock, DimensionTransition.PostDimensionTransition postDimensionTransition) Creates an instance of aDimensionTransitionrecord class.DimensionTransition(ServerLevel p_348637_, Vec3 p_348645_, Vec3 p_348472_, float p_348548_, float p_348664_, DimensionTransition.PostDimensionTransition p_352139_) -
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 Vec3HitResult.locationstatic final Vec3Vec3.ZEROFields in net.minecraft.world.phys with type parameters of type Vec3Methods in net.minecraft.world.phys that return Vec3Modifier and TypeMethodDescriptionVec3.add(double x, double y, double z) Adds the specified x,y,z vector components to this vector and returns the resulting vector.Vec3.align(EnumSet<Direction.Axis> axes) static Vec3Vec3.atBottomCenterOf(Vec3i toCopy) Copies the coordinates of an int vector and centers them horizontally (x and z)static Vec3Vec3.atCenterOf(Vec3i toCopy) Copies the coordinates of an Int vector and centers them.static Vec3Vec3.atLowerCornerOf(Vec3i toCopy) Copies the coordinates of an int vector exactly.static Vec3Vec3.atLowerCornerWithOffset(Vec3i toCopy, double offsetX, double offsetY, double offsetZ) Returns a new vector with the result of this vector x the specified vector.static Vec3Vec3.directionFromRotation(float pitch, float yaw) Returns aVec3from the given pitch and yaw degrees.static Vec3Vec3.directionFromRotation(Vec2 vec) static Vec3Vec3.fromRGB24(int packed) AABB.getBottomCenter()AABB.getCenter()HitResult.getLocation()AABB.getMaxPosition()AABB.getMinPosition()Lerps between this vector and the given vector.Vec3.multiply(double factorX, double factorY, double factorZ) Vec3.normalize()Vec3.offsetRandom(RandomSource random, float factor) Vec3.reverse()Vec3.scale(double factor) Vec3.subtract(double x, double y, double z) static Vec3Vec3.upFromBottomCenterOf(Vec3i toCopy, double verticalOffset) 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 axis, double length) Vec3.xRot(float pitch) Vec3.yRot(float yaw) Vec3.zRot(float roll) Methods in net.minecraft.world.phys that return types with arguments of type Vec3Methods in net.minecraft.world.phys with parameters of type Vec3Modifier and TypeMethodDescriptionstatic BlockHitResultbooleanVec3.closerThan(Vec3 pos, double horizontalDistance, double verticalDistance) booleanReturns if the supplied Vec3D is completely inside the bounding boxReturns a new vector with the result of this vector x the specified vector.doubleVec3.distanceTo(Vec3 vec) Euclidean distance between this and the specified vector, returned as double.doubleAABB.distanceToSqr(Vec3 vec) doubleVec3.distanceToSqr(Vec3 vec) The square of the Euclidean distance between this and the specified vector.doubleAABB.expandTowards(Vec3 vector) private static DirectionAABB.getDirection(AABB aabb, Vec3 start, double[] minDistance, Direction facing, double deltaX, double deltaY, double deltaZ) booleanAABB.intersects(Vec3 min, Vec3 max) Lerps between this vector and the given vector.static BlockHitResultCreates a new BlockRayTraceResult marked as a miss.static AABBstatic AABBAABB.unitCubeFromLowerCorner(Vec3 vector) Returns a new vector with the result of the specified vector minus this.Constructors in net.minecraft.world.phys with parameters of type Vec3ModifierConstructorDescriptionprivateBlockHitResult(boolean miss, Vec3 location, Direction direction, BlockPos blockPos, boolean inside) BlockHitResult(Vec3 location, Direction direction, BlockPos blockPos, boolean inside) EntityHitResult(Entity entity, Vec3 location) protected -
Uses of Vec3 in net.minecraft.world.phys.shapes
Methods in net.minecraft.world.phys.shapes that return types with arguments of type Vec3Methods in net.minecraft.world.phys.shapes 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 voidBlockEntityRenderBoundsDebugRenderer.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.customWaterHandlerMethods 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 doubleFarmlandWaterManager.getDistanceSq(ChunkPos pos, Vec3 vec3d) static @Nullable InteractionResultCommonHooks.onInteractEntityAt(Player player, Entity entity, Vec3 vec3d, InteractionHand hand) static booleanCommonHooks.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 TypeMethodDescriptionbooleanPiglinNeutralArmorEntityPredicate.matches(Entity entity, ServerLevel level, @Nullable Vec3 position) booleanSnowBootsEntityPredicate.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 BlockStateIBlockExtension.getStateAtViewpoint(BlockState state, BlockGetter level, BlockPos pos, Vec3 viewpoint) Used to determine the state 'viewed' by an entity (seeCamera.getBlockAtCamera()).default BlockStateIBlockStateExtension.getStateAtViewpoint(BlockGetter level, BlockPos pos, Vec3 viewpoint) Used to determine the state 'viewed' by an entity (seeCamera.getBlockAtCamera()).default booleanIFluidExtension.move(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default booleanIFluidStateExtension.move(LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default booleanILivingEntityExtension.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 Vec3PlayLevelSoundEvent.AtPosition.positionprivate final Vec3VanillaGameEvent.positionMethods in net.neoforged.neoforge.event that return Vec3Modifier and TypeMethodDescriptionVanillaGameEvent.getEventPosition()static Vec3EventHooks.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.Methods in net.neoforged.neoforge.event with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3EventHooks.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.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 Vec3PlayerInteractEvent.EntityInteractSpecific.localPosMethods 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 TypeMethodDescriptionvoidExplosionKnockbackEvent.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, Explosion explosion, Entity entity, Vec3 knockbackVelocity) -
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 TypeMethodDescriptionbooleanFluidType.move(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.