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 newPosition) 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 com.mojang.blaze3d.vertex
Methods in com.mojang.blaze3d.vertex with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.advancements.criterion
Methods in net.minecraft.advancements.criterion with parameters of type Vec3Modifier and TypeMethodDescriptionbooleanDamageSourcePredicate.matches(ServerLevel level, Vec3 position, DamageSource source) booleanDistanceTrigger.TriggerInstance.matches(ServerLevel level, Vec3 enteredPosition, Vec3 playerPosition) booleanEntityPredicate.matches(ServerLevel level, @Nullable Vec3 position, @Nullable Entity entity) booleanEntitySubPredicate.matches(Entity entity, ServerLevel level, @Nullable Vec3 position) booleanFallAfterExplosionTrigger.TriggerInstance.matches(ServerLevel level, Vec3 enteredPosition, Vec3 playerPosition, @Nullable LootContext cause) booleanFishingHookPredicate.matches(Entity entity, ServerLevel level, @Nullable Vec3 position) booleanLevitationTrigger.TriggerInstance.matches(ServerPlayer player, Vec3 start, int duration) booleanLightningBoltPredicate.matches(Entity entity, ServerLevel level, @Nullable Vec3 position) booleanPlayerPredicate.matches(Entity entity, ServerLevel level, @Nullable Vec3 position) booleanRaiderPredicate.matches(Entity entity, ServerLevel level, @Nullable Vec3 position) booleanSheepPredicate.matches(Entity entity, ServerLevel level, @Nullable Vec3 position) booleanSlimePredicate.matches(Entity entity, ServerLevel level, @Nullable Vec3 position) booleanTargetBlockTrigger.TriggerInstance.matches(LootContext projectile, Vec3 hitPosition, int signalStrength) voidDistanceTrigger.trigger(ServerPlayer player, Vec3 startPosition) voidFallAfterExplosionTrigger.trigger(ServerPlayer player, Vec3 startPosition, @Nullable Entity cause) voidLevitationTrigger.trigger(ServerPlayer player, Vec3 start, int duration) voidTargetBlockTrigger.trigger(ServerPlayer player, Entity projectile, Vec3 hitPosition, int signalStrength) -
Uses of Vec3 in net.minecraft.client
Fields in net.minecraft.client declared as Vec3Modifier and TypeFieldDescriptionprivate 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 x, float y) Camera.NearPlane.getTopLeft()Camera.NearPlane.getTopRight()Camera.position()Methods in net.minecraft.client with parameters of type Vec3Modifier and TypeMethodDescriptionprivate voidKeyboardHandler.copyCreateEntityCommand(Identifier id, Vec3 pos, @Nullable CompoundTag entityTag) private voidCamera.prepareCullFrustum(Matrix4f modelViewMatrix, Matrix4f projectionMatrixForCulling, Vec3 cameraPos) protected voidCamera.setPosition(Vec3 position) Constructors in net.minecraft.client with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.client.entity
Fields in net.minecraft.client.entity declared as Vec3Methods in net.minecraft.client.entity that return Vec3Methods in net.minecraft.client.entity 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 TypeMethodDescription@Nullable SubtitleOverlay.SoundPlayedAtSubtitleOverlay.Subtitle.getClosest(Vec3 position) booleanSubtitleOverlay.Subtitle.isAudibleFrom(Vec3 camera) 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
Fields in net.minecraft.client.multiplayer declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3ClientExplosionTracker.ExplosionInfo.centerThe field for thecenterrecord component.Methods in net.minecraft.client.multiplayer that return Vec3Modifier and TypeMethodDescriptionClientExplosionTracker.ExplosionInfo.center()Returns the value of thecenterrecord component.Methods in net.minecraft.client.multiplayer with parameters of type Vec3Modifier and TypeMethodDescriptionvoidClientLevel.gameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) voidClientLevel.syncBlockState(BlockPos pos, BlockState state, Vec3 playerPos) voidClientExplosionTracker.track(Vec3 center, float radius, int blockCount, WeightedList<ExplosionParticleInfo> blockParticles) voidClientLevel.trackExplosionEffects(Vec3 center, float radius, int blockCount, WeightedList<ExplosionParticleInfo> blockParticles) Constructors in net.minecraft.client.multiplayer with parameters of type Vec3ModifierConstructorDescriptionprivateExplosionInfo(Vec3 center, float radius, int blockCount, WeightedList<ExplosionParticleInfo> blockParticles) Creates an instance of aExplosionInforecord class. -
Uses of Vec3 in net.minecraft.client.multiplayer.prediction
Fields in net.minecraft.client.multiplayer.prediction declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3BlockStatePredictionHandler.ServerVerifiedState.playerPosConstructors in net.minecraft.client.multiplayer.prediction with parameters of type Vec3ModifierConstructorDescriptionprivateServerVerifiedState(int sequence, BlockState blockState, Vec3 playerPos) -
Uses of Vec3 in net.minecraft.client.particle
Fields in net.minecraft.client.particle declared as Vec3Methods in net.minecraft.client.particle that return Vec3Constructors in net.minecraft.client.particle with parameters of type Vec3ModifierConstructorDescriptionItemPickupParticle(ClientLevel level, EntityRenderState itemEntity, Entity target, Vec3 movement) TrackingEmitter(ClientLevel level, Entity entity, ParticleOptions particleType, int lifeTime, Vec3 movement) TrailParticle(ClientLevel level, double x, double y, double z, double xAux, double yAux, double zAux, Vec3 target, int color, TextureAtlasSprite sprite) -
Uses of Vec3 in net.minecraft.client.player
Fields in net.minecraft.client.player declared as Vec3Methods in net.minecraft.client.player that return Vec3Methods in net.minecraft.client.player with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static HitResultLocalPlayer.filterHitResult(HitResult hitResult, Vec3 from, double maxRange) protected booleanLocalPlayer.isHorizontalCollisionMinor(Vec3 movement) voidRemotePlayer.lerpMotion(Vec3 movement) void -
Uses of Vec3 in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer that return Vec3Methods in net.minecraft.client.renderer with parameters of type Vec3Modifier and TypeMethodDescriptionprivate voidLevelRenderer.addCloudsPass(FrameGraphBuilder frame, CloudStatus cloudsType, Vec3 cameraPosition, long gameTime, float partialTicks, int cloudColor, float cloudHeight) Deprecated.private voidLevelRenderer.addCloudsPass(FrameGraphBuilder frame, CloudStatus cloudsType, Vec3 cameraPosition, long gameTime, float partialTicks, int cloudColor, float cloudHeight, Matrix4f modelViewMatrix) voidWorldBorderRenderer.extract(WorldBorder border, float deltaPartialTick, Vec3 cameraPos, double renderDistance, WorldBorderRenderState state) voidWeatherEffectRenderer.extractRenderState(Level level, int ticks, float partialTicks, Vec3 cameraPos, WeatherRenderState renderState) GameRenderer.projectPointToScreen(Vec3 point) voidCloudRenderer.render(int color, CloudStatus type, float bottomY, Vec3 cameraPosition, long gameTime, float partialTicks) voidWeatherEffectRenderer.render(Vec3 cameraPos, WeatherRenderState renderState) Deprecated.voidWeatherEffectRenderer.render(Vec3 cameraPos, WeatherRenderState renderState, @Nullable LevelRenderState levelRenderState) voidWorldBorderRenderer.render(WorldBorderRenderState state, Vec3 cameraPos, double renderDistance, double depthFar) private voidWeatherEffectRenderer.renderInstances(VertexConsumer builder, List<WeatherEffectRenderer.ColumnInstance> columns, Vec3 cameraPos, float maxAlpha, int radius, float intensity) private voidSectionOcclusionGraph.runPartialUpdate(boolean smartCull, Frustum frustum, List<SectionRenderDispatcher.RenderSection> visibleSections, Vec3 cameraPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedEmptySections) private voidSectionOcclusionGraph.runUpdates(SectionOcclusionGraph.GraphStorage storage, Vec3 cameraPos, Queue<SectionOcclusionGraph.Node> queue, boolean smartCull, Consumer<SectionRenderDispatcher.RenderSection> onSectionAdded, it.unimi.dsi.fastutil.longs.LongOpenHashSet emptySections) private voidSectionOcclusionGraph.scheduleFullUpdate(boolean smartCull, Camera camera, Vec3 cameraPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedEmptySections) private voidLevelRenderer.scheduleResort(SectionRenderDispatcher.RenderSection section, TranslucencyPointOfView pointOfView, Vec3 cameraPos, boolean blockPosChanged, boolean isNearby) private voidLevelRenderer.scheduleTranslucentSectionResort(Vec3 cameraPos) voidOrderedSubmitNodeCollector.submitNameTag(PoseStack poseStack, @Nullable Vec3 nameTagAttachment, int offset, Component name, boolean seeThrough, int lightCoords, double distanceToCameraSq, CameraRenderState camera) voidSubmitNodeCollection.submitNameTag(PoseStack poseStack, @Nullable Vec3 nameTagAttachment, int offset, Component name, boolean seeThrough, int lightCoords, double distanceToCameraSq, CameraRenderState camera) voidSubmitNodeStorage.submitNameTag(PoseStack poseStack, @Nullable Vec3 nameTagAttachment, int offset, Component name, boolean seeThrough, int lightCoords, double distanceToCameraSq, CameraRenderState camera) -
Uses of Vec3 in net.minecraft.client.renderer.blockentity
Fields in net.minecraft.client.renderer.blockentity declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3BlockEntityRenderDispatcher.cameraPosprivate static final Vec3HangingSignRenderer.TEXT_OFFSETprivate static final Vec3SignRenderer.TEXT_OFFSETMethods in net.minecraft.client.renderer.blockentity that return Vec3Modifier and TypeMethodDescriptionprotected abstract Vec3AbstractSignRenderer.getTextOffset()protected Vec3HangingSignRenderer.getTextOffset()protected Vec3SignRenderer.getTextOffset()Methods in net.minecraft.client.renderer.blockentity with parameters of type Vec3Modifier and TypeMethodDescriptionstatic <T extends BlockEntity & BeaconBeamOwner>
voidBeaconRenderer.extract(T blockEntity, BeaconRenderState state, float partialTicks, Vec3 cameraPosition) voidAbstractEndPortalRenderer.extractRenderState(T blockEntity, S state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidAbstractSignRenderer.extractRenderState(SignBlockEntity blockEntity, SignRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidBannerRenderer.extractRenderState(BannerBlockEntity blockEntity, BannerRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidBeaconRenderer.extractRenderState(T blockEntity, BeaconRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidBedRenderer.extractRenderState(BedBlockEntity blockEntity, BedRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidBellRenderer.extractRenderState(BellBlockEntity blockEntity, BellRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) default voidBlockEntityRenderer.extractRenderState(T blockEntity, S state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidBlockEntityWithBoundingBoxRenderer.extractRenderState(T blockEntity, BlockEntityWithBoundingBoxRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidBrushableBlockRenderer.extractRenderState(BrushableBlockEntity blockEntity, BrushableBlockRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidCampfireRenderer.extractRenderState(CampfireBlockEntity blockEntity, CampfireRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidChestRenderer.extractRenderState(T blockEntity, ChestRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidConduitRenderer.extractRenderState(ConduitBlockEntity blockEntity, CondiutRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidCopperGolemStatueBlockRenderer.extractRenderState(CopperGolemStatueBlockEntity blockEntity, CopperGolemStatueRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidDecoratedPotRenderer.extractRenderState(DecoratedPotBlockEntity blockEntity, DecoratedPotRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidEnchantTableRenderer.extractRenderState(EnchantingTableBlockEntity blockEntity, EnchantTableRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidLecternRenderer.extractRenderState(LecternBlockEntity blockEntity, LecternRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidPistonHeadRenderer.extractRenderState(PistonMovingBlockEntity blockEntity, PistonHeadRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidShelfRenderer.extractRenderState(ShelfBlockEntity blockEntity, ShelfRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidShulkerBoxRenderer.extractRenderState(ShulkerBoxBlockEntity blockEntity, ShulkerBoxRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidSkullBlockRenderer.extractRenderState(SkullBlockEntity blockEntity, SkullBlockRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidSpawnerRenderer.extractRenderState(SpawnerBlockEntity blockEntity, SpawnerRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidTestInstanceRenderer.extractRenderState(TestInstanceBlockEntity blockEntity, TestInstanceRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidTheEndGatewayRenderer.extractRenderState(TheEndGatewayBlockEntity blockEntity, EndGatewayRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidTrialSpawnerRenderer.extractRenderState(TrialSpawnerBlockEntity blockEntity, SpawnerRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidVaultRenderer.extractRenderState(VaultBlockEntity blockEntity, VaultRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidbooleanBeaconRenderer.shouldRender(T blockEntity, Vec3 cameraPosition) default booleanBlockEntityRenderer.shouldRender(T blockEntity, Vec3 cameraPosition) booleanTestInstanceRenderer.shouldRender(TestInstanceBlockEntity blockEntity, Vec3 cameraPosition) private voidAbstractSignRenderer.translateSignText(PoseStack poseStack, boolean isFrontText, Vec3 textOffset) -
Uses of Vec3 in net.minecraft.client.renderer.chunk
Fields in net.minecraft.client.renderer.chunk with type parameters of type Vec3Modifier and TypeFieldDescriptionprivate final AtomicReference<Vec3> SectionRenderDispatcher.cameraPositionMethods in net.minecraft.client.renderer.chunk with parameters of type Vec3Modifier and TypeMethodDescriptionprivate VertexSortingSectionRenderDispatcher.RenderSection.createVertexSorting(SectionPos sectionPos, Vec3 cameraPos) static TranslucencyPointOfViewvoidSectionRenderDispatcher.setCameraPosition(Vec3 cameraPosition) -
Uses of Vec3 in net.minecraft.client.renderer.debug
Methods in net.minecraft.client.renderer.debug that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3DebugRenderer.mixColor(float hueShift) private static Vec3DebugRenderer.shiftHue(float r, float g, float b, float hs) Methods in net.minecraft.client.renderer.debug with parameters of type Vec3Modifier and TypeMethodDescriptionvoidprivate static voidSolidFaceRenderer.addFaceIfSturdy(BlockPos blockPos, BlockState blockState, BlockGetter level, Direction direction, Vec3 cornerA, Vec3 cornerB, int color) private voidChunkCullingDebugRenderer.addFrustumLine(Vec3 offset, Vector4f a, Vector4f b) private voidChunkCullingDebugRenderer.addFrustumQuad(Vec3 offset, Vector4f[] frustumPoints, int i0, int i1, int i2, int i3, int r, int g, int b) -
Uses of Vec3 in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity that return Vec3Modifier and TypeMethodDescriptionprivate Vec3FishingHookRenderer.getPlayerHandPos(Player owner, float swing, float partialTicks) private Vec3GuardianRenderer.getPosition(LivingEntity entity, double yOffset, float partialTicks) AbstractMinecartRenderer.getRenderOffset(S state) EndermanRenderer.getRenderOffset(EndermanRenderState state) EntityRenderer.getRenderOffset(S state) ItemFrameRenderer.getRenderOffset(ItemFrameRenderState state) ShulkerRenderer.getRenderOffset(ShulkerRenderState state) Methods in net.minecraft.client.renderer.entity with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidGuardianRenderer.renderBeam(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, Vec3 beamVector, float timeInTicks, float scale, float texVOff) -
Uses of Vec3 in net.minecraft.client.renderer.entity.player
Methods in net.minecraft.client.renderer.entity.player that return Vec3 -
Uses of Vec3 in net.minecraft.client.renderer.entity.state
Fields in net.minecraft.client.renderer.entity.state declared as Vec3Modifier and TypeFieldDescription@Nullable Vec3GuardianRenderState.attackTargetPosition@Nullable Vec3MinecartRenderState.backPos@Nullable Vec3EndCrystalRenderState.beamOffset@Nullable Vec3EnderDragonRenderState.beamOffsetEntityRenderState.LeashState.endGuardianRenderState.eyePosition@Nullable Vec3MinecartRenderState.frontPosVec3[]IllusionerRenderState.illusionOffsetsFishingHookRenderState.lineOriginOffset@Nullable Vec3GuardianRenderState.lookAtPosition@Nullable Vec3GuardianRenderState.lookDirection@Nullable Vec3EntityRenderState.nameTagAttachmentEntityRenderState.LeashState.offset@Nullable Vec3EntityRenderState.passengerOffset@Nullable Vec3MinecartRenderState.posOnRailShulkerRenderState.renderOffset@Nullable Vec3MinecartRenderState.renderPosEntityRenderState.LeashState.start -
Uses of Vec3 in net.minecraft.client.renderer.feature
Methods in net.minecraft.client.renderer.feature with parameters of type Vec3Modifier and TypeMethodDescriptionvoidNameTagFeatureRenderer.Storage.add(PoseStack poseStack, @Nullable Vec3 nameTagAttachment, int offset, Component name, boolean seeThrough, int lightCoords, double distanceToCameraSq, CameraRenderState camera) -
Uses of Vec3 in net.minecraft.client.renderer.gizmos
Fields in net.minecraft.client.renderer.gizmos declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3DrawableGizmoPrimitives.Quad.aThe field for thearecord component.private final Vec3DrawableGizmoPrimitives.Quad.bThe field for thebrecord component.private final Vec3DrawableGizmoPrimitives.Quad.cThe field for thecrecord component.private final Vec3DrawableGizmoPrimitives.Quad.dThe field for thedrecord component.private final Vec3DrawableGizmoPrimitives.Line.endThe field for theendrecord component.private final Vec3[]DrawableGizmoPrimitives.TriangleFan.pointsThe field for thepointsrecord component.private final Vec3DrawableGizmoPrimitives.Point.posThe field for theposrecord component.private final Vec3DrawableGizmoPrimitives.Text.posThe field for theposrecord component.private final Vec3DrawableGizmoPrimitives.Line.startThe field for thestartrecord component.Methods in net.minecraft.client.renderer.gizmos that return Vec3Modifier and TypeMethodDescriptionDrawableGizmoPrimitives.Quad.a()Returns the value of thearecord component.DrawableGizmoPrimitives.Quad.b()Returns the value of thebrecord component.DrawableGizmoPrimitives.Quad.c()Returns the value of thecrecord component.DrawableGizmoPrimitives.Quad.d()Returns the value of thedrecord component.DrawableGizmoPrimitives.Line.end()Returns the value of theendrecord component.Vec3[]DrawableGizmoPrimitives.TriangleFan.points()Returns the value of thepointsrecord component.DrawableGizmoPrimitives.Point.pos()Returns the value of theposrecord component.DrawableGizmoPrimitives.Text.pos()Returns the value of theposrecord component.DrawableGizmoPrimitives.Line.start()Returns the value of thestartrecord component.Methods in net.minecraft.client.renderer.gizmos with parameters of type Vec3Modifier and TypeMethodDescriptionvoidvoidvoidvoidDrawableGizmoPrimitives.addText(Vec3 pos, String text, TextGizmo.Style style) voidDrawableGizmoPrimitives.addTriangleFan(Vec3[] points, int color) Constructors in net.minecraft.client.renderer.gizmos with parameters of type Vec3ModifierConstructorDescriptionprivateCreates an instance of aLinerecord class.privateCreates an instance of aPointrecord class.privateCreates an instance of aQuadrecord class.privateText(Vec3 pos, String text, TextGizmo.Style style) Creates an instance of aTextrecord class.privateTriangleFan(Vec3[] points, int color) Creates an instance of aTriangleFanrecord class. -
Uses of Vec3 in net.minecraft.client.renderer.state
Fields in net.minecraft.client.renderer.state declared as Vec3 -
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 position, Vec2 rotation, ServerLevel level, PermissionSet permissions, String textName, Component displayName, MinecraftServer server, @Nullable Entity entity) privateCommandSourceStack(CommandSource source, Vec3 position, Vec2 rotation, ServerLevel level, PermissionSet permissions, String textName, Component displayName, MinecraftServer server, @Nullable 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 sender) LocalCoordinates.getPosition(CommandSourceStack sender) WorldCoordinates.getPosition(CommandSourceStack sender) 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 @Nullable AABBEntitySelector.getAbsoluteAabb(Vec3 pos) EntitySelector.getPredicate(Vec3 pos, @Nullable AABB absoluteAabb, @Nullable FeatureFlagSet enabledFeatures) EntitySelector.sortAndLimit(Vec3 pos, List<T> result) 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, @Nullable MinMaxBounds.Doubles range, Function<Vec3, Vec3> position, @Nullable AABB aabb, BiConsumer<Vec3, List<? extends Entity>> order, boolean currentEntity, @Nullable String playerName, @Nullable UUID entityUUID, @Nullable EntityType<?> type, boolean usesSelector) EntitySelector(int maxResults, boolean includesEntities, boolean worldLimited, List<Predicate<Entity>> contextFreePredicates, @Nullable MinMaxBounds.Doubles range, Function<Vec3, Vec3> position, @Nullable AABB aabb, BiConsumer<Vec3, List<? extends Entity>> order, boolean currentEntity, @Nullable String playerName, @Nullable UUID entityUUID, @Nullable EntityType<?> type, boolean usesSelector) EntitySelector(int maxResults, boolean includesEntities, boolean worldLimited, List<Predicate<Entity>> contextFreePredicates, @Nullable MinMaxBounds.Doubles range, Function<Vec3, Vec3> position, @Nullable AABB aabb, BiConsumer<Vec3, List<? extends Entity>> order, boolean currentEntity, @Nullable String playerName, @Nullable UUID entityUUID, @Nullable EntityType<?> type, boolean usesSelector) -
Uses of Vec3 in net.minecraft.core
Fields in net.minecraft.core declared as Vec3Methods in net.minecraft.core that return Vec3Modifier and TypeMethodDescriptionBlockPos.clampLocationWithin(Vec3 location) BlockPos.getBottomCenter()BlockPos.getCenter()Direction.getUnitVec3()Methods in net.minecraft.core with parameters of type Vec3Modifier and TypeMethodDescriptionstatic ImmutableList<Direction.Axis> Direction.axisStepOrder(Vec3 movement) BlockPos.betweenCornersInDirection(int firstCornerX, int firstCornerY, int firstCornerZ, int secondCornerX, int secondCornerY, int secondCornerZ, Vec3 direction) BlockPos.betweenCornersInDirection(BlockPos firstCorner, BlockPos secondCorner, Vec3 direction) BlockPos.betweenCornersInDirection(AABB aabb, Vec3 direction) BlockPos.clampLocationWithin(Vec3 location) static DirectionDirection.getApproximateNearest(Vec3 vec) -
Uses of Vec3 in net.minecraft.core.dispenser
Methods in net.minecraft.core.dispenser that return Vec3 -
Uses of Vec3 in net.minecraft.core.particles
Fields in net.minecraft.core.particles declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3TrailParticleOption.targetThe field for thetargetrecord component.Methods in net.minecraft.core.particles that return Vec3Modifier and TypeMethodDescriptionTrailParticleOption.target()Returns the value of thetargetrecord component.Constructors in net.minecraft.core.particles with parameters of type Vec3ModifierConstructorDescriptionTrailParticleOption(Vec3 target, int color, int duration) Creates an instance of aTrailParticleOptionrecord class. -
Uses of Vec3 in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework that return Vec3Modifier and TypeMethodDescriptionGameTestHelper.absoluteVec(Vec3 relativeVec) GameTestHelper.relativeVec(Vec3 absoluteVec) Methods in net.minecraft.gametest.framework with parameters of type Vec3Modifier and TypeMethodDescriptionGameTestHelper.absoluteVec(Vec3 relativeVec) GameTestHelper.findEntities(EntityType<E> entityType, Vec3 pos, double distance) voidGameTestHelper.relativeVec(Vec3 absoluteVec) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> entityType, Vec3 pos) GameTestHelper.spawn(EntityType<E> entityType, Vec3 pos, int amount) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> entityType, Vec3 pos, @Nullable EntitySpawnReason spawnReason) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill(EntityType<E> entityType, Vec3 pos) -
Uses of Vec3 in net.minecraft.gizmos
Fields in net.minecraft.gizmos declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3RectGizmo.aThe field for thearecord component.private final Vec3RectGizmo.bThe field for thebrecord component.private final Vec3RectGizmo.cThe field for thecrecord component.private final Vec3RectGizmo.dThe field for thedrecord component.private final Vec3ArrowGizmo.endThe field for theendrecord component.private final Vec3LineGizmo.endThe field for theendrecord component.private final Vec3CircleGizmo.posThe field for theposrecord component.private final Vec3PointGizmo.posThe field for theposrecord component.private final Vec3TextGizmo.posThe field for theposrecord component.private final Vec3ArrowGizmo.startThe field for thestartrecord component.private final Vec3LineGizmo.startThe field for thestartrecord component.Methods in net.minecraft.gizmos that return Vec3Modifier and TypeMethodDescriptionRectGizmo.a()Returns the value of thearecord component.RectGizmo.b()Returns the value of thebrecord component.RectGizmo.c()Returns the value of thecrecord component.RectGizmo.d()Returns the value of thedrecord component.ArrowGizmo.end()Returns the value of theendrecord component.LineGizmo.end()Returns the value of theendrecord component.CircleGizmo.pos()Returns the value of theposrecord component.PointGizmo.pos()Returns the value of theposrecord component.TextGizmo.pos()Returns the value of theposrecord component.ArrowGizmo.start()Returns the value of thestartrecord component.LineGizmo.start()Returns the value of thestartrecord component.Methods in net.minecraft.gizmos with parameters of type Vec3Modifier and TypeMethodDescriptionvoidvoidvoidvoidGizmoPrimitives.addText(Vec3 pos, String text, TextGizmo.Style style) voidGizmoPrimitives.addTriangleFan(Vec3[] points, int color) static GizmoPropertiesstatic GizmoPropertiesstatic GizmoPropertiesGizmos.billboardText(String name, Vec3 pos, TextGizmo.Style style) static GizmoPropertiesGizmos.circle(Vec3 pos, float radius, GizmoStyle style) static RectGizmoRectGizmo.fromCuboidFace(Vec3 cuboidCornerA, Vec3 cuboidCornerB, Direction face, GizmoStyle style) static GizmoPropertiesstatic GizmoPropertiesstatic GizmoPropertiesstatic GizmoPropertiesGizmos.rect(Vec3 cuboidCornerA, Vec3 cuboidCornerB, Direction face, GizmoStyle style) static GizmoPropertiesConstructors in net.minecraft.gizmos with parameters of type Vec3ModifierConstructorDescriptionArrowGizmo(Vec3 start, Vec3 end, int color, float width) Creates an instance of aArrowGizmorecord class.CircleGizmo(Vec3 pos, float radius, GizmoStyle style) Creates an instance of aCircleGizmorecord class.Creates an instance of aLineGizmorecord class.PointGizmo(Vec3 pos, int color, float size) Creates an instance of aPointGizmorecord class.Creates an instance of aRectGizmorecord class.TextGizmo(Vec3 pos, String text, TextGizmo.Style style) Creates an instance of aTextGizmorecord class. -
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.game
Fields in net.minecraft.network.protocol.game declared as Vec3Modifier and TypeFieldDescriptionprivate Vec3VecDeltaCodec.baseprivate final Vec3ClientboundExplodePacket.centerThe field for thecenterrecord component.private final Vec3ServerboundInteractPacket.locationThe field for thelocationrecord component.private final Vec3ClientboundAddEntityPacket.movementprivate final Vec3ClientboundSetEntityMotionPacket.movementThe field for themovementrecord component.private final Vec3ClientboundMoveVehiclePacket.positionThe field for thepositionrecord component.private final Vec3ServerboundMoveVehiclePacket.positionThe field for thepositionrecord component.Fields in net.minecraft.network.protocol.game with type parameters of type Vec3Modifier and TypeFieldDescriptionClientboundExplodePacket.playerKnockbackThe field for theplayerKnockbackrecord component.ClientboundDamageEventPacket.sourcePositionThe field for thesourcePositionrecord component.Methods in net.minecraft.network.protocol.game that return Vec3Modifier and TypeMethodDescriptionClientboundExplodePacket.center()Returns the value of thecenterrecord component.VecDeltaCodec.decode(long xa, long ya, long za) VecDeltaCodec.getBase()ClientboundAddEntityPacket.getMovement()@Nullable Vec3ClientboundPlayerLookAtPacket.getPosition(Level level) ServerboundInteractPacket.location()Returns the value of thelocationrecord component.ClientboundSetEntityMotionPacket.movement()Returns the value of themovementrecord component.ClientboundMoveVehiclePacket.position()Returns the value of thepositionrecord component.ServerboundMoveVehiclePacket.position()Returns the value of thepositionrecord component.Methods in net.minecraft.network.protocol.game that return types with arguments of type Vec3Modifier and TypeMethodDescriptionClientboundExplodePacket.playerKnockback()Returns the value of theplayerKnockbackrecord component.ClientboundDamageEventPacket.sourcePosition()Returns the value of thesourcePositionrecord component.Methods in net.minecraft.network.protocol.game with parameters of type Vec3Modifier and TypeMethodDescriptionlonglonglongvoidConstructors 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 movement, double yHeadRot) ClientboundExplodePacket(Vec3 center, float radius, int blockCount, Optional<Vec3> playerKnockback, ParticleOptions explosionParticle, Holder<SoundEvent> explosionSound, WeightedList<ExplosionParticleInfo> blockParticles) Creates an instance of aClientboundExplodePacketrecord class.ClientboundMoveVehiclePacket(Vec3 position, float yRot, float xRot) Creates an instance of aClientboundMoveVehiclePacketrecord class.ClientboundSetEntityMotionPacket(int id, Vec3 movement) Creates an instance of aClientboundSetEntityMotionPacketrecord class.ServerboundInteractPacket(int entityId, InteractionHand hand, Vec3 location, boolean usingSecondaryAction) Creates an instance of aServerboundInteractPacketrecord class.ServerboundMoveVehiclePacket(Vec3 position, float yRot, float xRot, boolean onGround) Creates an instance of aServerboundMoveVehiclePacketrecord class.Constructor parameters in net.minecraft.network.protocol.game with type arguments of type Vec3ModifierConstructorDescriptionClientboundDamageEventPacket(int entityId, Holder<DamageType> sourceType, int sourceCauseId, int sourceDirectId, Optional<Vec3> sourcePosition) Creates an instance of aClientboundDamageEventPacketrecord class.ClientboundExplodePacket(Vec3 center, float radius, int blockCount, Optional<Vec3> playerKnockback, ParticleOptions explosionParticle, Holder<SoundEvent> explosionSound, WeightedList<ExplosionParticleInfo> blockParticles) Creates an instance of aClientboundExplodePacketrecord 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 Vec3LookAt.LookAtPosition.positionThe field for thepositionrecord component.Methods in net.minecraft.server.commands that return Vec3Modifier and TypeMethodDescriptionLookAt.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 nbt, boolean finalize) private static intLootCommand.dropInWorld(CommandSourceStack source, Vec3 pos, List<ItemStack> drops, LootCommand.Callback callback) private static intPlaySoundCommand.playSound(CommandSourceStack source, Collection<ServerPlayer> players, Identifier sound, SoundSource soundSource, Vec3 position, float volume, float pitch, float minVolume) private static intParticleCommand.sendParticles(CommandSourceStack source, ParticleOptions particle, Vec3 pos, Vec3 delta, float speed, int count, boolean force, Collection<ServerPlayer> players) private static intSummonCommand.spawnEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag nbt, boolean finalize) Constructors in net.minecraft.server.commands with parameters of type Vec3ModifierConstructorDescriptionLookAtPosition(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 @Nullable Vec3ServerPlayer.enteredLavaOnVehiclePositionprivate @Nullable Vec3ServerPlayer.enteredNetherPositionprivate Vec3ServerPlayer.lastKnownClientMovementprivate Vec3ServerEntity.lastSentMovementprivate @Nullable Vec3ServerPlayer.levitationStartPosprivate final Vec3ServerPlayer.RespawnPosAngle.positionThe field for thepositionrecord component.private @Nullable Vec3ServerPlayer.startingToFallPositionFields in net.minecraft.server.level with type parameters of type Vec3Modifier and TypeFieldDescriptionprivate final CompletableFuture<Vec3> PlayerSpawnFinder.finishedFutureServerPlayer.SavedPosition.positionThe field for thepositionrecord component.Methods in net.minecraft.server.level that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3PlayerSpawnFinder.fixupSpawnHeight(CollisionGetter level, BlockPos spawnPos) ServerPlayer.getKnownMovement()ServerPlayer.getKnownSpeed()ServerPlayer.getLastClientMoveIntent()ServerEntity.getLastSentMovement()ServerEntity.getPositionBase()ServerPlayer.RespawnPosAngle.position()Returns the value of thepositionrecord component.Methods in net.minecraft.server.level that return types with arguments of type Vec3Modifier and TypeMethodDescriptionstatic CompletableFuture<Vec3> PlayerSpawnFinder.findSpawn(ServerLevel level, BlockPos spawnSuggestion) ServerPlayer.SavedPosition.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 lookAtBlockPos) private static doubleChunkMap.euclideanDistanceSquared(ChunkPos chunkPos, Vec3 pos) voidServerLevel.gameEvent(Holder<GameEvent> gameEvent, Vec3 position, GameEvent.Context context) voidWorldGenRegion.gameEvent(Holder<GameEvent> gameEvent, Vec3 position, GameEvent.Context context) voidServerPlayer.lookAt(EntityAnchorArgument.Anchor anchor, Vec3 pos) static ServerPlayer.RespawnPosAngleprivate booleanChunkMap.playerIsCloseEnoughTo(ServerPlayer player, Vec3 pos, int maxDistance) voidServerPlayer.setKnownMovement(Vec3 lastKnownClientMovement) Method parameters in net.minecraft.server.level with type arguments of type Vec3Modifier and TypeMethodDescriptionprivate voidPlayerSpawnFinder.scheduleCandidate(int candidateX, int candidateZ, int candidateIndex, Supplier<Optional<Vec3>> candidateChecker) Constructors in net.minecraft.server.level with parameters of type Vec3ModifierConstructorDescriptionRespawnPosAngle(Vec3 position, float yaw, float pitch) 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 @Nullable Vec3ServerGamePacketListenerImpl.awaitingPositionFromClientMethods in net.minecraft.server.network with parameters of type Vec3Modifier and TypeMethodDescriptionprivate voidServerGamePacketListenerImpl.handlePlayerKnownMovement(Vec3 movement) -
Uses of Vec3 in net.minecraft.server.network.config
Fields in net.minecraft.server.network.config declared as Vec3Fields in net.minecraft.server.network.config with type parameters of type Vec3Modifier and TypeFieldDescriptionprivate final CompletableFuture<Vec3> PrepareSpawnTask.Preparing.spawnPositionConstructors in net.minecraft.server.network.config with parameters of type Vec3ModifierConstructorDescriptionprivateReady(ServerLevel spawnLevel, Vec3 spawnPosition, Vec2 spawnAngle) Constructor parameters in net.minecraft.server.network.config with type arguments of type Vec3ModifierConstructorDescriptionprivatePreparing(ServerLevel spawnLevel, CompletableFuture<Vec3> spawnPosition, Vec2 spawnAngle) -
Uses of Vec3 in net.minecraft.util
Methods in net.minecraft.util that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3ParticleUtils.getRandomSpeedRanges(RandomSource random) static Vec3Methods in net.minecraft.util with parameters of type Vec3Modifier and TypeMethodDescriptionstatic intstatic Vec3static booleanMth.rayIntersectsAABB(Vec3 rayStart, Vec3 rayDir, AABB aabb) static voidParticleUtils.spawnParticleOnFace(Level level, BlockPos pos, Direction face, ParticleOptions particle, Vec3 speed, double stepFactor) Method parameters in net.minecraft.util with type arguments of type Vec3Modifier and TypeMethodDescriptionstatic voidParticleUtils.spawnParticlesOnBlockFace(Level level, BlockPos pos, ParticleOptions particle, IntProvider particlesPerFaceRange, Direction face, Supplier<Vec3> speedSupplier, double stepFactor) -
Uses of Vec3 in net.minecraft.util.debug
Fields in net.minecraft.util.debug declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3DebugGameEventInfo.posThe field for theposrecord component.Methods in net.minecraft.util.debug that return Vec3Modifier and TypeMethodDescriptionDebugGameEventInfo.pos()Returns the value of theposrecord component.Constructors in net.minecraft.util.debug with parameters of type Vec3ModifierConstructorDescriptionDebugGameEventInfo(Holder<GameEvent> event, Vec3 pos) Creates an instance of aDebugGameEventInforecord class. -
Uses of Vec3 in net.minecraft.world.attribute
Fields in net.minecraft.world.attribute declared as Vec3Methods in net.minecraft.world.attribute with parameters of type Vec3Modifier and TypeMethodDescriptionEnvironmentAttributeLayer.Positional.applyPositional(Value baseValue, Vec3 pos, @Nullable SpatialAttributeInterpolator biomeInterpolator) private ValueEnvironmentAttributeSystem.ValueSampler.computeValuePositional(Vec3 pos, @Nullable SpatialAttributeInterpolator biomeInterpolator) default <Value> ValueEnvironmentAttributeReader.getValue(EnvironmentAttribute<Value> attribute, Vec3 pos) <Value> ValueEnvironmentAttributeReader.getValue(EnvironmentAttribute<Value> attribute, Vec3 pos, @Nullable SpatialAttributeInterpolator biomeInterpolator) <Value> ValueEnvironmentAttributeSystem.getValue(EnvironmentAttribute<Value> attribute, Vec3 pos, @Nullable SpatialAttributeInterpolator biomeInterpolator) EnvironmentAttributeSystem.ValueSampler.getValue(Vec3 pos, @Nullable SpatialAttributeInterpolator biomeInterpolator) static <V> voidGaussianSampler.sample(Vec3 position, GaussianSampler.Sampler<V> sampler, GaussianSampler.Accumulator<V> accumulator) void -
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 TypeMethodDescription@Nullable Vec3DamageSource.getSourcePosition()@Nullable Vec3DamageSource.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, @Nullable Entity directEntity, @Nullable Entity causingEntity, @Nullable 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, @Nullable Entity source, Vec3 position, double radius, MobEffectInstance effectInstance, int displayEffectLimit) -
Uses of Vec3 in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as Vec3Modifier and TypeFieldDescriptionstatic final Vec3Leashable.AXIS_SPECIFIC_ELASTICITY@Nullable Vec3LivingEntity.currentImpulseImpactPosstatic final Vec3Avatar.DEFAULT_VEHICLE_ATTACHMENTprivate Vec3Entity.deltaMovementprivate final Vec3PositionMoveRotation.deltaMovementThe field for thedeltaMovementrecord component.private final Vec3Leashable.Wrench.forceThe field for theforcerecord component.private final Vec3Entity.Movement.fromThe field for thefromrecord component.private @Nullable Vec3Entity.lastKnownPositionprivate Vec3Entity.lastKnownSpeedprivate final Vec3ItemOwner.OffsetFromOwner.offsetThe field for theoffsetrecord component.private Vec3Entity.position(package private) Vec3InterpolationHandler.InterpolationData.positionprivate final Vec3PositionMoveRotation.positionThe field for thepositionrecord component.private @Nullable Vec3InterpolationHandler.previousTickPositionprotected Vec3Entity.stuckSpeedMultiplierprivate final Vec3Entity.Movement.toThe field for thetorecord component.Fields 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.attachmentsEntity.Movement.axisDependentOriginalMovementThe field for theaxisDependentOriginalMovementrecord component.Leashable.ENTITY_ATTACHMENT_POINTLeashable.LEASHER_ATTACHMENT_POINTLeashable.SHARED_QUAD_ATTACHMENT_POINTSEntityAttachment.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(@Nullable Entity source, Vec3 movement, AABB boundingBox, Level level, List<VoxelShape> entityColliders) private static Vec3Entity.collideWithShapes(Vec3 movement, AABB boundingBox, List<VoxelShape> shapes) static Vec3[]Leashable.createQuadLeashOffsets(Entity entity, double frontOffset, double frontBack, double leftRight, double height) PositionMoveRotation.deltaMovement()Returns the value of thedeltaMovementrecord component.Leashable.Wrench.force()Returns the value of theforcerecord component.Entity.Movement.from()Returns the value of thefromrecord component.EntityAttachments.get(EntityAttachment attachment, int index, float rotY) EntityAttachments.getAverage(EntityAttachment attachment) EntityAttachments.getClamped(EntityAttachment attachment, int index, float rotY) protected static Vec3Entity.getCollisionHorizontalEscapeVector(double colliderWidth, double collidingWidth, float directionDegrees) protected static Vec3Entity.getDefaultPassengerAttachmentPoint(Entity vehicle, Entity passenger, EntityAttachments attachments) Entity.getDeltaMovement()Entity.getDismountLocationForPassenger(LivingEntity passenger) final Vec3Entity.getEyePosition()final Vec3Entity.getEyePosition(float partialTickTime) LivingEntity.getFluidFallingAdjustedMovement(double baseGravity, boolean isFalling, Vec3 movement) Entity.getForward()Entity.getHandHoldingItemAngle(Item item) Entity.getHeadLookAngle()private static Vec3Leashable.getHolderMovement(Entity leashHolder) protected static Vec3Entity.getInputVector(Vec3 input, float speed, float yRot) Entity.getKnownMovement()Entity.getKnownSpeed()default Vec3Leashable.getLeashOffset()default Vec3Leashable.getLeashOffset(float partialTicks) Entity.getLightProbePosition(float partialTickTime) Entity.getLookAngle()@Nullable Vec3EntityAttachments.getNullable(EntityAttachment attachment, int index, float rotY) protected Vec3Entity.getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale) Entity.getPassengerRidingPosition(Entity passenger) LivingEntity.getPassengerRidingPosition(Entity passenger) final Vec3Entity.getPosition(float partialTickTime) Vec3[]Entity.getQuadLeashHolderOffsets()default Vec3[]Leashable.getQuadLeashOffsets()Entity.getRelativePortalPosition(Direction.Axis axis, BlockUtil.FoundRectangle portalArea) LivingEntity.getRelativePortalPosition(Direction.Axis axis, BlockUtil.FoundRectangle portalArea) protected Vec3LivingEntity.getRiddenInput(Player controller, Vec3 selfInput) Entity.getRopeHoldPosition(float partialTickTime) final Vec3Entity.getUpVector(float a) Entity.getVehicleAttachmentPoint(Entity vehicle) final Vec3Entity.getViewVector(float a) Gets the interpolated look vector.private Vec3LivingEntity.handleOnClimbable(Vec3 delta) private Vec3LivingEntity.handleRelativeFrictionAndCalculateMovement(Vec3 input, float friction) protected Vec3Entity.limitPistonMovement(Vec3 vec) protected Vec3Entity.maybeBackOffFromEdge(Vec3 delta, MoverType moverType) ItemOwner.OffsetFromOwner.offset()Returns the value of theoffsetrecord component.final Vec3Entity.oldPosition()Entity.position()InterpolationHandler.position()ItemOwner.OffsetFromOwner.position()ItemOwner.position()PositionMoveRotation.position()Returns the value of thepositionrecord component.static Vec3LivingEntity.resetForwardDirectionOfRelativePortalPosition(Vec3 offsets) Entity.Movement.to()Returns the value of thetorecord component.Entity.trackingPosition()private static Vec3EntityAttachments.transformPoint(Vec3 point, float rotY) private Vec3LivingEntity.updateFallFlyingMovement(Vec3 movement) Methods in net.minecraft.world.entity that return types with arguments of type Vec3Modifier and TypeMethodDescriptionEntity.Movement.axisDependentOriginalMovement()Returns the value of theaxisDependentOriginalMovementrecord component.EntityAttachment.Fallback.create(float width, float height) EntityAttachment.createFallbackPoints(float width, float height) Methods in net.minecraft.world.entity with parameters of type Vec3Modifier and TypeMethodDescriptionvoidvoidEntity.addDeltaMovement(Vec3 momentum) voidEntity.applyEffectsFromBlocks(Vec3 from, Vec3 to) private voidEntity.applyMovementEmissionAndPlaySound(Entity.MovementEmission emission, Vec3 clippedMovement, BlockPos effectPos, BlockState effectState) EntityAttachments.Builder.attach(EntityAttachment attachment, Vec3 point) EntityType.Builder.attach(EntityAttachment attachment, Vec3 point) static voidExperienceOrb.award(ServerLevel level, Vec3 pos, int amount) static voidExperienceOrb.awardWithDirection(ServerLevel level, Vec3 pos, Vec3 roughDirection, int amount) voidLivingEntity.causeExtraKnockback(Entity target, float knockback, Vec3 oldMovement) private intEntity.checkInsideBlocks(Vec3 from, Vec3 to, InsideBlockEffectApplier.StepBasedCollector effectCollector, it.unimi.dsi.fastutil.longs.LongSet visitedBlocks, int maxMovementIterations) protected voidEntity.checkSupportingBlock(boolean onGround, @Nullable 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(@Nullable Entity source, Vec3 movement, AABB boundingBox, Level level, List<VoxelShape> entityColliders) booleanEntity.collidedWithFluid(FluidState fluidState, BlockPos blockPos, Vec3 from, Vec3 to) booleanEntity.collidedWithShapeMovingFrom(Vec3 from, Vec3 to, List<AABB> aabbs) private static Vec3Entity.collideWithShapes(Vec3 movement, AABB boundingBox, List<VoxelShape> shapes) private static Optional<Leashable.Wrench> Leashable.computeDampenedSpringInteraction(Vec3 pivotPoint, Vec3 objectPosition, double springSlack, Vec3 objectMotion, Vec3 leverArm) doubleEntity.distanceToSqr(Vec3 pos) LivingEntity.getFluidFallingAdjustedMovement(double baseGravity, boolean isFalling, Vec3 movement) protected static Vec3Entity.getInputVector(Vec3 input, float speed, float yRot) protected Vec3LivingEntity.getRiddenInput(Player controller, Vec3 selfInput) private Vec3LivingEntity.handleOnClimbable(Vec3 delta) private Vec3LivingEntity.handleRelativeFrictionAndCalculateMovement(Vec3 input, float friction) Entity.interact(Player player, InteractionHand hand, Vec3 location) Interaction.interact(Player player, InteractionHand hand, Vec3 location) Mob.interact(Player player, InteractionHand hand, Vec3 location) voidInterpolationHandler.interpolateTo(Vec3 position, float yRot, float xRot) protected booleanEntity.isHorizontalCollisionMinor(Vec3 movement) booleanMob.isWithinHome(Vec3 pos) Leashable.leashableInArea(Level level, Vec3 pos, Predicate<Leashable> test) voidEntity.lerpMotion(Vec3 movement) protected Vec3Entity.limitPistonMovement(Vec3 vec) voidEntity.lookAt(EntityAnchorArgument.Anchor anchor, Vec3 pos) voidLivingEntity.lookAt(EntityAnchorArgument.Anchor anchor, Vec3 pos) protected AABBEntity.makeBoundingBox(Vec3 position) EntityDimensions.makeBoundingBox(Vec3 pos) protected AABBInteraction.makeBoundingBox(Vec3 position) voidEntity.makeStuckInBlock(BlockState blockState, Vec3 speedMultiplier) protected Vec3Entity.maybeBackOffFromEdge(Vec3 delta, MoverType moverType) voidfinal voidEntity.moveOrInterpolateTo(Vec3 position) final voidEntity.moveOrInterpolateTo(Vec3 position, float yRot, float xRot) voidEntity.moveRelative(float speed, Vec3 input) static ItemOwnerItemOwner.offsetFromOwner(ItemOwner owner, Vec3 offset) EntityType.Builder.passengerAttachments(Vec3... points) voidstatic Vec3LivingEntity.resetForwardDirectionOfRelativePortalPosition(Vec3 offsets) voidEntity.setDeltaMovement(Vec3 deltaMovement) voidLivingEntity.setIgnoreFallDamageFromCurrentImpulse(boolean ignoreFallDamage, Vec3 newImpulseImpactPos) private voidfinal voidEntity.setOldPosAndRot(Vec3 position, float yRot, float xRot) voidEntity.setOnGroundWithMovement(boolean onGround, boolean horizontalCollision, Vec3 movement) voidEntity.setOnGroundWithMovement(boolean onGround, Vec3 movement) final voidvoidvoid@Nullable ItemEntityEntity.spawnAtLocation(ServerLevel level, ItemStack itemStack, Vec3 offset) protected voidLivingEntity.tickRidden(Player controller, Vec3 riddenInput) (package private) static doubleLeashable.Wrench.torqueFromForce(Vec3 leverArm, Vec3 force) private static Vec3EntityAttachments.transformPoint(Vec3 point, float rotY) voidprivate voidLivingEntity.travelFallFlying(Vec3 input) protected voidLivingEntity.travelFlying(Vec3 input, float speed) protected voidLivingEntity.travelFlying(Vec3 input, float waterSpeed, float lavaSpeed, float airSpeed) private voidLivingEntity.travelInAir(Vec3 input) private voidLivingEntity.travelInFluid(Vec3 input) Deprecated.Neo: useLivingEntity.travelInFluid(Vec3, FluidState)insteadprivate voidLivingEntity.travelInFluid(Vec3 input, FluidState fluidState) private voidLivingEntity.travelInLava(Vec3 input, double baseGravity, boolean isFalling, double oldY) protected voidLivingEntity.travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY) private voidLivingEntity.travelRidden(Player controller, Vec3 selfInput) private static booleanExperienceOrb.tryMergeToExisting(ServerLevel level, Vec3 pos, int value) private Vec3LivingEntity.updateFallFlyingMovement(Vec3 movement) EntityType.Builder.vehicleAttachment(Vec3 point) private booleanEntity.vibrationAndSoundEffectsFromBlock(BlockPos pos, BlockState blockState, boolean shouldSound, boolean shouldVibrate, Vec3 clippedMovement) Method parameters in net.minecraft.world.entity with type arguments of type Vec3Modifier and TypeMethodDescriptionprivate static <E extends Entity & Leashable>
List<Leashable.Wrench> Leashable.computeElasticInteraction(E entity, Entity leashHolder, List<Vec3> entityAttachmentPoints, List<Vec3> leasherAttachmentPoints) final voidConstructors in net.minecraft.world.entity with parameters of type Vec3ModifierConstructorDescriptionExperienceOrb(Level level, Vec3 pos, Vec3 roughly, int value) privateInterpolationData(int steps, Vec3 position, float yRot, float xRot) privateCreates an instance of aMovementrecord class.OffsetFromOwner(ItemOwner owner, Vec3 offset) Creates an instance of aOffsetFromOwnerrecord class.PositionMoveRotation(Vec3 position, Vec3 deltaMovement, float yRot, float xRot) Creates an instance of aPositionMoveRotationrecord class.Creates an instance of aWrenchrecord class.Constructor parameters in net.minecraft.world.entity with type arguments of type Vec3ModifierConstructorDescriptionprivateEntityAttachments(Map<EntityAttachment, List<Vec3>> attachments) privateCreates an instance of aMovementrecord class. -
Uses of Vec3 in net.minecraft.world.entity.ai
Methods in net.minecraft.world.entity.ai with parameters of type Vec3Modifier and TypeMethodDescriptionvoidBrain.updateActivityFromSchedule(EnvironmentAttributeSystem environmentAttributes, long gameTime, Vec3 pos) -
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.centerPositionprivate Vec3ChargeAttack.chargeVelocityVectorprotected @Nullable Vec3LongJumpToRandomPos.chosenJumpprivate Vec3RamTarget.ramDirectionprivate Vec3ChargeAttack.startPositionprivate final Vec3GoAndGiveItemsToTarget.throwVelocityFields 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 @Nullable Vec3LongJumpToRandomPos.calculateOptimalJumpVector(Mob body, Vec3 targetPos) BlockPosTracker.currentPosition()EntityTracker.currentPosition()PositionTracker.currentPosition()private Vec3TransportItemsBetweenContainers.getCenterPos(PathfinderMob body) private Vec3PrepareRamNearestTarget.getEdgeOfBlock(BlockPos startRamPos, BlockPos targetPos) private static @Nullable Vec3MoveToSkySeeingSpot.getOutdoorPosition(ServerLevel level, LivingEntity body) private @Nullable Vec3AnimalPanic.getPanicPos(E body, ServerLevel level) private Vec3TransportItemsBetweenContainers.getPositionToReachTargetFrom(@Nullable Path path, PathfinderMob body) static @Nullable Vec3BehaviorUtils.getRandomSwimmablePos(PathfinderMob body, int maxHorizontalDistance, int maxVerticalDistance) private static @Nullable Vec3RandomStroll.getTargetFlyPos(PathfinderMob body, int maxHorizontalDistance, int maxVerticalDistance) private static @Nullable Vec3RandomStroll.getTargetSwimPos(PathfinderMob body) private Vec3TransportItemsBetweenContainers.setMiddleYPosition(PathfinderMob body, Vec3 pos) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type Vec3Modifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle(Mob body, Vec3 targetPos, float maxJumpVelocity, int angle, boolean checkCollision) Methods in net.minecraft.world.entity.ai.behavior with parameters of type Vec3Modifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle(Mob body, Vec3 targetPos, float maxJumpVelocity, int angle, boolean checkCollision) protected @Nullable Vec3LongJumpToRandomPos.calculateOptimalJumpVector(Mob body, Vec3 targetPos) private booleanTransportItemsBetweenContainers.canSeeAnyTargetSide(TransportItemsBetweenContainers.TransportItemTarget target, Level level, PathfinderMob body, Vec3 eyePosition) private static booleanLongJumpUtil.isClearTransition(Mob body, EntityDimensions entityDimensions, Vec3 position1, Vec3 position2) private booleanTransportItemsBetweenContainers.isWithinTargetDistance(double distance, TransportItemsBetweenContainers.TransportItemTarget target, Level level, PathfinderMob body, Vec3 fromPos) private Vec3TransportItemsBetweenContainers.setMiddleYPosition(PathfinderMob body, Vec3 pos) private booleanTransportItemsBetweenContainers.targetIsReachableFromPosition(Level level, boolean canReachTarget, Vec3 pos, TransportItemsBetweenContainers.TransportItemTarget target, PathfinderMob body) static voidBehaviorUtils.throwItem(LivingEntity thrower, ItemStack item, Vec3 targetPos) static voidBehaviorUtils.throwItem(LivingEntity thrower, ItemStack item, Vec3 targetPos, Vec3 throwVelocity, float handYDistanceFromEye) 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> walkAwayFromMemory, float speedModifier, int desiredDistance, boolean interruptCurrentWalk, Function<T, Vec3> toPosition) private static OneShot<PathfinderMob> RandomStroll.strollFlyOrSwim(float speedModifier, Function<PathfinderMob, Vec3> fetchTargetPos, Predicate<PathfinderMob> canRun) 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
Fields in net.minecraft.world.entity.ai.goal declared as Vec3Methods in net.minecraft.world.entity.ai.goal that return Vec3Modifier and TypeMethodDescriptionprotected @Nullable Vec3FleeSunGoal.getHidePos()protected @Nullable Vec3GolemRandomStrollInVillageGoal.getPosition()protected @Nullable Vec3MoveBackToVillageGoal.getPosition()protected @Nullable Vec3RandomStrollGoal.getPosition()protected @Nullable Vec3RandomSwimmingGoal.getPosition()protected @Nullable Vec3WaterAvoidingRandomFlyingGoal.getPosition()protected @Nullable Vec3WaterAvoidingRandomStrollGoal.getPosition()private @Nullable Vec3GolemRandomStrollInVillageGoal.getPositionTowardsAnywhere()private @Nullable Vec3GolemRandomStrollInVillageGoal.getPositionTowardsPoi()private @Nullable 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 Vec3Modifier and TypeFieldDescriptionstatic final MemoryModuleType<Vec3> MemoryModuleType.RAM_TARGETstatic final MemoryModuleType<Vec3> MemoryModuleType.SPEAR_CHARGE_POSITIONstatic final MemoryModuleType<Vec3> MemoryModuleType.SPEAR_FLEEING_POSITIONConstructors in net.minecraft.world.entity.ai.memory with parameters of type Vec3ModifierConstructorDescriptionWalkTarget(Vec3 target, 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 @Nullable Vec3RandomPos.generateRandomPos(Supplier<@Nullable BlockPos> posSupplier, ToDoubleFunction<BlockPos> positionWeightFunction) Tries 10 times to maximize the return value of the position to double function based on the supplied positionstatic @Nullable Vec3RandomPos.generateRandomPos(PathfinderMob mob, Supplier<@Nullable BlockPos> posSupplier) static @Nullable Vec3AirAndWaterRandomPos.getPos(PathfinderMob mob, int horizontalDist, int verticalDist, int flyingHeight, double xDir, double zDir, double maxXzRadiansDifference) static @Nullable Vec3DefaultRandomPos.getPos(PathfinderMob mob, int horizontalDist, int verticalDist) static @Nullable Vec3HoverRandomPos.getPos(PathfinderMob mob, int horizontalDist, int verticalDist, double xDir, double zDir, float maxXzRadiansDifference, int hoverMaxHeight, int hoverMinHeight) Tries to generate a random position a couple different ways, and if failing, sees if swimming vertically is an option.static @Nullable Vec3LandRandomPos.getPos(PathfinderMob mob, int horizontalDist, int verticalDist) static @Nullable Vec3LandRandomPos.getPos(PathfinderMob mob, int horizontalDist, int verticalDist, ToDoubleFunction<BlockPos> positionWeight) static @Nullable Vec3DefaultRandomPos.getPosAway(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 avoidPos) static @Nullable Vec3LandRandomPos.getPosAway(PathfinderMob mob, double minHorizontalDist, double maxHorizontalDist, int verticalDist, Vec3 avoidPos) static @Nullable Vec3LandRandomPos.getPosAway(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 avoidPos) private static @Nullable Vec3LandRandomPos.getPosInDirection(PathfinderMob mob, double minHorizontalDist, double maxHorizontalDist, int verticalDist, Vec3 dir, boolean restrict) static @Nullable Vec3AirRandomPos.getPosTowards(PathfinderMob mob, int horizontalDist, int verticalDist, int flyingHeight, Vec3 towardsPos, double maxXzRadiansFromDir) static @Nullable Vec3DefaultRandomPos.getPosTowards(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 towardsPos, double maxXzRadiansFromDir) static @Nullable Vec3LandRandomPos.getPosTowards(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 towardsPos) Methods in net.minecraft.world.entity.ai.util with parameters of type Vec3Modifier and TypeMethodDescriptionstatic @Nullable Vec3DefaultRandomPos.getPosAway(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 avoidPos) static @Nullable Vec3LandRandomPos.getPosAway(PathfinderMob mob, double minHorizontalDist, double maxHorizontalDist, int verticalDist, Vec3 avoidPos) static @Nullable Vec3LandRandomPos.getPosAway(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 avoidPos) private static @Nullable Vec3LandRandomPos.getPosInDirection(PathfinderMob mob, double minHorizontalDist, double maxHorizontalDist, int verticalDist, Vec3 dir, boolean restrict) static @Nullable Vec3AirRandomPos.getPosTowards(PathfinderMob mob, int horizontalDist, int verticalDist, int flyingHeight, Vec3 towardsPos, double maxXzRadiansFromDir) static @Nullable Vec3DefaultRandomPos.getPosTowards(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 towardsPos, double maxXzRadiansFromDir) static @Nullable Vec3LandRandomPos.getPosTowards(PathfinderMob mob, int horizontalDist, int verticalDist, Vec3 towardsPos) static booleanGoalUtils.isRestricted(boolean restrict, PathfinderMob mob, Vec3 pos) -
Uses of Vec3 in net.minecraft.world.entity.ai.village
Methods in net.minecraft.world.entity.ai.village that return Vec3Modifier and TypeMethodDescriptionprivate @Nullable Vec3VillageSiege.findRandomSpawnPos(ServerLevel level, BlockPos pos) -
Uses of Vec3 in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal that return Vec3 -
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> event, GameEvent.Context context, Vec3 sourcePosition) void -
Uses of Vec3 in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidAxolotl.travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY) -
Uses of Vec3 in net.minecraft.world.entity.animal.bee
Fields in net.minecraft.world.entity.animal.bee declared as Vec3Methods in net.minecraft.world.entity.animal.bee that return Vec3Modifier and TypeMethodDescriptionprivate @Nullable Vec3Bee.BeeWanderGoal.findPos()Bee.getLeashOffset() -
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 partialTicks) protected Vec3Camel.getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale) Vec3[]Camel.getQuadLeashOffsets()protected Vec3Camel.getRiddenInput(Player controller, Vec3 selfInput) Methods in net.minecraft.world.entity.animal.camel with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidCamel.executeRidersJump(float amount, Vec3 input) protected Vec3Camel.getRiddenInput(Player controller, Vec3 selfInput) CamelHusk.interact(Player player, InteractionHand hand, Vec3 location) protected voidCamel.tickRidden(Player controller, Vec3 riddenInput) void -
Uses of Vec3 in net.minecraft.world.entity.animal.dolphin
Methods in net.minecraft.world.entity.animal.dolphin with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidDolphin.travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY) -
Uses of Vec3 in net.minecraft.world.entity.animal.equine
Methods in net.minecraft.world.entity.animal.equine that return Vec3Modifier and TypeMethodDescriptionAbstractHorse.getDismountLocationForPassenger(LivingEntity passenger) private @Nullable Vec3AbstractHorse.getDismountLocationInDirection(Vec3 direction, LivingEntity passenger) Llama.getLeashOffset()protected Vec3AbstractHorse.getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale) protected Vec3Llama.getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale) Vec3[]AbstractChestedHorse.getQuadLeashOffsets()Vec3[]AbstractHorse.getQuadLeashOffsets()Vec3[]ZombieHorse.getQuadLeashOffsets()protected Vec3AbstractHorse.getRiddenInput(Player controller, Vec3 selfInput) Methods in net.minecraft.world.entity.animal.equine with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidAbstractHorse.executeRidersJump(float amount, Vec3 input) private @Nullable Vec3AbstractHorse.getDismountLocationInDirection(Vec3 direction, LivingEntity passenger) protected Vec3AbstractHorse.getRiddenInput(Player controller, Vec3 selfInput) ZombieHorse.interact(Player player, InteractionHand hand, Vec3 location) protected voidAbstractHorse.tickRidden(Player controller, Vec3 riddenInput) -
Uses of Vec3 in net.minecraft.world.entity.animal.feline
Methods in net.minecraft.world.entity.animal.feline that return Vec3 -
Uses of Vec3 in net.minecraft.world.entity.animal.fish
Methods in net.minecraft.world.entity.animal.fish with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidAbstractFish.travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY) -
Uses of Vec3 in net.minecraft.world.entity.animal.fox
Methods in net.minecraft.world.entity.animal.fox that return Vec3 -
Uses of Vec3 in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidFrog.travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY) -
Uses of Vec3 in net.minecraft.world.entity.animal.golem
Methods in net.minecraft.world.entity.animal.golem that return Vec3Modifier and TypeMethodDescriptionCopperGolem.getLeashOffset()IronGolem.getLeashOffset()SnowGolem.getLeashOffset() -
Uses of Vec3 in net.minecraft.world.entity.animal.happyghast
Methods in net.minecraft.world.entity.animal.happyghast that return Vec3Modifier and TypeMethodDescriptionHappyGhast.getDismountLocationForPassenger(LivingEntity passenger) HappyGhast.getLeashOffset()Vec3[]HappyGhast.getQuadLeashHolderOffsets()protected Vec3HappyGhast.getRiddenInput(Player controller, Vec3 selfInput) Methods in net.minecraft.world.entity.animal.happyghast with parameters of type Vec3Modifier and TypeMethodDescriptionprotected booleanHappyGhast.BabyFlyingPathNavigation.canMoveDirectly(Vec3 startPos, Vec3 stopPos) protected Vec3HappyGhast.getRiddenInput(Player controller, Vec3 selfInput) protected voidHappyGhast.tickRidden(Player controller, Vec3 riddenInput) void -
Uses of Vec3 in net.minecraft.world.entity.animal.nautilus
Methods in net.minecraft.world.entity.animal.nautilus that return Vec3Modifier and TypeMethodDescriptionprotected Vec3AbstractNautilus.getRiddenInput(Player controller, Vec3 selfInput) Methods in net.minecraft.world.entity.animal.nautilus with parameters of type Vec3Modifier and TypeMethodDescriptionprotected Vec3AbstractNautilus.getRiddenInput(Player controller, Vec3 selfInput) AbstractNautilus.interact(Player player, InteractionHand hand, Vec3 location) protected voidAbstractNautilus.tickRidden(Player controller, Vec3 riddenInput) protected voidAbstractNautilus.travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY) -
Uses of Vec3 in net.minecraft.world.entity.animal.panda
Fields in net.minecraft.world.entity.animal.panda declared as Vec3 -
Uses of Vec3 in net.minecraft.world.entity.animal.parrot
Methods in net.minecraft.world.entity.animal.parrot that return Vec3Modifier and TypeMethodDescriptionParrot.getLeashOffset()protected @Nullable Vec3Parrot.ParrotWanderGoal.getPosition()private @Nullable Vec3Parrot.ParrotWanderGoal.getTreePos() -
Uses of Vec3 in net.minecraft.world.entity.animal.pig
Methods in net.minecraft.world.entity.animal.pig that return Vec3Modifier and TypeMethodDescriptionPig.getLeashOffset()protected Vec3Pig.getRiddenInput(Player controller, Vec3 selfInput) Methods in net.minecraft.world.entity.animal.pig with parameters of type Vec3Modifier and TypeMethodDescriptionprotected Vec3Pig.getRiddenInput(Player controller, Vec3 selfInput) protected voidPig.tickRidden(Player controller, Vec3 riddenInput) -
Uses of Vec3 in net.minecraft.world.entity.animal.rabbit
Methods in net.minecraft.world.entity.animal.rabbit that return Vec3 -
Uses of Vec3 in net.minecraft.world.entity.animal.sniffer
Methods in net.minecraft.world.entity.animal.sniffer that return Vec3Modifier and TypeMethodDescriptionprivate Vec3Sniffer.getHeadPosition()Vec3[]Sniffer.getQuadLeashOffsets() -
Uses of Vec3 in net.minecraft.world.entity.animal.squid
Fields in net.minecraft.world.entity.animal.squid declared as Vec3Methods in net.minecraft.world.entity.animal.squid that return Vec3Methods in net.minecraft.world.entity.animal.squid with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.entity.animal.turtle
Methods in net.minecraft.world.entity.animal.turtle with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidTurtle.travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY) -
Uses of Vec3 in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf that return Vec3 -
Uses of Vec3 in net.minecraft.world.entity.boss.enderdragon
Methods in net.minecraft.world.entity.boss.enderdragon that return Vec3 -
Uses of Vec3 in net.minecraft.world.entity.boss.enderdragon.phases
Fields in net.minecraft.world.entity.boss.enderdragon.phases declared as Vec3Modifier and TypeFieldDescriptionprivate @Nullable Vec3DragonChargePlayerPhase.targetLocationprivate @Nullable Vec3DragonDeathPhase.targetLocationprivate @Nullable Vec3DragonHoldingPatternPhase.targetLocationprivate @Nullable Vec3DragonHoverPhase.targetLocationprivate @Nullable Vec3DragonLandingApproachPhase.targetLocationprivate @Nullable Vec3DragonLandingPhase.targetLocationprivate @Nullable Vec3DragonStrafePlayerPhase.targetLocationprivate @Nullable Vec3DragonTakeoffPhase.targetLocationMethods in net.minecraft.world.entity.boss.enderdragon.phases that return Vec3Modifier and TypeMethodDescription@Nullable Vec3AbstractDragonPhaseInstance.getFlyTargetLocation()@Nullable Vec3DragonChargePlayerPhase.getFlyTargetLocation()@Nullable Vec3DragonDeathPhase.getFlyTargetLocation()@Nullable Vec3DragonHoldingPatternPhase.getFlyTargetLocation()@Nullable Vec3DragonHoverPhase.getFlyTargetLocation()@Nullable Vec3DragonLandingApproachPhase.getFlyTargetLocation()@Nullable Vec3DragonLandingPhase.getFlyTargetLocation()@Nullable Vec3DragonPhaseInstance.getFlyTargetLocation()@Nullable Vec3DragonStrafePlayerPhase.getFlyTargetLocation()@Nullable Vec3DragonTakeoffPhase.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 blockState, Vec3 speedMultiplier) -
Uses of Vec3 in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return Vec3Modifier and TypeMethodDescriptionArmorStand.getLightProbePosition(float partialTickTime) LeashFenceKnotEntity.getRopeHoldPosition(float partialTickTime) Methods in net.minecraft.world.entity.decoration with parameters of type Vec3Modifier and TypeMethodDescriptionprivate EquipmentSlotArmorStand.getClickedSlot(Vec3 location) ArmorStand.interact(Player player, InteractionHand hand, Vec3 location) ItemFrame.interact(Player player, InteractionHand hand, Vec3 location) LeashFenceKnotEntity.interact(Player player, InteractionHand hand, Vec3 location) voidvoidvoid -
Uses of Vec3 in net.minecraft.world.entity.decoration.painting
Methods in net.minecraft.world.entity.decoration.painting that return Vec3 -
Uses of Vec3 in net.minecraft.world.entity.monster
Fields in net.minecraft.world.entity.monster declared as Vec3Methods in net.minecraft.world.entity.monster that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3Ghast.RandomFloatAroundGoal.chooseRandomPosition(Vec3 center, RandomSource random) private static @Nullable Vec3Ghast.RandomFloatAroundGoal.chooseRandomPositionWithRestriction(Mob mob, Vec3 center, RandomSource random) Shulker.getDeltaMovement()Strider.getDismountLocationForPassenger(LivingEntity passenger) Strider.getLeashOffset()protected Vec3Slime.getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale) protected Vec3Strider.getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale) @Nullable Vec3Shulker.getRenderPosition(float a) protected Vec3Strider.getRiddenInput(Player controller, Vec3 selfInput) static Vec3Ghast.RandomFloatAroundGoal.getSuitableFlyToPosition(Mob mob, int distanceToBlocks) Methods in net.minecraft.world.entity.monster with parameters of type Vec3Modifier and TypeMethodDescriptionprivate booleanGhast.GhastMoveControl.blockTraversalPossible(BlockGetter level, @Nullable Vec3 start, @Nullable Vec3 end, BlockPos pos, boolean canPathThroughWater, boolean canPathThroughLava) private booleanprivate static Vec3Ghast.RandomFloatAroundGoal.chooseRandomPosition(Vec3 center, RandomSource random) private static @Nullable Vec3Ghast.RandomFloatAroundGoal.chooseRandomPositionWithRestriction(Mob mob, Vec3 center, RandomSource random) static AABBShulker.getProgressAabb(float size, Direction direction, float progressTo, Vec3 position) static AABBShulker.getProgressDeltaAabb(float size, Direction direction, float progressFrom, float progressTo, Vec3 position) protected Vec3Strider.getRiddenInput(Player controller, Vec3 selfInput) private static booleanGhast.RandomFloatAroundGoal.isGoodTarget(Level level, Vec3 target, int distanceToBlocks) protected AABBShulker.makeBoundingBox(Vec3 position) voidvoidShulker.setDeltaMovement(Vec3 deltaMovement) protected voidStrider.tickRidden(Player controller, Vec3 riddenInput) voidvoidprotected voidGuardian.travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY) -
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 enemy, RandomSource random) private static Vec3Slide.randomPointInMiddleCircle(Breeze breeze, LivingEntity enemy) Methods in net.minecraft.world.entity.monster.breeze that return types with arguments of type Vec3Modifier and TypeMethodDescriptionLongJump.calculateOptimalJumpVector(Breeze body, RandomSource random, Vec3 targetPos) Methods in net.minecraft.world.entity.monster.breeze with parameters of type Vec3Modifier and TypeMethodDescriptionLongJump.calculateOptimalJumpVector(Breeze body, RandomSource random, Vec3 targetPos) static booleanBreezeUtil.hasLineOfSight(Breeze breeze, Vec3 target) private static @Nullable BlockPosLongJump.snapToSurface(LivingEntity entity, Vec3 target) booleanBreeze.withinInnerCircleRange(Vec3 target) -
Uses of Vec3 in net.minecraft.world.entity.monster.illager
Fields in net.minecraft.world.entity.monster.illager declared as Vec3Methods in net.minecraft.world.entity.monster.illager that return Vec3 -
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 body, List<ItemStack> itemStacks, Vec3 targetPos) -
Uses of Vec3 in net.minecraft.world.entity.monster.spider
Methods in net.minecraft.world.entity.monster.spider that return Vec3Modifier and TypeMethodDescriptionCaveSpider.getVehicleAttachmentPoint(Entity vehicle) Spider.getVehicleAttachmentPoint(Entity vehicle) Methods in net.minecraft.world.entity.monster.spider with parameters of type Vec3Modifier and TypeMethodDescriptionvoidSpider.makeStuckInBlock(BlockState state, Vec3 speedMultiplier) -
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 position, @Nullable Entity source, int darknessRadius) -
Uses of Vec3 in net.minecraft.world.entity.monster.zombie
Methods in net.minecraft.world.entity.monster.zombie that return Vec3Modifier and TypeMethodDescriptionprivate @Nullable Vec3Drowned.DrownedGoToWaterGoal.getWaterPos()Methods in net.minecraft.world.entity.monster.zombie with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidDrowned.travelInWater(Vec3 input, double baseGravity, boolean isFalling, double oldY) -
Uses of Vec3 in net.minecraft.world.entity.npc.villager
Methods in net.minecraft.world.entity.npc.villager that return Vec3 -
Uses of Vec3 in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return Vec3Modifier and TypeMethodDescriptionPlayer.getRopeHoldPosition(float partialTickTime) protected Vec3Player.maybeBackOffFromEdge(Vec3 delta, MoverType moverType) Methods in net.minecraft.world.entity.player with parameters of type Vec3Modifier and TypeMethodDescriptionvoidPlayer.causeExtraKnockback(Entity entity, float knockbackAmount, Vec3 oldMovement) Player.interactOn(Entity entity, InteractionHand hand, Vec3 location) voidPlayer.makeStuckInBlock(BlockState blockState, Vec3 speedMultiplier) protected Vec3Player.maybeBackOffFromEdge(Vec3 delta, MoverType moverType) void -
Uses of Vec3 in net.minecraft.world.entity.projectile
Fields in net.minecraft.world.entity.projectile declared as Vec3Methods in net.minecraft.world.entity.projectile that return Vec3Modifier and TypeMethodDescriptionProjectile.getMovementToShoot(double xd, double yd, double zd, float pow, float uncertainty) private static Vec3EyeOfEnder.updateDeltaMovement(Vec3 oldMovement, Vec3 position, Vec3 target) Methods in net.minecraft.world.entity.projectile with parameters of type Vec3Modifier and TypeMethodDescriptionstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Entity except, Vec3 from, Vec3 to, AABB box, Predicate<Entity> matching, double maxValue) Gets theEntityHitResultrepresenting the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching, float entityMargin) Gets the EntityHitResult representing the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level level, Projectile source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching) private static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity source, Vec3 origin, Vec3 from, Predicate<Entity> matching, Vec3 to, float entityMargin, ClipContext.Block clipType) private static HitResultProjectileUtil.getHitResult(Vec3 from, Entity source, Predicate<Entity> matching, Vec3 delta, Level level, float entityMargin, ClipContext.Block clipType) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level level, Entity source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching, boolean includeFromEntity) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level level, Entity source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching, float entityMargin, ClipContext.Block clipType, boolean includeFromEntity) voidprivate voidEyeOfEnder.spawnParticles(Vec3 origin, Vec3 movement) private static Vec3EyeOfEnder.updateDeltaMovement(Vec3 oldMovement, Vec3 position, Vec3 target) -
Uses of Vec3 in net.minecraft.world.entity.projectile.arrow
Methods in net.minecraft.world.entity.projectile.arrow with parameters of type Vec3Modifier and TypeMethodDescriptionprivate voidAbstractArrow.addBubbleParticles(Vec3 position) protected Collection<EntityHitResult> AbstractArrow.findHitEntities(Vec3 from, Vec3 to) protected Collection<EntityHitResult> ThrownTrident.findHitEntities(Vec3 from, Vec3 to) protected @Nullable EntityHitResultAbstractArrow.findHitEntity(Vec3 from, Vec3 to) Gets the EntityRayTraceResult representing the entity hitprotected @Nullable EntityHitResultThrownTrident.findHitEntity(Vec3 from, Vec3 to) Gets the EntityHitResult representing the entity hitvoidAbstractArrow.lerpMotion(Vec3 movement) void -
Uses of Vec3 in net.minecraft.world.entity.projectile.hurtingprojectile
Methods in net.minecraft.world.entity.projectile.hurtingprojectile with parameters of type Vec3Modifier and TypeMethodDescriptionprivate voidAbstractHurtingProjectile.assignDirectionalMovement(Vec3 direction, double speed) Constructors in net.minecraft.world.entity.projectile.hurtingprojectile with parameters of type Vec3ModifierConstructorDescriptionAbstractHurtingProjectile(EntityType<? extends AbstractHurtingProjectile> type, double x, double y, double z, Vec3 direction, Level level) AbstractHurtingProjectile(EntityType<? extends AbstractHurtingProjectile> type, LivingEntity mob, Vec3 direction, Level level) DragonFireball(Level level, LivingEntity mob, Vec3 direction) Fireball(EntityType<? extends Fireball> type, double x, double y, double z, Vec3 direction, Level level) Fireball(EntityType<? extends Fireball> type, LivingEntity mob, Vec3 direction, Level level) LargeFireball(Level level, LivingEntity mob, Vec3 direction, int explosionPower) SmallFireball(Level level, double x, double y, double z, Vec3 direction) SmallFireball(Level level, LivingEntity mob, Vec3 direction) WitherSkull(Level level, LivingEntity mob, Vec3 direction) -
Uses of Vec3 in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge
Methods in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge with parameters of type Vec3Modifier and TypeMethodDescriptionprotected abstract voidprotected voidprotected voidprotected AABBAbstractWindCharge.makeBoundingBox(Vec3 position) Constructors in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge with parameters of type Vec3ModifierConstructorDescription(package private)AbstractWindCharge(EntityType<? extends AbstractWindCharge> type, double x, double y, double z, Vec3 direction, Level level) WindCharge(Level level, double x, double y, double z, Vec3 direction) -
Uses of Vec3 in net.minecraft.world.entity.projectile.throwableitemprojectile
Methods in net.minecraft.world.entity.projectile.throwableitemprojectile with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle that return Vec3Modifier and TypeMethodDescriptionstatic @Nullable Vec3DismountHelper.findSafeDismountLocation(EntityType<?> type, CollisionGetter level, BlockPos blockPos, boolean checkDangerous) ContainerEntity.position()Methods in net.minecraft.world.entity.vehicle with parameters of type Vec3Modifier and TypeMethodDescriptionstatic booleanDismountHelper.canDismountTo(CollisionGetter level, Vec3 location, LivingEntity passenger, Pose dismountPose) -
Uses of Vec3 in net.minecraft.world.entity.vehicle.boat
Methods in net.minecraft.world.entity.vehicle.boat that return Vec3Modifier and TypeMethodDescriptionAbstractBoat.getDismountLocationForPassenger(LivingEntity passenger) AbstractBoat.getLeashOffset()protected Vec3AbstractBoat.getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale) Vec3[]AbstractBoat.getQuadLeashOffsets()AbstractBoat.getRelativePortalPosition(Direction.Axis axis, BlockUtil.FoundRectangle portalArea) Methods in net.minecraft.world.entity.vehicle.boat with parameters of type Vec3Modifier and TypeMethodDescriptionAbstractBoat.interact(Player player, InteractionHand hand, Vec3 location) AbstractChestBoat.interact(Player player, InteractionHand hand, Vec3 location) -
Uses of Vec3 in net.minecraft.world.entity.vehicle.minecart
Fields in net.minecraft.world.entity.vehicle.minecart declared as Vec3Modifier and TypeFieldDescriptionprivate static final Vec3MinecartFurnace.DEFAULT_PUSHprivate static final Vec3AbstractMinecart.LOWERED_PASSENGER_ATTACHMENTprivate final Vec3NewMinecartBehavior.MinecartStep.movementThe field for themovementrecord component.private final Vec3NewMinecartBehavior.MinecartStep.positionThe field for thepositionrecord component.MinecartFurnace.pushprivate Vec3OldMinecartBehavior.targetDeltaMovementMethods in net.minecraft.world.entity.vehicle.minecart that return Vec3Modifier and TypeMethodDescriptionprotected Vec3AbstractMinecart.applyNaturalSlowdown(Vec3 movement) protected Vec3AbstractMinecartContainer.applyNaturalSlowdown(Vec3 deltaMovement) protected Vec3MinecartFurnace.applyNaturalSlowdown(Vec3 deltaMovement) private Vec3NewMinecartBehavior.calculateBoostTrackSpeed(Vec3 deltaMovement, BlockPos pos, BlockState state) private Vec3NewMinecartBehavior.calculateHaltTrackSpeed(Vec3 deltaMovement, BlockState state) private Vec3MinecartFurnace.calculateNewPushAlong(Vec3 deltaMovement) private Vec3NewMinecartBehavior.calculatePlayerInputSpeed(Vec3 deltaMovement) private Vec3NewMinecartBehavior.calculateSlopeSpeed(Vec3 deltaMovement, RailShape shape) private Vec3NewMinecartBehavior.calculateTrackSpeed(ServerLevel level, Vec3 deltaMovement, NewMinecartBehavior.TrackIteration trackIteration, BlockPos currentPos, BlockState currentState, RailShape shape) NewMinecartBehavior.getCartLerpMovements(float partialTicks) NewMinecartBehavior.getCartLerpPosition(float partialTicks) MinecartBehavior.getDeltaMovement()AbstractMinecart.getDismountLocationForPassenger(LivingEntity passenger) AbstractMinecart.getKnownMovement()MinecartBehavior.getKnownMovement(Vec3 knownMovement) OldMinecartBehavior.getKnownMovement(Vec3 knownMovement) protected Vec3AbstractMinecart.getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale) @Nullable Vec3OldMinecartBehavior.getPos(double x, double y, double z) @Nullable Vec3OldMinecartBehavior.getPosOffs(double x, double y, double z, double offs) AbstractMinecart.getRedstoneDirection(BlockPos pos) AbstractMinecart.getRelativePortalPosition(Direction.Axis axis, BlockUtil.FoundRectangle portalArea) NewMinecartBehavior.MinecartStep.movement()Returns the value of themovementrecord component.MinecartBehavior.position()NewMinecartBehavior.MinecartStep.position()Returns the value of thepositionrecord component.Methods in net.minecraft.world.entity.vehicle.minecart with parameters of type Vec3Modifier and TypeMethodDescriptionbooleanprotected Vec3AbstractMinecart.applyNaturalSlowdown(Vec3 movement) protected Vec3AbstractMinecartContainer.applyNaturalSlowdown(Vec3 deltaMovement) protected Vec3MinecartFurnace.applyNaturalSlowdown(Vec3 deltaMovement) private Vec3NewMinecartBehavior.calculateBoostTrackSpeed(Vec3 deltaMovement, BlockPos pos, BlockState state) private Vec3NewMinecartBehavior.calculateHaltTrackSpeed(Vec3 deltaMovement, BlockState state) private Vec3MinecartFurnace.calculateNewPushAlong(Vec3 deltaMovement) private Vec3NewMinecartBehavior.calculatePlayerInputSpeed(Vec3 deltaMovement) private Vec3NewMinecartBehavior.calculateSlopeSpeed(Vec3 deltaMovement, RailShape shape) private Vec3NewMinecartBehavior.calculateTrackSpeed(ServerLevel level, Vec3 deltaMovement, NewMinecartBehavior.TrackIteration trackIteration, BlockPos currentPos, BlockState currentState, RailShape shape) MinecartBehavior.getKnownMovement(Vec3 knownMovement) OldMinecartBehavior.getKnownMovement(Vec3 knownMovement) AbstractMinecartContainer.interact(Player player, InteractionHand hand, Vec3 location) Minecart.interact(Player player, InteractionHand hand, Vec3 location) MinecartChest.interact(Player player, InteractionHand hand, Vec3 location) MinecartCommandBlock.interact(Player player, InteractionHand hand, Vec3 location) MinecartFurnace.interact(Player player, InteractionHand hand, Vec3 location) private booleanNewMinecartBehavior.isDecending(Vec3 movement, RailShape shape) voidAbstractMinecart.lerpMotion(Vec3 movement) voidMinecartBehavior.lerpMotion(Vec3 movement) voidOldMinecartBehavior.lerpMotion(Vec3 movement) voidvoidMinecartBehavior.setDeltaMovement(Vec3 deltaMovement) voidConstructors in net.minecraft.world.entity.vehicle.minecart with parameters of type Vec3ModifierConstructorDescriptionMinecartStep(Vec3 position, Vec3 movement, float yRot, float xRot, float weight) Creates an instance of aMinecartSteprecord class. -
Uses of Vec3 in net.minecraft.world.item
Methods in net.minecraft.world.item that return Vec3Modifier and TypeMethodDescriptionprivate Vec3MaceItem.calculateImpactPosition(LivingEntity attacker) private static Vec3FireworkRocketItem.getEntityJustOutsideOfBlockPos(BlockSource source, Direction direction) Methods in net.minecraft.world.item with parameters of type Vec3Modifier and TypeMethodDescriptionstatic BrushItem.DustParticlesDeltaBrushItem.DustParticlesDelta.fromDirection(Vec3 viewVector, Direction hitDirection) private static doubleMaceItem.getKnockbackPower(Entity attacker, LivingEntity nearby, Vec3 direction) private static Vector3fCrossbowItem.getProjectileShotVector(LivingEntity body, Vec3 originalVector, float angle) private voidBrushItem.spawnDustParticles(Level level, BlockHitResult hitResult, BlockState state, Vec3 viewVector, HumanoidArm brushingArm) SpawnEggItem.spawnOffspringFromSpawnEgg(Player player, Mob parent, EntityType<? extends Mob> type, ServerLevel level, Vec3 pos, ItemStack spawnEggStack) -
Uses of Vec3 in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component that return Vec3Methods in net.minecraft.world.item.component with parameters of type Vec3Modifier and TypeMethodDescriptionbooleanAttackRange.isInRange(LivingEntity attacker, Vec3 location) Method parameters in net.minecraft.world.item.component with type arguments of type Vec3Modifier and TypeMethodDescriptionprivate booleanAttackRange.isInRange(LivingEntity attacker, ToDoubleFunction<Vec3> distanceFunction, double extraBuffer) -
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 serverLevel, int enchantmentLevel, Entity entity, Vec3 position, BlockState hitBlock) static LootContextEnchantment.entityContext(ServerLevel serverLevel, int enchantmentLevel, Entity entity, Vec3 position) voidEnchantment.onHitBlock(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse weapon, Entity projectile, Vec3 position, BlockState hitBlock) static voidEnchantmentHelper.onHitBlock(ServerLevel serverLevel, ItemStack weapon, @Nullable LivingEntity owner, Entity entity, @Nullable EquipmentSlot slot, Vec3 hitLocation, BlockState hitBlock, 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 Vec3ApplyEntityImpulse.coordinateScaleThe field for thecoordinateScalerecord component.private final Vec3ApplyEntityImpulse.directionThe field for thedirectionrecord component.private final Vec3ExplodeEffect.offsetThe field for theoffsetrecord component.Methods in net.minecraft.world.item.enchantment.effects that return Vec3Modifier and TypeMethodDescriptionApplyEntityImpulse.coordinateScale()Returns the value of thecoordinateScalerecord component.ApplyEntityImpulse.direction()Returns the value of thedirectionrecord component.ExplodeEffect.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 serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidApplyEntityImpulse.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidApplyExhaustion.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidApplyMobEffect.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidChangeItemDamage.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidDamageEntity.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidEnchantmentEntityEffect.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidExplodeEffect.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidIgnite.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidPlaySoundEffect.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidReplaceBlock.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidReplaceDisk.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidRunFunction.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidSetBlockProperties.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidSpawnParticlesEffect.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) voidSummonEntityEffect.apply(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position) private @Nullable DamageSourceExplodeEffect.getDamageSource(Entity entity, Vec3 position) voidAllOf.LocationBasedEffects.onChangedBlock(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position, boolean becameActive) voidEnchantmentAttributeEffect.onChangedBlock(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position, boolean becameActive) default voidEnchantmentEntityEffect.onChangedBlock(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position, boolean becameActive) voidEnchantmentLocationBasedEffect.onChangedBlock(ServerLevel serverLevel, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 position, boolean becameActive) voidAllOf.LocationBasedEffects.onDeactivated(EnchantedItemInUse item, Entity entity, Vec3 position, int level) voidEnchantmentAttributeEffect.onDeactivated(EnchantedItemInUse item, Entity entity, Vec3 position, int level) default voidEnchantmentLocationBasedEffect.onDeactivated(EnchantedItemInUse item, Entity entity, Vec3 position, int level) Constructors in net.minecraft.world.item.enchantment.effects with parameters of type Vec3ModifierConstructorDescriptionApplyEntityImpulse(Vec3 direction, Vec3 coordinateScale, LevelBasedValue magnitude) Creates an instance of aApplyEntityImpulserecord class.ExplodeEffect(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, WeightedList<ExplosionParticleInfo> blockParticles, 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 Vec3ServerExplosion.centerprivate 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()ServerExplosion.center()ClipBlockStateContext.getFrom()ClipContext.getFrom()ClipBlockStateContext.getTo()ClipContext.getTo()Methods in net.minecraft.world.level that return types with arguments of type Vec3Modifier and TypeMethodDescriptionCollisionGetter.findFreePosition(@Nullable Entity source, VoxelShape allowedCenters, Vec3 preferredCenter, double sizeX, double sizeY, double sizeZ) ServerExplosion.getHitPlayers()Methods in net.minecraft.world.level with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static intBlockGetter.addCollisionsAlongTravel(it.unimi.dsi.fastutil.longs.LongSet visitedBlocks, Vec3 deltaMove, AABB aabbAtTarget, BlockGetter.BlockStepVisitor visitor) default @Nullable BlockHitResultBlockGetter.clipWithInteractionOverride(Vec3 from, Vec3 to, BlockPos pos, VoxelShape blockShape, BlockState blockState) voidLevel.explode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, Vec3 boomPos, float r, boolean fire, Level.ExplosionInteraction blockInteraction) CollisionGetter.findFreePosition(@Nullable Entity source, VoxelShape allowedCenters, Vec3 preferredCenter, double sizeX, double sizeY, double sizeZ) static booleanBlockGetter.forEachBlockIntersectedBetween(Vec3 from, Vec3 to, AABB aabbAtTarget, BlockGetter.BlockStepVisitor visitor) voidLevelAccessor.gameEvent(Holder<GameEvent> gameEvent, Vec3 position, GameEvent.Context context) default voidprivate static Vec3iBlockGetter.getFurthestCorner(Vec3 direction) default Iterable<VoxelShape> CollisionGetter.getPreMoveCollisions(@Nullable Entity source, AABB box, Vec3 oldPos) static floatServerExplosion.getSeenPercent(Vec3 center, Entity entity) static <T,C> T BlockGetter.traverseBlocks(Vec3 from, Vec3 to, C context, BiFunction<C, BlockPos, @Nullable T> consumer, Function<C, T> missFactory) 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) ServerExplosion(ServerLevel level, @Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, Vec3 center, float radius, boolean fire, Explosion.BlockInteraction blockInteraction) -
Uses of Vec3 in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block with type parameters of type Vec3Methods in net.minecraft.world.level.block that return Vec3Modifier and TypeMethodDescriptionSignBlock.getSignHitboxCenterPosition(BlockState state) WallSignBlock.getSignHitboxCenterPosition(BlockState state) Methods in net.minecraft.world.level.block that return types with arguments of type Vec3Modifier and TypeMethodDescriptionBedBlock.findBunkBedStandUpPosition(EntityType<?> type, CollisionGetter level, BlockPos pos, Direction forward, Direction side) BedBlock.findStandUpPosition(EntityType<?> type, CollisionGetter level, BlockPos pos, Direction forward, float yaw) RespawnAnchorBlock.findStandUpPosition(EntityType<?> type, CollisionGetter level, BlockPos pos) RespawnAnchorBlock.findStandUpPosition(EntityType<?> type, CollisionGetter level, BlockPos pos, boolean checkDangerous) BedBlock.findStandUpPositionAtOffset(EntityType<?> type, CollisionGetter level, BlockPos pos, int[][] offsets, boolean checkDangerous) 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 pos, RandomSource random) private static TeleportTransitionNetherPortalBlock.createDimensionTransition(ServerLevel newLevel, BlockUtil.FoundRectangle foundRectangle, Direction.Axis portalAxis, Vec3 offset, Entity entity, TeleportTransition.PostTeleportTransition postTeleportTransition) static PositionDispenserBlock.getDispensePosition(BlockSource source, double scale, Vec3 offset) private static intTargetBlock.getRedstoneStrength(BlockHitResult hitResult, Vec3 hitLocation) -
Uses of Vec3 in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as Vec3Methods in net.minecraft.world.level.block.entity that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3TheEndGatewayBlockEntity.findExitPortalXZPosTentative(ServerLevel level, BlockPos endGatewayPos) @Nullable Vec3TheEndGatewayBlockEntity.getPortalPosition(ServerLevel currentLevel, BlockPos portalEntryPos) ShelfBlockEntity.position()Methods in net.minecraft.world.level.block.entity with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidAbstractFurnaceBlockEntity.createExperience(ServerLevel level, Vec3 position, int amount, float value) private static LevelChunkList<RecipeHolder<?>> AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience(ServerLevel level, Vec3 position) booleanSculkCatalystBlockEntity.CatalystListener.handleGameEvent(ServerLevel level, Holder<GameEvent> event, GameEvent.Context context, Vec3 sourcePosition) private static booleanTheEndGatewayBlockEntity.isChunkEmpty(ServerLevel level, Vec3 xzPos) static voidBaseContainerBlockEntity.sendChestLockedNotifications(Vec3 pos, Player player, Component displayName) -
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 entityToSpawnItemAbove, ServerLevel level) TrialSpawnerState.calculatePositionToSpawnSpawner(ServerLevel level, BlockPos trialSpawnerPos, TrialSpawner trialSpawner, TrialSpawnerStateData data) Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidTrialSpawnerState.ParticleEmission.addParticle(SimpleParticleType smoke, Vec3 vec, Level level) private static booleanPlayerDetector.inLineOfSight(Level level, Vec3 origin, Vec3 dest) private static booleanTrialSpawner.inLineOfSight(Level level, Vec3 origin, Vec3 dest) -
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 blockPos, Direction blockFacing) private static Vec3VaultBlockEntity.Client.randomPosCenterOfCage(BlockPos blockPos, RandomSource random) private static Vec3VaultBlockEntity.Client.randomPosInsideCage(BlockPos blockPos, 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 flyTowards, Player player) -
Uses of Vec3 in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state that return Vec3 -
Uses of Vec3 in net.minecraft.world.level.border
Methods in net.minecraft.world.level.border that return Vec3Modifier and TypeMethodDescriptionWorldBorder.clampVec3ToBound(double x, double y, double z) WorldBorder.clampVec3ToBound(Vec3 position) Methods in net.minecraft.world.level.border with parameters of type Vec3Modifier and TypeMethodDescriptionWorldBorder.clampToBounds(Vec3 position) WorldBorder.clampVec3ToBound(Vec3 position) 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 sourcePosition, GameEventListener listener) Methods in net.minecraft.world.level.gameevent with parameters of type Vec3Modifier and TypeMethodDescriptionEuclideanGameEventListenerRegistry.getPostableListenerPosition(ServerLevel level, Vec3 sourcePosition, GameEventListener listener) booleanGameEventListener.handleGameEvent(ServerLevel level, Holder<GameEvent> event, GameEvent.Context context, Vec3 sourcePosition) voidGameEventDispatcher.post(Holder<GameEvent> gameEvent, Vec3 position, GameEvent.Context context) voidGameEventListenerRegistry.ListenerVisitor.visit(GameEventListener listener, Vec3 position) booleanEuclideanGameEventListenerRegistry.visitInRangeListeners(Holder<GameEvent> event, Vec3 sourcePosition, GameEvent.Context context, GameEventListenerRegistry.ListenerVisitor action) booleanGameEventListenerRegistry.visitInRangeListeners(Holder<GameEvent> event, Vec3 sourcePosition, GameEvent.Context context, GameEventListenerRegistry.ListenerVisitor action) Constructors in net.minecraft.world.level.gameevent with parameters of type Vec3ModifierConstructorDescriptionListenerInfo(Holder<GameEvent> gameEvent, Vec3 source, GameEvent.Context context, GameEventListener recipient, Vec3 recipientPos) -
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> event, GameEvent.Context context, Vec3 origin) booleanVibrationSystem.Listener.handleGameEvent(ServerLevel level, Holder<GameEvent> event, GameEvent.Context context, Vec3 sourcePosition) private static booleanVibrationSystem.Listener.isOccluded(Level level, Vec3 origin, Vec3 dest) private voidVibrationSystem.Listener.scheduleVibration(ServerLevel level, VibrationSystem.Data data, Holder<GameEvent> event, GameEvent.Context context, Vec3 origin, Vec3 dest) Constructors in net.minecraft.world.level.gameevent.vibrations with parameters of type Vec3ModifierConstructorDescriptionVibrationInfo(Holder<GameEvent> gameEvent, float distance, Vec3 pos, @Nullable UUID uuid, @Nullable UUID projectileOwnerUuid) VibrationInfo(Holder<GameEvent> gameEvent, float distance, Vec3 pos, @Nullable UUID uuid, @Nullable UUID projectileOwnerUuid, @Nullable Entity entity) Creates an instance of aVibrationInforecord class.VibrationInfo(Holder<GameEvent> gameEvent, float distance, Vec3 pos, @Nullable Entity entity) -
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 level, BlockPos pos, FluidState fluidState) FlowingFluid.getFlow(BlockGetter level, BlockPos pos, FluidState fluidState) protected abstract Vec3Fluid.getFlow(BlockGetter level, 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 Vec3TeleportTransition.deltaMovementThe field for thedeltaMovementrecord component.private final Vec3TeleportTransition.positionThe field for thepositionrecord component.Methods in net.minecraft.world.level.portal that return Vec3Modifier and TypeMethodDescriptionTeleportTransition.deltaMovement()Returns the value of thedeltaMovementrecord component.private static Vec3TeleportTransition.findAdjustedSharedSpawnPos(ServerLevel newLevel, Entity entity) static Vec3PortalShape.findCollisionFreePosition(Vec3 bottomCenter, ServerLevel serverLevel, Entity entity, EntityDimensions dimensions) static Vec3PortalShape.getRelativePosition(BlockUtil.FoundRectangle largestRectangleAround, Direction.Axis axis, Vec3 position, EntityDimensions dimensions) TeleportTransition.position()Returns the value of thepositionrecord component.Methods in net.minecraft.world.level.portal with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3PortalShape.findCollisionFreePosition(Vec3 bottomCenter, ServerLevel serverLevel, Entity entity, EntityDimensions dimensions) static Vec3PortalShape.getRelativePosition(BlockUtil.FoundRectangle largestRectangleAround, Direction.Axis axis, Vec3 position, EntityDimensions dimensions) TeleportTransition.withPosition(Vec3 position) Constructors in net.minecraft.world.level.portal with parameters of type Vec3ModifierConstructorDescriptionTeleportTransition(ServerLevel newLevel, Vec3 position, Vec3 deltaMovement, float yRot, float xRot, boolean missingRespawnBlock, boolean asPassenger, Set<Relative> relatives, TeleportTransition.PostTeleportTransition postTeleportTransition) Creates an instance of aTeleportTransitionrecord class.TeleportTransition(ServerLevel newLevel, Vec3 pos, Vec3 speed, float yRot, float xRot, Set<Relative> relatives, TeleportTransition.PostTeleportTransition postTeleportTransition) TeleportTransition(ServerLevel newLevel, Vec3 pos, Vec3 speed, float yRot, float xRot, TeleportTransition.PostTeleportTransition postTeleportTransition) -
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.X_AXISstatic final Vec3Vec3.Y_AXISstatic final Vec3Vec3.Z_AXISstatic final Vec3Vec3.ZEROFields in net.minecraft.world.phys with type parameters of type Vec3Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Vec3> Vec3.CODECstatic final StreamCodec<io.netty.buffer.ByteBuf, Vec3> Vec3.LP_STREAM_CODECstatic final StreamCodec<io.netty.buffer.ByteBuf, Vec3> Vec3.STREAM_CODECMethods in net.minecraft.world.phys that return Vec3Modifier and TypeMethodDescriptionVec3.add(double value) Vec3.add(double x, double y, double z) Adds the specified x,y,z vector components to this vector and returns the resulting vector.Vec3.addLocalCoordinates(Vec3 direction) Vec3.align(EnumSet<Direction.Axis> axes) static Vec3Vec3.applyLocalCoordinatesToRotation(Vec2 rotation, Vec3 direction) static Vec3Vec3.atBottomCenterOf(Vec3i pos) Copies the coordinates of an int vector and centers them horizontally (x and z)static Vec3Vec3.atCenterOf(Vec3i pos) Copies the coordinates of an Int vector and centers them.static Vec3Vec3.atLowerCornerOf(Vec3i pos) Copies the coordinates of an int vector exactly.static Vec3Vec3.atLowerCornerWithOffset(Vec3i pos, double x, double y, double z) Returns a new vector with the result of this vector x the specified vector.static Vec3Vec3.directionFromRotation(float rotX, float rotY) Returns aVec3from the given pitch and yaw degrees.static Vec3Vec3.directionFromRotation(Vec2 rotation) AABB.getBottomCenter()AABB.getCenter()HitResult.getLocation()AABB.getMaxPosition()AABB.getMinPosition()Vec3.horizontal()Lerps between this vector and the given vector.Vec3.multiply(double xScale, double yScale, double zScale) Vec3.normalize()Vec3.offsetRandom(RandomSource random, float offset) Vec3.offsetRandomXZ(RandomSource random, float offset) Vec3.projectedOn(Vec3 onto) Vec3.reverse()Vec3.rotateClockwise90()Vec3.scale(double scale) Vec3.subtract(double value) Vec3.subtract(double x, double y, double z) static Vec3Vec3.upFromBottomCenterOf(Vec3i pos, double yOffset) 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 value) Vec3.xRot(float radians) Vec3.yRot(float radians) Vec3.zRot(float radians) Methods in net.minecraft.world.phys that return types with arguments of type Vec3Modifier and TypeMethodDescriptionAABB.clip(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3 from, Vec3 to) Methods in net.minecraft.world.phys with parameters of type Vec3Modifier and TypeMethodDescriptionVec3.addLocalCoordinates(Vec3 direction) static Vec3Vec3.applyLocalCoordinatesToRotation(Vec2 rotation, Vec3 direction) AABB.clip(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3 from, Vec3 to) static @Nullable BlockHitResultbooleanVec3.closerThan(Vec3 vec, double distanceXZ, double distanceY) booleanAABB.collidedAlongVector(Vec3 vector, List<AABB> aabbs) 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 point) doubleVec3.distanceToSqr(Vec3 vec) The square of the Euclidean distance between this and the specified vector.doubleAABB.expandTowards(Vec3 delta) private static @Nullable DirectionAABB.getDirection(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3 from, double[] scaleReference, @Nullable Direction direction, double dx, double dy, double dz) private static @Nullable DirectionAABB.getDirection(AABB aabb, Vec3 from, double[] scaleReference, @Nullable Direction direction, double dx, double dy, double dz) booleanAABB.intersects(Vec3 min, Vec3 max) Lerps between this vector and the given vector.static BlockHitResultCreates a new BlockRayTraceResult marked as a miss.static AABBVec3.projectedOn(Vec3 onto) static AABBAABB.unitCubeFromLowerCorner(Vec3 pos) 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, boolean worldBorderHit) BlockHitResult(Vec3 location, Direction direction, BlockPos pos, boolean inside) BlockHitResult(Vec3 location, Direction direction, BlockPos pos, boolean inside, boolean worldBorderHit) EntityHitResult(Entity entity, Vec3 location) protected -
Uses of Vec3 in net.minecraft.world.phys.shapes
Fields in net.minecraft.world.phys.shapes declared as Vec3Methods in net.minecraft.world.phys.shapes that return types with arguments of type Vec3Methods in net.minecraft.world.phys.shapes with parameters of type Vec3Modifier and TypeMethodDescription@Nullable BlockHitResultVoxelShape.closestPointTo(Vec3 point) static VoxelShapeShapes.rotate(VoxelShape shape, OctahedralGroup rotation, Vec3 rotationPoint) static Map<Direction, VoxelShape> Shapes.rotateAll(VoxelShape north, OctahedralGroup initial, Vec3 rotationCenter) static Map<Direction, VoxelShape> Shapes.rotateAll(VoxelShape north, Vec3 rotationCenter) static Map<Direction.Axis, VoxelShape> Shapes.rotateAllAxis(VoxelShape north, Vec3 rotationCenter) static Map<Direction, VoxelShape> Shapes.rotateHorizontal(VoxelShape north, OctahedralGroup initial, Vec3 rotationCenter) static Map<Direction.Axis, VoxelShape> Shapes.rotateHorizontalAxis(VoxelShape zAxis, Vec3 rotationCenter) -
Uses of Vec3 in net.minecraft.world.waypoints
Methods in net.minecraft.world.waypoints that return Vec3Modifier and TypeMethodDescriptionTrackedWaypoint.Camera.position()private Vec3TrackedWaypoint.ChunkWaypoint.position(double positionY) private Vec3TrackedWaypoint.Vec3iWaypoint.position(Level level, PartialTickSupplier partialTick) TrackedWaypoint.Projector.projectPointToScreen(Vec3 point) Methods in net.minecraft.world.waypoints with parameters of type Vec3 -
Uses of Vec3 in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type Vec3Modifier and TypeMethodDescriptionstatic @Nullable CustomCloudsRendererCustomEnvironmentEffectsRendererManager.getCustomCloudsRenderer(Level level, Vec3 position) Finds theCustomCloudsRendererto use for the given position in the given level.static @Nullable CustomSkyboxRendererCustomEnvironmentEffectsRendererManager.getCustomSkyboxRenderer(Level level, Vec3 position) Finds theCustomSkyboxRendererto use for the given position in the given level.static @Nullable CustomWeatherEffectRendererCustomEnvironmentEffectsRendererManager.getCustomWeatherEffectRenderer(Level level, Vec3 position) Finds theCustomWeatherEffectRendererto use for the given position in the given level.default booleanCustomCloudsRenderer.renderClouds(LevelRenderState levelRenderState, Vec3 camPos, CloudStatus cloudStatus, int cloudColor, float cloudHeight, Matrix4f modelViewMatrix) Renders the clouds of this dimension.default booleanCustomWeatherEffectRenderer.renderSnowAndRain(LevelRenderState levelRenderState, WeatherRenderState weatherRenderState, MultiBufferSource bufferSource, Vec3 camPos) Renders the snow and rain effects of this dimension.Constructors in net.neoforged.neoforge.client with parameters of type Vec3ModifierConstructorDescriptionClientCommandSourceStack(CommandSource source, Vec3 position, Vec2 rotation, PermissionSet permissions, 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) booleanTridentEntityPredicate.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 (see).invalid reference
Camera#getBlockAtCamera()default BlockStateIBlockStateExtension.getStateAtViewpoint(BlockGetter level, BlockPos pos, Vec3 viewpoint) Used to determine the state 'viewed' by an entity (see).invalid reference
Camera#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
Subclasses with type arguments of type Vec3 in net.neoforged.neoforge.common.ticketMethods 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, ServerExplosion explosion, Entity entity, Vec3 initialVelocity, List<BlockPos> blocks) To be called when an explosion has calculated the knockback velocity but has not yet added the knockback to the entity caught in blast.PlayLevelSoundEvent.AtPosition.getPosition()Returns the position the sound is being played at.Methods in net.neoforged.neoforge.event with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3EventHooks.getExplosionKnockback(Level level, ServerExplosion explosion, Entity entity, Vec3 initialVelocity, List<BlockPos> blocks) To be called when an explosion has calculated the knockback velocity but has not yet added the knockback to the entity caught in blast.Constructors in net.neoforged.neoforge.event with parameters of type Vec3ModifierConstructorDescriptionAtPosition(Level level, Vec3 position, Holder<SoundEvent> sound, SoundSource source, float volume, float pitch) VanillaGameEvent(Level level, Holder<GameEvent> vanillaEvent, Vec3 position, GameEvent.Context context) -
Uses of Vec3 in net.neoforged.neoforge.event.entity
Methods in net.neoforged.neoforge.event.entity that return Vec3 -
Uses of Vec3 in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as Vec3Modifier and TypeFieldDescriptionprivate final 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, ServerExplosion explosion, Entity entity, Vec3 knockbackVelocity, List<BlockPos> blockList) -
Uses of Vec3 in net.neoforged.neoforge.event.village
Fields in net.neoforged.neoforge.event.village declared as Vec3Methods in net.neoforged.neoforge.event.village that return Vec3Constructors in net.neoforged.neoforge.event.village with parameters of type Vec3ModifierConstructorDescriptionVillageSiegeEvent(VillageSiege siege, Level level, Player player, Vec3 attemptedSpawnPos) -
Uses of Vec3 in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type Vec3Modifier and TypeMethodDescriptionbooleanFluidType.move(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid. -
Uses of Vec3 in net.neoforged.neoforge.transfer.fluid
Methods in net.neoforged.neoforge.transfer.fluid with parameters of type Vec3Modifier and TypeMethodDescriptionstatic voidFluidUtil.triggerSoundAndGameEvent(FluidResource resource, Level level, Vec3 position, @Nullable Player player, boolean pickup) Triggers the appropriate sound effect and game event for an interaction with a fluid handler.
LevelRenderer.addCloudsPass(FrameGraphBuilder, CloudStatus, Vec3, long, float, int, float, Matrix4f)instead