Uses of Class
net.minecraft.world.phys.Vec3
Packages that use Vec3
Package
Description
-
Uses of Vec3 in com.mojang.blaze3d.audio
Fields in com.mojang.blaze3d.audio declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3ListenerTransform.forwardThe field for theforwardrecord component.private final Vec3ListenerTransform.positionThe field for thepositionrecord component.private final Vec3ListenerTransform.upThe field for theuprecord component.Methods in com.mojang.blaze3d.audio that return Vec3Modifier and TypeMethodDescriptionListenerTransform.forward()Returns the value of theforwardrecord component.ListenerTransform.position()Returns the value of thepositionrecord component.ListenerTransform.right()ListenerTransform.up()Returns the value of theuprecord component.Methods in com.mojang.blaze3d.audio with parameters of type Vec3Modifier and TypeMethodDescriptionvoidChannel.setSelfPosition(Vec3 source) Sets the position of the audio channel.Constructors in com.mojang.blaze3d.audio with parameters of type Vec3ModifierConstructorDescriptionListenerTransform(Vec3 position, Vec3 forward, Vec3 up) Creates an instance of aListenerTransformrecord class. -
Uses of Vec3 in 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 damageSource) booleanDistanceTrigger.TriggerInstance.matches(ServerLevel level, Vec3 startPosition, Vec3 currentPosition) 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 startPosition, Vec3 endPosition, @Nullable LootContext context) booleanFishingHookPredicate.matches(Entity p_468492_, ServerLevel p_467933_, @Nullable Vec3 p_469214_) booleanLevitationTrigger.TriggerInstance.matches(ServerPlayer player, Vec3 startPos, int duration) booleanLightningBoltPredicate.matches(Entity p_468961_, ServerLevel p_468800_, @Nullable Vec3 p_468411_) booleanPlayerPredicate.matches(Entity p_468814_, ServerLevel p_469653_, @Nullable Vec3 p_468235_) booleanRaiderPredicate.matches(Entity p_468204_, ServerLevel p_468020_, @Nullable Vec3 p_468183_) booleanSheepPredicate.matches(Entity p_468089_, ServerLevel p_469476_, @Nullable Vec3 p_468038_) booleanSlimePredicate.matches(Entity p_468050_, ServerLevel p_469697_, @Nullable Vec3 p_469566_) booleanTargetBlockTrigger.TriggerInstance.matches(LootContext context, Vec3 vector, int signalStrength) voidDistanceTrigger.trigger(ServerPlayer player, Vec3 position) voidFallAfterExplosionTrigger.trigger(ServerPlayer player, Vec3 pos, @Nullable Entity entity) voidLevitationTrigger.trigger(ServerPlayer player, Vec3 startPos, int duration) voidTargetBlockTrigger.trigger(ServerPlayer player, Entity projectile, Vec3 vector, int signalStrength) -
Uses of Vec3 in net.minecraft.client
Fields in net.minecraft.client declared as Vec3Modifier and TypeFieldDescription(package private) final Vec3Camera.NearPlane.forwardprivate final Vec3Camera.NearPlane.leftprivate Vec3Camera.positionprivate final Vec3Camera.NearPlane.upMethods in net.minecraft.client that return Vec3Modifier and TypeMethodDescriptionCamera.NearPlane.getBottomLeft()Camera.NearPlane.getBottomRight()Camera.NearPlane.getPointOnPlane(float leftScale, float upScale) Camera.NearPlane.getTopLeft()Camera.NearPlane.getTopRight()Camera.position()Methods in net.minecraft.client with parameters of type Vec3Modifier and TypeMethodDescriptionprivate voidKeyboardHandler.copyCreateEntityCommand(Identifier entityId, Vec3 pos, @Nullable CompoundTag tag) protected voidCamera.setPosition(Vec3 pos) 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 location) booleanSubtitleOverlay.Subtitle.isAudibleFrom(Vec3 location) voidConstructors in net.minecraft.client.gui.components with parameters of type Vec3ModifierConstructorDescription(package private)SoundPlayedAt(Vec3 location, long time) Creates an instance of aSoundPlayedAtrecord class. -
Uses of Vec3 in net.minecraft.client.multiplayer
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> p_316478_, Vec3 p_233640_, GameEvent.Context p_233641_) 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 Vec3ModifierConstructorDescription(package private)ExplosionInfo(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 TypeFieldDescription(package private) final Vec3BlockStatePredictionHandler.ServerVerifiedState.playerPosConstructors in net.minecraft.client.multiplayer.prediction with parameters of type Vec3ModifierConstructorDescription(package private)ServerVerifiedState(int sequence, BlockState blockState, Vec3 playerPos) -
Uses of Vec3 in net.minecraft.client.particle
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 itemRenderState, Entity target, Vec3 speed) TrackingEmitter(ClientLevel level, Entity entity, ParticleOptions particleType, int lifetime, Vec3 speedVector) TrailParticle(ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, 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 eyePos, double blockRange) protected booleanLocalPlayer.isHorizontalCollisionMinor(Vec3 p_197411_) voidRemotePlayer.lerpMotion(Vec3 p_436787_) 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 frameGraphBuilder, CloudStatus cloudStatus, Vec3 cameraPosition, long ticks, float partialTick, int cloudColor, float cloudHeight) Deprecated.private voidLevelRenderer.addCloudsPass(FrameGraphBuilder frameGraphBuilder, CloudStatus cloudStatus, Vec3 cameraPosition, long ticks, float partialTick, int cloudColor, float cloudHeight, Matrix4f modelViewMatrix) voidWorldBorderRenderer.extract(WorldBorder worldBorder, float partialTick, Vec3 cameraPosition, double renderDistance, WorldBorderRenderState reusedState) voidWeatherEffectRenderer.extractRenderState(Level level, int ticks, float partialTick, Vec3 cameraPosition, WeatherRenderState reusedState) private FrustumLevelRenderer.prepareCullFrustum(Matrix4f frustumMatrix, Matrix4f projectionMatrix, Vec3 cameraPosition) GameRenderer.projectPointToScreen(Vec3 p_415717_) voidCloudRenderer.render(int color, CloudStatus status, float height, Vec3 cameraPosition, long ticks, float partialTick) voidWeatherEffectRenderer.render(MultiBufferSource bufferSource, Vec3 cameraPosition, WeatherRenderState renderState) voidWeatherEffectRenderer.render(MultiBufferSource bufferSource, Vec3 cameraPosition, WeatherRenderState renderState, @Nullable LevelRenderState levelRenderState) voidWorldBorderRenderer.render(WorldBorderRenderState renderState, Vec3 cameraPosition, double renderDistance, double depthFar) private voidWeatherEffectRenderer.renderInstances(VertexConsumer consumer, List<WeatherEffectRenderer.ColumnInstance> columnInstances, Vec3 cameraPosition, float amount, int radius, float rainLevel) private voidSectionOcclusionGraph.runPartialUpdate(boolean smartCull, Frustum frustum, List<SectionRenderDispatcher.RenderSection> visibleSections, Vec3 cameraPosition, it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedEmptySections) private voidSectionOcclusionGraph.runUpdates(SectionOcclusionGraph.GraphStorage storage, Vec3 cameraPosition, Queue<SectionOcclusionGraph.Node> queue, boolean smartCull, Consumer<SectionRenderDispatcher.RenderSection> visibleSectionConsumer, it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedEmptySection) private voidSectionOcclusionGraph.scheduleFullUpdate(boolean smartCull, Camera camera, Vec3 cameraPosition, it.unimi.dsi.fastutil.longs.LongOpenHashSet loadedEmptySections) private voidLevelRenderer.scheduleResort(SectionRenderDispatcher.RenderSection section, TranslucencyPointOfView pointOfView, Vec3 cameraPosition, boolean force, boolean ignoreAxisAlignment) private voidLevelRenderer.scheduleTranslucentSectionResort(Vec3 cameraPosition) voidOrderedSubmitNodeCollector.submitNameTag(PoseStack poseStack, @Nullable Vec3 pos, int yOffset, Component text, boolean seeThrough, int packedLight, double distanceToCameraSq, CameraRenderState cameraRenderState) voidSubmitNodeCollection.submitNameTag(PoseStack p_439367_, @Nullable Vec3 p_438925_, int p_439620_, Component p_439305_, boolean p_439557_, int p_451646_, double p_439599_, CameraRenderState p_451017_) voidSubmitNodeStorage.submitNameTag(PoseStack p_434460_, @Nullable Vec3 p_434946_, int p_435789_, Component p_433492_, boolean p_433752_, int p_451638_, double p_434416_, CameraRenderState p_451305_) -
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 sign, BeaconRenderState renderState, float partialTick, Vec3 cameraPosition) voidAbstractEndPortalRenderer.extractRenderState(T p_446233_, S p_446143_, float p_447080_, Vec3 p_445461_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_445911_) voidAbstractSignRenderer.extractRenderState(SignBlockEntity p_446457_, SignRenderState p_446340_, float p_445525_, Vec3 p_445758_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446708_) voidBannerRenderer.extractRenderState(BannerBlockEntity p_446844_, BannerRenderState p_447143_, float p_446794_, Vec3 p_447357_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446651_) voidBeaconRenderer.extractRenderState(T p_447130_, BeaconRenderState p_446076_, float p_445698_, Vec3 p_445714_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_447097_) voidBedRenderer.extractRenderState(BedBlockEntity p_445886_, BedRenderState p_447090_, float p_446336_, Vec3 p_445891_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446152_) voidBellRenderer.extractRenderState(BellBlockEntity p_446818_, BellRenderState p_446429_, float p_447331_, Vec3 p_445785_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446767_) default voidBlockEntityRenderer.extractRenderState(T blockEntity, S renderState, float partialTick, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay crumblingOverlay) voidBlockEntityWithBoundingBoxRenderer.extractRenderState(T p_447304_, BlockEntityWithBoundingBoxRenderState p_446774_, float p_447134_, Vec3 p_446736_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446663_) voidBrushableBlockRenderer.extractRenderState(BrushableBlockEntity p_446197_, BrushableBlockRenderState p_445907_, float p_446852_, Vec3 p_447180_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_445754_) voidCampfireRenderer.extractRenderState(CampfireBlockEntity p_445642_, CampfireRenderState p_446494_, float p_446709_, Vec3 p_445382_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446369_) voidChestRenderer.extractRenderState(T p_446382_, ChestRenderState p_445744_, float p_446088_, Vec3 p_447190_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446187_) voidConduitRenderer.extractRenderState(ConduitBlockEntity p_446529_, CondiutRenderState p_446205_, float p_445996_, Vec3 p_446533_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_447228_) voidCopperGolemStatueBlockRenderer.extractRenderState(CopperGolemStatueBlockEntity p_446789_, CopperGolemStatueRenderState p_445801_, float p_445752_, Vec3 p_446054_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446325_) voidDecoratedPotRenderer.extractRenderState(DecoratedPotBlockEntity p_445843_, DecoratedPotRenderState p_447313_, float p_447091_, Vec3 p_447064_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446859_) voidEnchantTableRenderer.extractRenderState(EnchantingTableBlockEntity p_446778_, EnchantTableRenderState p_445593_, float p_447234_, Vec3 p_446321_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446024_) voidLecternRenderer.extractRenderState(LecternBlockEntity p_447206_, LecternRenderState p_445480_, float p_445502_, Vec3 p_446398_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446019_) voidPistonHeadRenderer.extractRenderState(PistonMovingBlockEntity p_445667_, PistonHeadRenderState p_445712_, float p_446910_, Vec3 p_445923_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446317_) voidShelfRenderer.extractRenderState(ShelfBlockEntity p_445792_, ShelfRenderState p_445521_, float p_446232_, Vec3 p_446470_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446704_) voidShulkerBoxRenderer.extractRenderState(ShulkerBoxBlockEntity p_445428_, ShulkerBoxRenderState p_446695_, float p_446436_, Vec3 p_446068_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446363_) voidSkullBlockRenderer.extractRenderState(SkullBlockEntity p_446674_, SkullBlockRenderState p_446649_, float p_447371_, Vec3 p_445526_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446270_) voidSpawnerRenderer.extractRenderState(SpawnerBlockEntity p_446072_, SpawnerRenderState p_447179_, float p_446518_, Vec3 p_446190_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_445699_) voidTestInstanceRenderer.extractRenderState(TestInstanceBlockEntity p_445503_, TestInstanceRenderState p_446597_, float p_446183_, Vec3 p_445695_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_445824_) voidTheEndGatewayRenderer.extractRenderState(TheEndGatewayBlockEntity p_446930_, EndGatewayRenderState p_445622_, float p_445588_, Vec3 p_445696_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_445892_) voidTrialSpawnerRenderer.extractRenderState(TrialSpawnerBlockEntity p_446337_, SpawnerRenderState p_445637_, float p_446553_, Vec3 p_446985_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_447263_) voidVaultRenderer.extractRenderState(VaultBlockEntity p_446594_, VaultRenderState p_446868_, float p_446263_, Vec3 p_446377_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446440_) booleanBeaconRenderer.shouldRender(T p_173534_, Vec3 p_173535_) default booleanBlockEntityRenderer.shouldRender(T blockEntity, Vec3 cameraPos) booleanTestInstanceRenderer.shouldRender(TestInstanceBlockEntity p_397042_, Vec3 p_397171_) private voidAbstractSignRenderer.translateSignText(PoseStack poseStack, boolean isFront, Vec3 offset) -
Uses of Vec3 in net.minecraft.client.renderer.chunk
Fields in net.minecraft.client.renderer.chunk declared as Vec3Methods in net.minecraft.client.renderer.chunk with parameters of type Vec3Modifier and TypeMethodDescriptionstatic 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 shift) private static Vec3DebugRenderer.shiftHue(float red, float green, float blue, float shift) Methods in net.minecraft.client.renderer.debug with parameters of type Vec3Modifier and TypeMethodDescriptionvoidprivate static voidSolidFaceRenderer.addFaceIfSturdy(BlockPos pos, BlockState state, BlockGetter level, Direction direction, Vec3 minPos, Vec3 maxPos, int color) private voidChunkCullingDebugRenderer.addFrustumLine(Vec3 cameraPos, Vector4f start, Vector4f end) private voidChunkCullingDebugRenderer.addFrustumQuad(Vec3 cameraPos, Vector4f[] frustumPoints, int point1, int point2, int point3, int point4, int red, int green, int blue) -
Uses of Vec3 in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity that return Vec3Modifier and TypeMethodDescriptionprivate Vec3FishingHookRenderer.getPlayerHandPos(Player player, float handAngle, float partialTick) private Vec3GuardianRenderer.getPosition(LivingEntity livingEntity, double yOffset, float partialTick) AbstractMinecartRenderer.getRenderOffset(S p_363702_) EndermanRenderer.getRenderOffset(EndermanRenderState p_362373_) EntityRenderer.getRenderOffset(S renderState) ItemFrameRenderer.getRenderOffset(ItemFrameRenderState p_361106_) ShulkerRenderer.getRenderOffset(ShulkerRenderState p_360997_) Methods in net.minecraft.client.renderer.entity with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidGuardianRenderer.renderBeam(PoseStack poseStack, SubmitNodeCollector nodeCollector, Vec3 beamVector, float attackTime, float scale, float animationTime) -
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 pos, int yOffset, Component text, boolean seeThrough, int packedLight, double distanceToCameraSq, CameraRenderState cameraRenderState) -
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 TypeMethodDescriptionvoidvoidvoidDrawableGizmoPrimitives.addQuad(Vec3 p_455156_, Vec3 p_455820_, Vec3 p_455725_, Vec3 p_456267_, int p_455041_) voidDrawableGizmoPrimitives.addText(Vec3 p_455439_, String p_455651_, TextGizmo.Style p_455425_) voidDrawableGizmoPrimitives.addTriangleFan(Vec3[] p_456174_, int p_456047_) Constructors in net.minecraft.client.renderer.gizmos with parameters of type Vec3ModifierConstructorDescription(package private)Creates an instance of aLinerecord class.(package private)Creates an instance of aPointrecord class.(package private)Creates an instance of aQuadrecord class.(package private)Text(Vec3 pos, String text, TextGizmo.Style style) Creates an instance of aTextrecord class.(package private)TriangleFan(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 worldPosition, Vec2 rotation, ServerLevel level, PermissionSet permissionLevel, String textName, Component displayName, MinecraftServer server, @Nullable Entity entity) privateCommandSourceStack(CommandSource source, Vec3 worldPosition, 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 source) LocalCoordinates.getPosition(CommandSourceStack source) WorldCoordinates.getPosition(CommandSourceStack source) static Vec3Vec3Argument.getVec3(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
Uses of Vec3 in net.minecraft.commands.arguments.selector
Fields in net.minecraft.commands.arguments.selector with type parameters of type Vec3Modifier and TypeFieldDescriptionprivate final BiConsumer<Vec3, List<? extends Entity>> EntitySelector.orderprivate BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.orderstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelector.ORDER_ARBITRARYstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_FURTHESTstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_NEARESTstatic final BiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.ORDER_RANDOMEntitySelector.positionEntitySelector.positionMethods in net.minecraft.commands.arguments.selector that return types with arguments of type Vec3Modifier and TypeMethodDescriptionBiConsumer<Vec3, List<? extends Entity>> EntitySelectorParser.getOrder()Methods in net.minecraft.commands.arguments.selector with parameters of type Vec3Modifier and TypeMethodDescriptionprivate @Nullable AABBEntitySelector.getAbsoluteAabb(Vec3 pos) EntitySelector.getPredicate(Vec3 pos, @Nullable AABB box, @Nullable FeatureFlagSet enabledFeatures) EntitySelector.sortAndLimit(Vec3 pos, List<T> entities) Method parameters in net.minecraft.commands.arguments.selector with type arguments of type Vec3Modifier and TypeMethodDescriptionvoidEntitySelectorParser.setOrder(BiConsumer<Vec3, List<? extends Entity>> order) Constructor parameters in net.minecraft.commands.arguments.selector with type arguments of type Vec3ModifierConstructorDescriptionEntitySelector(int maxResults, boolean includesEntities, boolean worldLimited, List<Predicate<Entity>> contextFreePredicates, @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 pos) BlockPos.getBottomCenter()BlockPos.getCenter()Direction.getUnitVec3()Methods in net.minecraft.core with parameters of type Vec3Modifier and TypeMethodDescriptionstatic ImmutableList<Direction.Axis> Direction.axisStepOrder(Vec3 direction) BlockPos.betweenCornersInDirection(int x1, int y1, int z1, int x2, int y2, int z2, Vec3 direction) BlockPos.betweenCornersInDirection(BlockPos pos1, BlockPos pos2, Vec3 direction) BlockPos.betweenCornersInDirection(AABB boundingBox, Vec3 direction) BlockPos.clampLocationWithin(Vec3 pos) static DirectionDirection.getApproximateNearest(Vec3 vector) -
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 relativeVec3) GameTestHelper.relativeVec(Vec3 absoluteVec3) Methods in net.minecraft.gametest.framework with parameters of type Vec3Modifier and TypeMethodDescriptionGameTestHelper.absoluteVec(Vec3 relativeVec3) GameTestHelper.findEntities(EntityType<E> type, Vec3 pos, double radius) GameTestHelper.relativeVec(Vec3 absoluteVec3) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> type, Vec3 pos) GameTestHelper.spawn(EntityType<E> type, Vec3 pos, int count) <E extends Entity>
EGameTestHelper.spawn(EntityType<E> type, Vec3 pos, @Nullable EntitySpawnReason reason) <E extends Mob>
EGameTestHelper.spawnWithNoFreeWill(EntityType<E> type, 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 text, Vec3 pos, TextGizmo.Style style) static GizmoPropertiesGizmos.circle(Vec3 pos, float radius, GizmoStyle style) static RectGizmoRectGizmo.fromCuboidFace(Vec3 corner1, Vec3 corner2, Direction face, GizmoStyle style) static GizmoPropertiesstatic GizmoPropertiesstatic GizmoPropertiesstatic GizmoPropertiesGizmos.rect(Vec3 corner1, Vec3 corner2, 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 Vec3Modifier and TypeMethodDescriptionstatic Vec3LpVec3.read(io.netty.buffer.ByteBuf buffer) FriendlyByteBuf.readLpVec3()FriendlyByteBuf.readVec3()static Vec3FriendlyByteBuf.readVec3(io.netty.buffer.ByteBuf buffer) Methods 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.InteractionAtLocationAction.locationprivate final Vec3ClientboundAddEntityPacket.movementprivate final Vec3ClientboundSetEntityMotionPacket.movementprivate 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 x, long y, long z) VecDeltaCodec.getBase()ClientboundAddEntityPacket.getMovement()ClientboundSetEntityMotionPacket.getMovement()@Nullable Vec3ClientboundPlayerLookAtPacket.getPosition(Level level) 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 TypeMethodDescriptionstatic ServerboundInteractPacketServerboundInteractPacket.createInteractionPacket(Entity entity, boolean usingSecondaryAction, InteractionHand hand, Vec3 interactionLocation) longlonglongvoidServerboundInteractPacket.Handler.onInteraction(InteractionHand hand, Vec3 interactionLocation) voidConstructors in net.minecraft.network.protocol.game with parameters of type Vec3ModifierConstructorDescriptionClientboundAddEntityPacket(int id, UUID uuid, double x, double y, double z, float xRot, float yRot, EntityType<?> type, int data, Vec3 deltaMovement, double yHeadRot) ClientboundExplodePacket(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) (package private)InteractionAtLocationAction(InteractionHand hand, Vec3 location) 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 tag, boolean randomizeProperties) private static intLootCommand.dropInWorld(CommandSourceStack source, Vec3 pos, List<ItemStack> items, LootCommand.Callback callback) private static intPlaySoundCommand.playSound(CommandSourceStack source, Collection<ServerPlayer> targets, Identifier sound, SoundSource soundSource, Vec3 pos, float volume, float pitch, float minVolume) private static intParticleCommand.sendParticles(CommandSourceStack source, ParticleOptions options, Vec3 pos, Vec3 delta, float speed, int count, boolean force, Collection<ServerPlayer> viewers) private static intSummonCommand.spawnEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag tag, boolean randomizeProperties) Constructors in net.minecraft.server.commands with parameters of type 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 collisionGetter, BlockPos pos) 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 pos) 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 towardsPos) private static doubleChunkMap.euclideanDistanceSquared(ChunkPos chunkPos, Vec3 pos) voidServerLevel.gameEvent(Holder<GameEvent> p_316597_, Vec3 p_215042_, GameEvent.Context p_215043_) voidWorldGenRegion.gameEvent(Holder<GameEvent> p_316792_, Vec3 p_215164_, GameEvent.Context p_215165_) voidServerPlayer.lookAt(EntityAnchorArgument.Anchor anchor, Vec3 target) static ServerPlayer.RespawnPosAngleprivate booleanChunkMap.playerIsCloseEnoughTo(ServerPlayer player, Vec3 pos, int distance) voidServerPlayer.setKnownMovement(Vec3 knownMovement) Method parameters in net.minecraft.server.level with type arguments of type Vec3Modifier and TypeMethodDescriptionprivate voidPlayerSpawnFinder.scheduleCandidate(int x, int z, int index, Supplier<Optional<Vec3>> calculator) 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 Vec3ModifierConstructorDescription(package private)Ready(ServerLevel spawnLevel, Vec3 spawnPosition, Vec2 spawnAngle) Constructor parameters in net.minecraft.server.network.config with type arguments of type Vec3ModifierConstructorDescription(package private)Preparing(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 start, Vec3 end, AABB boundingBox) static voidParticleUtils.spawnParticleOnFace(Level level, BlockPos pos, Direction direction, ParticleOptions options, Vec3 speed, double spread) Method parameters in net.minecraft.util with type arguments of type Vec3Modifier and TypeMethodDescriptionstatic voidParticleUtils.spawnParticlesOnBlockFace(Level level, BlockPos pos, ParticleOptions options, IntProvider count, Direction direction, Supplier<Vec3> speedSupplier, double spread) -
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 Vec3Modifier and TypeFieldDescription(package private) @Nullable Vec3EnvironmentAttributeProbe.positionMethods in net.minecraft.world.attribute with parameters of type Vec3Modifier and TypeMethodDescriptionEnvironmentAttributeLayer.Positional.applyPositional(Value oldValue, Vec3 pos, @Nullable SpatialAttributeInterpolator interpolator) private ValueEnvironmentAttributeSystem.ValueSampler.computeValuePositional(Vec3 pos, @Nullable SpatialAttributeInterpolator interpolator) default <Value> ValueEnvironmentAttributeReader.getValue(EnvironmentAttribute<Value> attribute, Vec3 pos) <Value> ValueEnvironmentAttributeReader.getValue(EnvironmentAttribute<Value> attribute, Vec3 pos, @Nullable SpatialAttributeInterpolator interpolator) <Value> ValueEnvironmentAttributeSystem.getValue(EnvironmentAttribute<Value> p_458091_, Vec3 p_458226_, @Nullable SpatialAttributeInterpolator p_458292_) EnvironmentAttributeSystem.ValueSampler.getValue(Vec3 pos, @Nullable SpatialAttributeInterpolator interpolator) static <V> voidGaussianSampler.sample(Vec3 pos, 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 pos, double radius, MobEffectInstance effect, int duration) -
Uses of Vec3 in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as Vec3Modifier and TypeFieldDescriptionstatic final Vec3Leashable.AXIS_SPECIFIC_ELASTICITYstatic 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 maxUpStepstatic Vec3Entity.collideBoundingBox(@Nullable Entity entity, Vec3 vec, AABB collisionBox, Level level, List<VoxelShape> potentialHits) private static Vec3Entity.collideWithShapes(Vec3 deltaMovement, AABB entityBB, List<VoxelShape> shapes) static Vec3[]Leashable.createQuadLeashOffsets(Entity entity, double zOffset, double z, double x, double y) 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 yRot) EntityAttachments.getAverage(EntityAttachment attachment) EntityAttachments.getClamped(EntityAttachment attachment, int index, float yRot) protected static Vec3Entity.getCollisionHorizontalEscapeVector(double vehicleWidth, double passengerWidth, float yRot) protected static Vec3Entity.getDefaultPassengerAttachmentPoint(Entity vehicle, Entity passenger, EntityAttachments attachments) Entity.getDeltaMovement()Entity.getDismountLocationForPassenger(LivingEntity passenger) final Vec3Entity.getEyePosition()final Vec3Entity.getEyePosition(float partialTick) LivingEntity.getFluidFallingAdjustedMovement(double gravity, boolean isFalling, Vec3 deltaMovement) Entity.getForward()Entity.getHandHoldingItemAngle(Item item) Entity.getHeadLookAngle()private static Vec3Leashable.getHolderMovement(Entity holder) protected static Vec3Entity.getInputVector(Vec3 relative, float motionScaler, float facing) Entity.getKnownMovement()Entity.getKnownSpeed()default Vec3Leashable.getLeashOffset()default Vec3Leashable.getLeashOffset(float partialTick) Entity.getLightProbePosition(float partialTick) Entity.getLookAngle()@Nullable Vec3EntityAttachments.getNullable(EntityAttachment attachment, int index, float yRot) protected Vec3Entity.getPassengerAttachmentPoint(Entity entity, EntityDimensions dimensions, float partialTick) Entity.getPassengerRidingPosition(Entity entity) LivingEntity.getPassengerRidingPosition(Entity p_295664_) final Vec3Entity.getPosition(float partialTick) Vec3[]Entity.getQuadLeashHolderOffsets()default Vec3[]Leashable.getQuadLeashOffsets()Entity.getRelativePortalPosition(Direction.Axis axis, BlockUtil.FoundRectangle rectangle) LivingEntity.getRelativePortalPosition(Direction.Axis p_21085_, BlockUtil.FoundRectangle p_469855_) protected Vec3LivingEntity.getRiddenInput(Player player, Vec3 travelVector) Entity.getRopeHoldPosition(float partialTick) final Vec3Entity.getUpVector(float partialTick) Entity.getVehicleAttachmentPoint(Entity entity) final Vec3Entity.getViewVector(float partialTick) Gets the interpolated look vector.private Vec3LivingEntity.handleOnClimbable(Vec3 deltaMovement) private Vec3LivingEntity.handleRelativeFrictionAndCalculateMovement(Vec3 deltaMovement, float friction) protected Vec3Entity.limitPistonMovement(Vec3 pos) protected Vec3Entity.maybeBackOffFromEdge(Vec3 movement, MoverType type) 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 relativePortalPosition) Entity.Movement.to()Returns the value of thetorecord component.Entity.trackingPosition()private static Vec3EntityAttachments.transformPoint(Vec3 point, float yRot) private Vec3LivingEntity.updateFallFlyingMovement(Vec3 deltaMovement) 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 addend) voidEntity.applyEffectsFromBlocks(Vec3 oldPosition, Vec3 position) private voidEntity.applyMovementEmissionAndPlaySound(Entity.MovementEmission movementEmission, Vec3 movement, BlockPos pos, BlockState state) EntityAttachments.Builder.attach(EntityAttachment attachment, Vec3 pos) EntityType.Builder.attach(EntityAttachment attachment, Vec3 pos) static voidExperienceOrb.award(ServerLevel level, Vec3 pos, int amount) static voidExperienceOrb.awardWithDirection(ServerLevel level, Vec3 pos, Vec3 direction, int amount) voidLivingEntity.causeExtraKnockback(Entity entity, float knockback, Vec3 deltaMovement) private intEntity.checkInsideBlocks(Vec3 from, Vec3 to, InsideBlockEffectApplier.StepBasedCollector stepBasedCollector, it.unimi.dsi.fastutil.longs.LongSet visited, int maxSteps) 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 maxUpStepstatic Vec3Entity.collideBoundingBox(@Nullable Entity entity, Vec3 vec, AABB collisionBox, Level level, List<VoxelShape> potentialHits) booleanEntity.collidedWithFluid(FluidState fluid, BlockPos pos, Vec3 from, Vec3 to) booleanEntity.collidedWithShapeMovingFrom(Vec3 from, Vec3 to, List<AABB> boxes) private static Vec3Entity.collideWithShapes(Vec3 deltaMovement, AABB entityBB, List<VoxelShape> shapes) private static Optional<Leashable.Wrench> Leashable.computeDampenedSpringInteraction(Vec3 entityAttachmentPoint, Vec3 leasherAttachmentPoint, double elasticDistance, Vec3 knownMovement, Vec3 relativeAttachmentPoint) doubleEntity.distanceToSqr(Vec3 pos) LivingEntity.getFluidFallingAdjustedMovement(double gravity, boolean isFalling, Vec3 deltaMovement) protected static Vec3Entity.getInputVector(Vec3 relative, float motionScaler, float facing) protected Vec3LivingEntity.getRiddenInput(Player player, Vec3 travelVector) private Vec3LivingEntity.handleOnClimbable(Vec3 deltaMovement) private Vec3LivingEntity.handleRelativeFrictionAndCalculateMovement(Vec3 deltaMovement, float friction) Entity.interactAt(Player player, Vec3 vec, InteractionHand hand) Applies the given player interaction to this Entity.voidInterpolationHandler.interpolateTo(Vec3 pos, float yRot, float xRot) protected booleanEntity.isHorizontalCollisionMinor(Vec3 deltaMovement) booleanMob.isWithinHome(Vec3 pos) Leashable.leashableInArea(Level level, Vec3 pos, Predicate<Leashable> predicate) voidEntity.lerpMotion(Vec3 motion) Updates the entity motion clientside, called by packets from the serverprotected Vec3Entity.limitPistonMovement(Vec3 pos) voidEntity.lookAt(EntityAnchorArgument.Anchor anchor, Vec3 target) voidLivingEntity.lookAt(EntityAnchorArgument.Anchor anchor, Vec3 target) protected AABBEntity.makeBoundingBox(Vec3 position) EntityDimensions.makeBoundingBox(Vec3 pos) protected AABBInteraction.makeBoundingBox(Vec3 p_390454_) voidEntity.makeStuckInBlock(BlockState state, Vec3 motionMultiplier) protected Vec3Entity.maybeBackOffFromEdge(Vec3 movement, MoverType type) voidfinal voidEntity.moveOrInterpolateTo(Vec3 pos) final voidEntity.moveOrInterpolateTo(Vec3 pos, float yRot, float xRot) voidEntity.moveRelative(float amount, Vec3 relative) static ItemOwnerItemOwner.offsetFromOwner(ItemOwner owner, Vec3 offset) EntityType.Builder.passengerAttachments(Vec3... attachPoints) voidstatic Vec3LivingEntity.resetForwardDirectionOfRelativePortalPosition(Vec3 relativePortalPosition) voidEntity.setDeltaMovement(Vec3 deltaMovement) private voidfinal voidEntity.setOldPosAndRot(Vec3 pos, 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 stack, Vec3 offset) protected voidLivingEntity.tickRidden(Player player, Vec3 travelVector) (package private) static doubleLeashable.Wrench.torqueFromForce(Vec3 attachmentPoint, Vec3 force) private static Vec3EntityAttachments.transformPoint(Vec3 point, float yRot) voidprivate voidLivingEntity.travelFallFlying(Vec3 travelVector) protected voidLivingEntity.travelFlying(Vec3 relative, float amount) protected voidLivingEntity.travelFlying(Vec3 relative, float inWaterAmount, float inLavaAmount, float amount) private voidLivingEntity.travelInAir(Vec3 travelVector) private voidLivingEntity.travelInFluid(Vec3 travelVector) Deprecated.Neo: useLivingEntity.travelInFluid(Vec3, FluidState)insteadprivate voidLivingEntity.travelInFluid(Vec3 travelVector, FluidState fluidState) private voidLivingEntity.travelInLava(Vec3 travelVector, double gravity, boolean movingDown, double y) protected voidLivingEntity.travelInWater(Vec3 travelVector, double gravity, boolean movingDown, double y) private voidLivingEntity.travelRidden(Player player, Vec3 travelVector) private static booleanExperienceOrb.tryMergeToExisting(ServerLevel level, Vec3 pos, int amount) private Vec3LivingEntity.updateFallFlyingMovement(Vec3 deltaMovement) EntityType.Builder.vehicleAttachment(Vec3 attachPoint) private booleanEntity.vibrationAndSoundEffectsFromBlock(BlockPos pos, BlockState state, boolean playStepSound, boolean broadcastGameEvent, Vec3 entityPos) Method parameters in net.minecraft.world.entity with type arguments of type Vec3Modifier and TypeMethodDescriptionprivate static <E extends Entity & Leashable>
List<Leashable.Wrench> Leashable.computeElasticInteraction(E entity, Entity leashHolder, List<Vec3> entityAttachmentPoint, List<Vec3> leasherAttachmentPoint) final voidConstructors in net.minecraft.world.entity with parameters of type Vec3ModifierConstructorDescriptionExperienceOrb(Level level, Vec3 pos, Vec3 direction, int value) (package private)InterpolationData(int steps, Vec3 position, float yRot, float xRot) (package private)Creates 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 Vec3ModifierConstructorDescription(package private)EntityAttachments(Map<EntityAttachment, List<Vec3>> attachments) (package private)Creates 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 attributes, long time, 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.startPositionFields 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 mob, Vec3 target) BlockPosTracker.currentPosition()EntityTracker.currentPosition()PositionTracker.currentPosition()private Vec3TransportItemsBetweenContainers.getCenterPos(PathfinderMob mob) private Vec3PrepareRamNearestTarget.getEdgeOfBlock(BlockPos pos, BlockPos other) private static @Nullable Vec3MoveToSkySeeingSpot.getOutdoorPosition(ServerLevel level, LivingEntity entity) private @Nullable Vec3AnimalPanic.getPanicPos(E pathfinder, ServerLevel level) private Vec3TransportItemsBetweenContainers.getPositionToReachTargetFrom(@Nullable Path path, PathfinderMob mob) static @Nullable Vec3BehaviorUtils.getRandomSwimmablePos(PathfinderMob pathfinder, int radius, int verticalDistance) private static @Nullable Vec3RandomStroll.getTargetFlyPos(PathfinderMob mob, int maxDistance, int yRange) private static @Nullable Vec3RandomStroll.getTargetSwimPos(PathfinderMob mob) private static Vec3GoAndGiveItemsToTarget.getThrowPosition(PositionTracker positionTracker) private Vec3TransportItemsBetweenContainers.setMiddleYPosition(PathfinderMob mob, Vec3 pos) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type Vec3Modifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle(Mob mob, Vec3 target, float maxJumpVelocity, int angle, boolean requireClearTransition) Methods in net.minecraft.world.entity.ai.behavior with parameters of type Vec3Modifier and TypeMethodDescriptionLongJumpUtil.calculateJumpVectorForAngle(Mob mob, Vec3 target, float maxJumpVelocity, int angle, boolean requireClearTransition) protected @Nullable Vec3LongJumpToRandomPos.calculateOptimalJumpVector(Mob mob, Vec3 target) private booleanTransportItemsBetweenContainers.canSeeAnyTargetSide(TransportItemsBetweenContainers.TransportItemTarget target, Level level, PathfinderMob mob, Vec3 pos) private static booleanLongJumpUtil.isClearTransition(Mob mob, EntityDimensions dimensions, Vec3 startPos, Vec3 endPos) private booleanTransportItemsBetweenContainers.isWithinTargetDistance(double distance, TransportItemsBetweenContainers.TransportItemTarget target, Level level, PathfinderMob mob, Vec3 center) private Vec3TransportItemsBetweenContainers.setMiddleYPosition(PathfinderMob mob, Vec3 pos) private booleanTransportItemsBetweenContainers.targetIsReachableFromPosition(Level level, boolean withinDistance, Vec3 targetPos, TransportItemsBetweenContainers.TransportItemTarget target, PathfinderMob mob) static voidBehaviorUtils.throwItem(LivingEntity livingEntity, ItemStack stack, Vec3 offset) static voidBehaviorUtils.throwItem(LivingEntity entity, ItemStack stack, Vec3 offset, Vec3 speedMultiplier, float yOffset) static voidGoAndGiveItemsToTarget.throwItem(LivingEntity entity, ItemStack stack, Vec3 throwPos) Method parameters in net.minecraft.world.entity.ai.behavior with type arguments of type Vec3Modifier and TypeMethodDescriptionprivate static <T> OneShot<PathfinderMob> SetWalkTargetAwayFrom.create(MemoryModuleType<T> walkTargetAwayFromMemory, float speedModifier, int desiredDistance, boolean hasTarget, Function<T, Vec3> toPosition) private static OneShot<PathfinderMob> RandomStroll.strollFlyOrSwim(float speedModifier, Function<PathfinderMob, Vec3> target, Predicate<PathfinderMob> canStroll) Constructors in net.minecraft.world.entity.ai.behavior with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.entity.ai.control
Methods in net.minecraft.world.entity.ai.control with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.entity.ai.goal
Fields in net.minecraft.world.entity.ai.goal declared as Vec3Modifier and TypeFieldDescription(package private) @Nullable Vec3SpearUseGoal.SpearUseState.awayPosMethods 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 vectorPos, float speedModifier, int closeEnoughDist) Constructs a walk target using a vector that's directly converted to a BlockPos. -
Uses of Vec3 in net.minecraft.world.entity.ai.util
Methods in net.minecraft.world.entity.ai.util that return Vec3Modifier and TypeMethodDescriptionstatic @Nullable Vec3RandomPos.generateRandomPos(Supplier<@Nullable BlockPos> posSupplier, ToDoubleFunction<BlockPos> toDoubleFunction) 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 maxDistance, int yRange, int y, double x, double z, double amplifier) static @Nullable Vec3DefaultRandomPos.getPos(PathfinderMob mob, int radius, int verticalDistance) static @Nullable Vec3HoverRandomPos.getPos(PathfinderMob mob, int radius, int yRange, double x, double z, float amplifier, int maxSwimUp, int minSwimUp) Tries to generate a random position a couple different ways, and if failing, sees if swimming vertically is an option.static @Nullable Vec3LandRandomPos.getPos(PathfinderMob mob, int radius, int verticalRange) static @Nullable Vec3LandRandomPos.getPos(PathfinderMob mob, int radius, int yRange, ToDoubleFunction<BlockPos> toDoubleFunction) static @Nullable Vec3DefaultRandomPos.getPosAway(PathfinderMob mob, int radius, int yRange, Vec3 avoidPos) static @Nullable Vec3LandRandomPos.getPosAway(PathfinderMob mob, double minDistance, double maxDistance, int yRange, Vec3 pos) static @Nullable Vec3LandRandomPos.getPosAway(PathfinderMob mob, int radius, int yRange, Vec3 pos) private static @Nullable Vec3LandRandomPos.getPosInDirection(PathfinderMob mob, double minDistance, double maxDistance, int yRange, Vec3 pos, boolean isRestricted) static @Nullable Vec3AirRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, int y, Vec3 pos, double amplifier) static @Nullable Vec3DefaultRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 targetPos, double amplifier) static @Nullable Vec3LandRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 pos) Methods in net.minecraft.world.entity.ai.util with parameters of type Vec3Modifier and TypeMethodDescriptionstatic @Nullable Vec3DefaultRandomPos.getPosAway(PathfinderMob mob, int radius, int yRange, Vec3 avoidPos) static @Nullable Vec3LandRandomPos.getPosAway(PathfinderMob mob, double minDistance, double maxDistance, int yRange, Vec3 pos) static @Nullable Vec3LandRandomPos.getPosAway(PathfinderMob mob, int radius, int yRange, Vec3 pos) private static @Nullable Vec3LandRandomPos.getPosInDirection(PathfinderMob mob, double minDistance, double maxDistance, int yRange, Vec3 pos, boolean isRestricted) static @Nullable Vec3AirRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, int y, Vec3 pos, double amplifier) static @Nullable Vec3DefaultRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 targetPos, double amplifier) static @Nullable Vec3LandRandomPos.getPosTowards(PathfinderMob mob, int radius, int yRange, Vec3 pos) static booleanGoalUtils.isRestricted(boolean shortCircuit, 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 p_250009_, Holder<GameEvent> p_316687_, GameEvent.Context p_249478_, Vec3 p_250852_) 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 p_460648_, double p_460807_, boolean p_461077_, double p_461025_) -
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 p_251477_) protected Vec3Camel.getPassengerAttachmentPoint(Entity p_295101_, EntityDimensions p_294765_, float p_294716_) Vec3[]Camel.getQuadLeashOffsets()protected Vec3Camel.getRiddenInput(Player p_278264_, Vec3 p_278298_) Methods in net.minecraft.world.entity.animal.camel with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidCamel.executeRidersJump(float p_251967_, Vec3 p_275627_) protected Vec3Camel.getRiddenInput(Player p_278264_, Vec3 p_278298_) protected voidCamel.tickRidden(Player p_278319_, Vec3 p_278301_) 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 p_479281_, double p_481909_, boolean p_480975_, double p_481669_) -
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 livingEntity) private @Nullable Vec3AbstractHorse.getDismountLocationInDirection(Vec3 direction, LivingEntity passenger) Llama.getLeashOffset()protected Vec3AbstractHorse.getPassengerAttachmentPoint(Entity p_478678_, EntityDimensions p_480215_, float p_480662_) protected Vec3Llama.getPassengerAttachmentPoint(Entity p_481980_, EntityDimensions p_478389_, float p_478974_) Vec3[]AbstractChestedHorse.getQuadLeashOffsets()Vec3[]AbstractHorse.getQuadLeashOffsets()Vec3[]ZombieHorse.getQuadLeashOffsets()protected Vec3AbstractHorse.getRiddenInput(Player p_478237_, Vec3 p_481501_) Methods in net.minecraft.world.entity.animal.equine with parameters of type Vec3Modifier and TypeMethodDescriptionprotected voidAbstractHorse.executeRidersJump(float playerJumpPendingScale, Vec3 travelVector) private @Nullable Vec3AbstractHorse.getDismountLocationInDirection(Vec3 direction, LivingEntity passenger) protected Vec3AbstractHorse.getRiddenInput(Player p_478237_, Vec3 p_481501_) protected voidAbstractHorse.tickRidden(Player p_478478_, Vec3 p_478619_) -
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 p_479551_, double p_482033_, boolean p_481762_, double p_480703_) -
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 p_461071_, double p_461250_, boolean p_461275_, double p_460880_) -
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 p_482379_) HappyGhast.getLeashOffset()Vec3[]HappyGhast.getQuadLeashHolderOffsets()protected Vec3HappyGhast.getRiddenInput(Player p_478979_, Vec3 p_481601_) Methods in net.minecraft.world.entity.animal.happyghast with parameters of type Vec3Modifier and TypeMethodDescriptionprotected booleanHappyGhast.BabyFlyingPathNavigation.canMoveDirectly(Vec3 p_478192_, Vec3 p_478265_) protected Vec3HappyGhast.getRiddenInput(Player p_478979_, Vec3 p_481601_) protected voidHappyGhast.tickRidden(Player p_479364_, Vec3 p_480110_) 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 p_455696_, Vec3 p_454886_) Methods in net.minecraft.world.entity.animal.nautilus with parameters of type Vec3Modifier and TypeMethodDescriptionprotected Vec3AbstractNautilus.getRiddenInput(Player p_455696_, Vec3 p_454886_) protected voidAbstractNautilus.tickRidden(Player p_455939_, Vec3 p_454667_) protected voidAbstractNautilus.travelInWater(Vec3 p_460802_, double p_460644_, boolean p_461141_, double p_460662_) -
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 p_479334_, Vec3 p_478978_) Methods in net.minecraft.world.entity.animal.pig with parameters of type Vec3Modifier and TypeMethodDescriptionprotected Vec3Pig.getRiddenInput(Player p_479334_, Vec3 p_478978_) protected voidPig.tickRidden(Player p_481148_, Vec3 p_479823_) -
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 p_479713_, double p_481524_, boolean p_480052_, double p_480388_) -
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 state, Vec3 motionMultiplier) -
Uses of Vec3 in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return Vec3Modifier and TypeMethodDescriptionArmorStand.getLightProbePosition(float partialTick) LeashFenceKnotEntity.getRopeHoldPosition(float partialTick) Methods in net.minecraft.world.entity.decoration with parameters of type Vec3Modifier and TypeMethodDescriptionprivate EquipmentSlotArmorStand.getClickedSlot(Vec3 vector) ArmorStand.interactAt(Player player, Vec3 vec, InteractionHand hand) Applies the given player interaction to this Entity.voidvoidvoid -
Uses of Vec3 in net.minecraft.world.entity.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 pos, RandomSource random) private static @Nullable Vec3Ghast.RandomFloatAroundGoal.chooseRandomPositionWithRestriction(Mob mob, Vec3 pos, RandomSource random) Shulker.getDeltaMovement()Strider.getDismountLocationForPassenger(LivingEntity livingEntity) Strider.getLeashOffset()protected Vec3Slime.getPassengerAttachmentPoint(Entity p_296103_, EntityDimensions p_295741_, float p_295572_) protected Vec3Strider.getPassengerAttachmentPoint(Entity p_294748_, EntityDimensions p_295089_, float p_295230_) @Nullable Vec3Shulker.getRenderPosition(float partialTick) protected Vec3Strider.getRiddenInput(Player p_278251_, Vec3 p_275578_) 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 from, @Nullable Vec3 to, BlockPos pos, boolean isInLava, boolean isInWater) private booleanprivate static Vec3Ghast.RandomFloatAroundGoal.chooseRandomPosition(Vec3 pos, RandomSource random) private static @Nullable Vec3Ghast.RandomFloatAroundGoal.chooseRandomPositionWithRestriction(Mob mob, Vec3 pos, RandomSource random) static AABBShulker.getProgressAabb(float scale, Direction expansionDirection, float peek, Vec3 position) static AABBShulker.getProgressDeltaAabb(float scale, Direction expansionDirection, float currentPeek, float oldPeek, Vec3 position) protected Vec3Strider.getRiddenInput(Player p_278251_, Vec3 p_275578_) private static booleanGhast.RandomFloatAroundGoal.isGoodTarget(Level level, Vec3 pos, int distanceToBlocks) protected AABBShulker.makeBoundingBox(Vec3 p_390436_) voidvoidShulker.setDeltaMovement(Vec3 p_149804_) protected voidStrider.tickRidden(Player p_278331_, Vec3 p_278234_) voidvoidprotected voidGuardian.travelInWater(Vec3 p_460874_, double p_460806_, boolean p_461044_, double p_461008_) -
Uses of Vec3 in net.minecraft.world.entity.monster.breeze
Methods in net.minecraft.world.entity.monster.breeze that return Vec3Modifier and TypeMethodDescriptionstatic Vec3BreezeUtil.randomPointBehindTarget(LivingEntity target, RandomSource random) private static Vec3Slide.randomPointInMiddleCircle(Breeze breeze, LivingEntity target) Methods in net.minecraft.world.entity.monster.breeze that return types with arguments of type Vec3Modifier and TypeMethodDescriptionLongJump.calculateOptimalJumpVector(Breeze breeze, RandomSource random, Vec3 target) Methods in net.minecraft.world.entity.monster.breeze with parameters of type Vec3Modifier and TypeMethodDescriptionLongJump.calculateOptimalJumpVector(Breeze breeze, RandomSource random, Vec3 target) static booleanBreezeUtil.hasLineOfSight(Breeze breeze, Vec3 pos) private static @Nullable BlockPosLongJump.snapToSurface(LivingEntity owner, Vec3 targetPos) booleanBreeze.withinInnerCircleRange(Vec3 pos) -
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 piglin, List<ItemStack> stacks, Vec3 pos) -
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 p_480730_) Spider.getVehicleAttachmentPoint(Entity p_479261_) Methods in net.minecraft.world.entity.monster.spider with parameters of type Vec3Modifier and TypeMethodDescriptionvoidSpider.makeStuckInBlock(BlockState state, Vec3 motionMultiplier) -
Uses of Vec3 in net.minecraft.world.entity.monster.warden
Methods in net.minecraft.world.entity.monster.warden with parameters of type Vec3Modifier and TypeMethodDescriptionstatic voidWarden.applyDarknessAround(ServerLevel level, Vec3 pos, @Nullable Entity source, int radius) -
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 p_481205_, double p_479966_, boolean p_479754_, double p_480313_) -
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
Fields in net.minecraft.world.entity.player declared as Vec3Methods in net.minecraft.world.entity.player that return Vec3Modifier and TypeMethodDescriptionPlayer.getRopeHoldPosition(float partialTick) protected Vec3Player.maybeBackOffFromEdge(Vec3 movement, MoverType type) Methods in net.minecraft.world.entity.player with parameters of type Vec3Modifier and TypeMethodDescriptionvoidPlayer.causeExtraKnockback(Entity p_455908_, float p_454748_, Vec3 p_454874_) voidPlayer.makeStuckInBlock(BlockState state, Vec3 motionMultiplier) protected Vec3Player.maybeBackOffFromEdge(Vec3 movement, MoverType type) 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 x, double y, double z, float velocity, float inaccuracy) private static Vec3EyeOfEnder.updateDeltaMovement(Vec3 deltaMovement, Vec3 pos, Vec3 target) Methods in net.minecraft.world.entity.projectile with parameters of type Vec3Modifier and TypeMethodDescriptionstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Entity source, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, double distance) Gets the EntityHitResult representing the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity source, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, float margin) Gets the EntityHitResult representing the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level level, Projectile source, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) private static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity entity, Vec3 pos, Vec3 start, Predicate<Entity> predicate, Vec3 end, float hitboxMargin, ClipContext.Block clipContext) private static HitResultProjectileUtil.getHitResult(Vec3 pos, Entity source, Predicate<Entity> filter, Vec3 deltaMovement, Level level, float margin, ClipContext.Block clipContext) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level level, Entity entity, Vec3 start, Vec3 end, AABB box, Predicate<Entity> predicate, boolean hitIfInside) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level level, Entity entity, Vec3 start, Vec3 end, AABB box, Predicate<Entity> predicate, float margin, ClipContext.Block clipContext, boolean hitIfInside) voidprivate voidEyeOfEnder.spawnParticles(Vec3 pos, Vec3 deltaMovement) private static Vec3EyeOfEnder.updateDeltaMovement(Vec3 deltaMovement, Vec3 pos, 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 pos) protected Collection<EntityHitResult> AbstractArrow.findHitEntities(Vec3 start, Vec3 end) protected Collection<EntityHitResult> ThrownTrident.findHitEntities(Vec3 p_481064_, Vec3 p_480089_) protected @Nullable EntityHitResultAbstractArrow.findHitEntity(Vec3 start, Vec3 end) Gets the EntityHitResult representing the entity hitprotected @Nullable EntityHitResultThrownTrident.findHitEntity(Vec3 startVec, Vec3 endVec) Gets the EntityHitResult representing the entity hitvoidAbstractArrow.lerpMotion(Vec3 p_478059_) 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 movement, double accelerationPower) Constructors in net.minecraft.world.entity.projectile.hurtingprojectile with parameters of type Vec3ModifierConstructorDescriptionAbstractHurtingProjectile(EntityType<? extends AbstractHurtingProjectile> type, double x, double y, double z, Vec3 movement, Level level) AbstractHurtingProjectile(EntityType<? extends AbstractHurtingProjectile> type, LivingEntity owner, Vec3 movement, Level level) DragonFireball(Level level, LivingEntity owner, Vec3 movement) Fireball(EntityType<? extends Fireball> p_480722_, double p_479687_, double p_479497_, double p_478924_, Vec3 p_481721_, Level p_480636_) Fireball(EntityType<? extends Fireball> p_478135_, LivingEntity p_477928_, Vec3 p_480172_, Level p_478309_) LargeFireball(Level level, LivingEntity owner, Vec3 movement, int explosionPower) SmallFireball(Level level, double x, double y, double z, Vec3 movement) SmallFireball(Level level, LivingEntity owner, Vec3 movement) WitherSkull(Level level, LivingEntity owner, Vec3 movement) -
Uses of Vec3 in net.minecraft.world.entity.projectile.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 p_482094_) Constructors in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge with parameters of type Vec3ModifierConstructorDescription(package private)AbstractWindCharge(EntityType<? extends AbstractWindCharge> p_478928_, double p_481918_, double p_478477_, double p_479186_, Vec3 p_481238_, Level p_482115_) WindCharge(Level level, double x, double y, double z, Vec3 movement) -
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<?> entityType, CollisionGetter level, BlockPos pos, boolean onlySafePositions) ContainerEntity.position()Methods in net.minecraft.world.entity.vehicle with parameters of type Vec3Modifier and TypeMethodDescriptionstatic booleanDismountHelper.canDismountTo(CollisionGetter level, Vec3 offset, LivingEntity passenger, Pose pose) -
Uses of Vec3 in net.minecraft.world.entity.vehicle.boat
Methods in net.minecraft.world.entity.vehicle.boat that return Vec3Modifier and TypeMethodDescriptionAbstractBoat.getDismountLocationForPassenger(LivingEntity p_482062_) AbstractBoat.getLeashOffset()protected Vec3AbstractBoat.getPassengerAttachmentPoint(Entity p_480937_, EntityDimensions p_479649_, float p_479693_) Vec3[]AbstractBoat.getQuadLeashOffsets()AbstractBoat.getRelativePortalPosition(Direction.Axis p_478439_, BlockUtil.FoundRectangle p_481900_) -
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 speed) protected Vec3AbstractMinecartContainer.applyNaturalSlowdown(Vec3 p_478392_) protected Vec3MinecartFurnace.applyNaturalSlowdown(Vec3 p_480214_) private Vec3NewMinecartBehavior.calculateBoostTrackSpeed(Vec3 speed, BlockPos pos, BlockState state) private Vec3NewMinecartBehavior.calculateHaltTrackSpeed(Vec3 speed, BlockState state) private Vec3MinecartFurnace.calculateNewPushAlong(Vec3 speed) private Vec3NewMinecartBehavior.calculatePlayerInputSpeed(Vec3 speed) private Vec3NewMinecartBehavior.calculateSlopeSpeed(Vec3 speed, RailShape railShape) private Vec3NewMinecartBehavior.calculateTrackSpeed(ServerLevel level, Vec3 speed, NewMinecartBehavior.TrackIteration trackIteration, BlockPos pos, BlockState state, RailShape railShape) NewMinecartBehavior.getCartLerpMovements(float partialTick) NewMinecartBehavior.getCartLerpPosition(float partialTick) MinecartBehavior.getDeltaMovement()AbstractMinecart.getDismountLocationForPassenger(LivingEntity livingEntity) AbstractMinecart.getKnownMovement()MinecartBehavior.getKnownMovement(Vec3 movement) OldMinecartBehavior.getKnownMovement(Vec3 p_478544_) protected Vec3AbstractMinecart.getPassengerAttachmentPoint(Entity p_479844_, EntityDimensions p_481765_, float p_481069_) @Nullable Vec3OldMinecartBehavior.getPos(double x, double y, double z) @Nullable Vec3OldMinecartBehavior.getPosOffs(double x, double y, double z, double scale) AbstractMinecart.getRedstoneDirection(BlockPos pos) AbstractMinecart.getRelativePortalPosition(Direction.Axis p_481417_, BlockUtil.FoundRectangle p_478366_) 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 speed) protected Vec3AbstractMinecartContainer.applyNaturalSlowdown(Vec3 p_478392_) protected Vec3MinecartFurnace.applyNaturalSlowdown(Vec3 p_480214_) private Vec3NewMinecartBehavior.calculateBoostTrackSpeed(Vec3 speed, BlockPos pos, BlockState state) private Vec3NewMinecartBehavior.calculateHaltTrackSpeed(Vec3 speed, BlockState state) private Vec3MinecartFurnace.calculateNewPushAlong(Vec3 speed) private Vec3NewMinecartBehavior.calculatePlayerInputSpeed(Vec3 speed) private Vec3NewMinecartBehavior.calculateSlopeSpeed(Vec3 speed, RailShape railShape) private Vec3NewMinecartBehavior.calculateTrackSpeed(ServerLevel level, Vec3 speed, NewMinecartBehavior.TrackIteration trackIteration, BlockPos pos, BlockState state, RailShape railShape) MinecartBehavior.getKnownMovement(Vec3 movement) OldMinecartBehavior.getKnownMovement(Vec3 p_478544_) private booleanNewMinecartBehavior.isDecending(Vec3 speed, RailShape railShape) voidAbstractMinecart.lerpMotion(Vec3 p_479142_) voidMinecartBehavior.lerpMotion(Vec3 motion) voidOldMinecartBehavior.lerpMotion(Vec3 p_479272_) 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(ServerPlayer player) private static Vec3FireworkRocketItem.getEntityJustOutsideOfBlockPos(BlockSource blockSource, Direction direction) Methods in net.minecraft.world.item with parameters of type Vec3Modifier and TypeMethodDescriptionstatic BrushItem.DustParticlesDeltaBrushItem.DustParticlesDelta.fromDirection(Vec3 pos, Direction direction) private static doubleMaceItem.getKnockbackPower(Entity attacker, LivingEntity entity, Vec3 offset) private static Vector3fCrossbowItem.getProjectileShotVector(LivingEntity shooter, Vec3 distance, float angle) private voidBrushItem.spawnDustParticles(Level level, BlockHitResult hitResult, BlockState state, Vec3 pos, HumanoidArm arm) SpawnEggItem.spawnOffspringFromSpawnEgg(Player player, Mob mob, EntityType<? extends Mob> entityType, ServerLevel level, Vec3 pos, ItemStack stack) -
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 Vec3Method parameters in net.minecraft.world.item.component with type arguments of type Vec3Modifier and TypeMethodDescriptionprivate booleanAttackRange.isInRange(LivingEntity entity, ToDoubleFunction<Vec3> distanceSqrGetter, double range) -
Uses of Vec3 in net.minecraft.world.item.context
Methods in net.minecraft.world.item.context that return Vec3 -
Uses of Vec3 in net.minecraft.world.item.enchantment
Methods in net.minecraft.world.item.enchantment with parameters of type Vec3Modifier and TypeMethodDescriptionstatic LootContextEnchantment.blockHitContext(ServerLevel level, int enchantmentLevel, Entity entity, Vec3 origin, BlockState state) static LootContextEnchantment.entityContext(ServerLevel level, int enchantmentLevel, Entity entity, Vec3 origin) voidEnchantment.onHitBlock(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, BlockState state) static voidEnchantmentHelper.onHitBlock(ServerLevel level, ItemStack stack, @Nullable LivingEntity owner, Entity entity, @Nullable EquipmentSlot slot, Vec3 pos, BlockState state, Consumer<Item> onBreak) -
Uses of Vec3 in net.minecraft.world.item.enchantment.effects
Fields in net.minecraft.world.item.enchantment.effects declared as Vec3Modifier and TypeFieldDescriptionprivate final 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 p_346093_, int p_345940_, EnchantedItemInUse p_344929_, Entity p_345319_, Vec3 p_345200_) voidApplyEntityImpulse.apply(ServerLevel p_454879_, int p_454857_, EnchantedItemInUse p_455030_, Entity p_455129_, Vec3 p_455690_) voidApplyExhaustion.apply(ServerLevel p_458965_, int p_458920_, EnchantedItemInUse p_459091_, Entity p_459043_, Vec3 p_459113_) voidApplyMobEffect.apply(ServerLevel p_345355_, int p_346112_, EnchantedItemInUse p_344766_, Entity p_345996_, Vec3 p_345315_) voidChangeItemDamage.apply(ServerLevel p_379674_, int p_379927_, EnchantedItemInUse p_380376_, Entity p_379570_, Vec3 p_380002_) voidDamageEntity.apply(ServerLevel p_345710_, int p_344734_, EnchantedItemInUse p_345002_, Entity p_345450_, Vec3 p_345442_) voidEnchantmentEntityEffect.apply(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 origin) voidExplodeEffect.apply(ServerLevel p_346186_, int p_345966_, EnchantedItemInUse p_346324_, Entity p_345305_, Vec3 p_344916_) voidIgnite.apply(ServerLevel p_345606_, int p_344968_, EnchantedItemInUse p_346032_, Entity p_346370_, Vec3 p_344775_) voidPlaySoundEffect.apply(ServerLevel p_344971_, int p_344872_, EnchantedItemInUse p_345016_, Entity p_346106_, Vec3 p_345017_) voidReplaceBlock.apply(ServerLevel p_345756_, int p_346215_, EnchantedItemInUse p_345202_, Entity p_346293_, Vec3 p_345339_) voidReplaceDisk.apply(ServerLevel p_353045_, int p_353076_, EnchantedItemInUse p_353050_, Entity p_353038_, Vec3 p_353044_) voidRunFunction.apply(ServerLevel p_346152_, int p_344788_, EnchantedItemInUse p_344801_, Entity p_346210_, Vec3 p_345413_) voidSetBlockProperties.apply(ServerLevel p_346105_, int p_345373_, EnchantedItemInUse p_346028_, Entity p_346068_, Vec3 p_345511_) voidSpawnParticlesEffect.apply(ServerLevel p_345529_, int p_346425_, EnchantedItemInUse p_346391_, Entity p_345668_, Vec3 p_344842_) voidSummonEntityEffect.apply(ServerLevel p_345900_, int p_346183_, EnchantedItemInUse p_345549_, Entity p_346414_, Vec3 p_346284_) private @Nullable DamageSourceExplodeEffect.getDamageSource(Entity entity, Vec3 pos) voidAllOf.LocationBasedEffects.onChangedBlock(ServerLevel p_345329_, int p_345154_, EnchantedItemInUse p_344984_, Entity p_345671_, Vec3 p_344781_, boolean p_345113_) voidEnchantmentAttributeEffect.onChangedBlock(ServerLevel p_346176_, int p_345071_, EnchantedItemInUse p_345394_, Entity p_345539_, Vec3 p_346261_, boolean p_345801_) default voidEnchantmentEntityEffect.onChangedBlock(ServerLevel p_345419_, int p_345173_, EnchantedItemInUse p_344724_, Entity p_346126_, Vec3 p_345614_, boolean p_346410_) voidEnchantmentLocationBasedEffect.onChangedBlock(ServerLevel level, int enchantmentLevel, EnchantedItemInUse item, Entity entity, Vec3 pos, boolean applyTransientEffects) voidAllOf.LocationBasedEffects.onDeactivated(EnchantedItemInUse p_346024_, Entity p_346234_, Vec3 p_346036_, int p_345698_) voidEnchantmentAttributeEffect.onDeactivated(EnchantedItemInUse p_346016_, Entity p_346371_, Vec3 p_345145_, int p_346185_) default voidEnchantmentLocationBasedEffect.onDeactivated(EnchantedItemInUse item, Entity entity, Vec3 pos, int enchantmentLevel) 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 entity, VoxelShape allowedCenters, Vec3 pos, double x, double y, double z) ServerExplosion.getHitPlayers()Methods in net.minecraft.world.level with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static intBlockGetter.addCollisionsAlongTravel(it.unimi.dsi.fastutil.longs.LongSet visited, Vec3 travelVector, AABB boundingBox, BlockGetter.BlockStepVisitor visitor) default @Nullable BlockHitResultBlockGetter.clipWithInteractionOverride(Vec3 startVec, Vec3 endVec, BlockPos pos, VoxelShape shape, BlockState state) voidLevel.explode(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, Vec3 pos, float radius, boolean fire, Level.ExplosionInteraction explosionInteraction) CollisionGetter.findFreePosition(@Nullable Entity entity, VoxelShape allowedCenters, Vec3 pos, double x, double y, double z) static booleanBlockGetter.forEachBlockIntersectedBetween(Vec3 from, Vec3 to, AABB boundingBox, BlockGetter.BlockStepVisitor visitor) voidLevelAccessor.gameEvent(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) default voidprivate static Vec3iBlockGetter.getFurthestCorner(Vec3 travelVector) default Iterable<VoxelShape> CollisionGetter.getPreMoveCollisions(@Nullable Entity entity, AABB collisionBox, Vec3 pos) static floatServerExplosion.getSeenPercent(Vec3 explosionVector, Entity entity) static <T,C> T BlockGetter.traverseBlocks(Vec3 from, Vec3 to, C context, BiFunction<C, BlockPos, @Nullable T> tester, Function<C, T> onFail) Constructors in net.minecraft.world.level with parameters of type Vec3ModifierConstructorDescriptionClipBlockStateContext(Vec3 from, Vec3 to, Predicate<BlockState> block) ClipContext(Vec3 from, Vec3 to, ClipContext.Block block, ClipContext.Fluid fluid, Entity entity) ClipContext(Vec3 from, Vec3 to, ClipContext.Block block, ClipContext.Fluid fluid, CollisionContext collisionContext) 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 p_278316_) Methods in net.minecraft.world.level.block that return types with arguments of type Vec3Modifier and TypeMethodDescriptionBedBlock.findBunkBedStandUpPosition(EntityType<?> entityType, CollisionGetter collisionGetter, BlockPos pos, Direction stateFacing, Direction entityFacing) BedBlock.findStandUpPosition(EntityType<?> entityType, CollisionGetter collisionGetter, BlockPos pos, Direction direction, float yRot) RespawnAnchorBlock.findStandUpPosition(EntityType<?> entityType, CollisionGetter level, BlockPos pos) RespawnAnchorBlock.findStandUpPosition(EntityType<?> entityType, CollisionGetter level, BlockPos pos, boolean simulate) BedBlock.findStandUpPositionAtOffset(EntityType<?> entityType, CollisionGetter collisionGetter, BlockPos pos, int[][] offsets, boolean simulate) AbstractCandleBlock.getParticleOffsets(BlockState state) CandleBlock.getParticleOffsets(BlockState p_152812_) CandleCakeBlock.getParticleOffsets(BlockState p_152868_) Methods in net.minecraft.world.level.block with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidAbstractCandleBlock.addParticlesAndSound(Level level, Vec3 offset, RandomSource random) private static TeleportTransitionNetherPortalBlock.createDimensionTransition(ServerLevel level, BlockUtil.FoundRectangle rectangle, Direction.Axis axis, Vec3 offset, Entity entity, TeleportTransition.PostTeleportTransition postTeleportTransition) static PositionDispenserBlock.getDispensePosition(BlockSource blockSource, double multiplier, Vec3 offset) private static intTargetBlock.getRedstoneStrength(BlockHitResult hit, 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 pos) @Nullable Vec3TheEndGatewayBlockEntity.getPortalPosition(ServerLevel level, BlockPos pos) ShelfBlockEntity.position()Methods in net.minecraft.world.level.block.entity with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidAbstractFurnaceBlockEntity.createExperience(ServerLevel level, Vec3 popVec, int recipeIndex, float experience) private static LevelChunkList<RecipeHolder<?>> AbstractFurnaceBlockEntity.getRecipesToAwardAndPopExperience(ServerLevel level, Vec3 popVec) booleanSculkCatalystBlockEntity.CatalystListener.handleGameEvent(ServerLevel p_283470_, Holder<GameEvent> p_316661_, GameEvent.Context p_283014_, Vec3 p_282350_) private static booleanTheEndGatewayBlockEntity.isChunkEmpty(ServerLevel level, Vec3 pos) 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 entity, ServerLevel level) TrialSpawnerState.calculatePositionToSpawnSpawner(ServerLevel level, BlockPos pos, TrialSpawner spawner, TrialSpawnerStateData data) Methods in net.minecraft.world.level.block.entity.trialspawner with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidTrialSpawnerState.ParticleEmission.addParticle(SimpleParticleType particleType, Vec3 pos, Level level) private static booleanPlayerDetector.inLineOfSight(Level level, Vec3 pos, Vec3 targetPos) private static booleanTrialSpawner.inLineOfSight(Level level, Vec3 spawnerPos, Vec3 mobPos) -
Uses of Vec3 in net.minecraft.world.level.block.entity.vault
Methods in net.minecraft.world.level.block.entity.vault that return Vec3Modifier and TypeMethodDescriptionprivate static Vec3VaultBlockEntity.Client.keyholePos(BlockPos pos, Direction facing) private static Vec3VaultBlockEntity.Client.randomPosCenterOfCage(BlockPos pos, RandomSource random) private static Vec3VaultBlockEntity.Client.randomPosInsideCage(BlockPos pos, RandomSource random) Methods in net.minecraft.world.level.block.entity.vault with parameters of type Vec3Modifier and TypeMethodDescriptionprivate static voidVaultBlockEntity.Client.emitConnectionParticlesForPlayer(Level level, Vec3 pos, Player player) -
Uses of Vec3 in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state that return 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 vec3) Methods in net.minecraft.world.level.border with parameters of type Vec3Modifier and TypeMethodDescriptionWorldBorder.clampToBounds(Vec3 pos) WorldBorder.clampVec3ToBound(Vec3 vec3) 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 p_157708_) EntityPositionSource.getPosition(Level p_157733_) PositionSource.getPosition(Level level) EuclideanGameEventListenerRegistry.getPostableListenerPosition(ServerLevel level, Vec3 pos, GameEventListener listener) Methods in net.minecraft.world.level.gameevent with parameters of type Vec3Modifier and TypeMethodDescriptionEuclideanGameEventListenerRegistry.getPostableListenerPosition(ServerLevel level, Vec3 pos, GameEventListener listener) booleanGameEventListener.handleGameEvent(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) voidGameEventDispatcher.post(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context) voidGameEventListenerRegistry.ListenerVisitor.visit(GameEventListener listener, Vec3 pos) booleanEuclideanGameEventListenerRegistry.visitInRangeListeners(Holder<GameEvent> p_316862_, Vec3 p_251445_, GameEvent.Context p_252317_, GameEventListenerRegistry.ListenerVisitor p_251422_) booleanGameEventListenerRegistry.visitInRangeListeners(Holder<GameEvent> gameEvent, Vec3 pos, GameEvent.Context context, GameEventListenerRegistry.ListenerVisitor visitor) Constructors in net.minecraft.world.level.gameevent with parameters of type Vec3ModifierConstructorDescriptionListenerInfo(Holder<GameEvent> gameEvent, Vec3 source, GameEvent.Context context, GameEventListener recipient, Vec3 pos) -
Uses of Vec3 in net.minecraft.world.level.gameevent.vibrations
Fields in net.minecraft.world.level.gameevent.vibrations declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3VibrationInfo.posThe field for theposrecord component.Methods in net.minecraft.world.level.gameevent.vibrations that return Vec3Modifier and TypeMethodDescriptionVibrationInfo.pos()Returns the value of theposrecord component.Methods in net.minecraft.world.level.gameevent.vibrations with parameters of type Vec3Modifier and TypeMethodDescriptionvoidVibrationSystem.Listener.forceScheduleVibration(ServerLevel level, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos) booleanVibrationSystem.Listener.handleGameEvent(ServerLevel p_282254_, Holder<GameEvent> p_316513_, GameEvent.Context p_283664_, Vec3 p_282426_) private static booleanVibrationSystem.Listener.isOccluded(Level level, Vec3 eventPos, Vec3 vibrationUserPos) private voidVibrationSystem.Listener.scheduleVibration(ServerLevel level, VibrationSystem.Data data, Holder<GameEvent> gameEvent, GameEvent.Context context, Vec3 pos, Vec3 sensorPos) Constructors in net.minecraft.world.level.gameevent.vibrations with parameters of type Vec3ModifierConstructorDescriptionVibrationInfo(Holder<GameEvent> p_316546_, float p_251086_, Vec3 p_250935_, @Nullable UUID p_316193_, @Nullable UUID p_316157_) 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> p_316851_, float p_250190_, Vec3 p_251692_, @Nullable Entity p_316868_) -
Uses of Vec3 in net.minecraft.world.level.levelgen.feature
Fields in net.minecraft.world.level.levelgen.feature declared as Vec3 -
Uses of Vec3 in net.minecraft.world.level.levelgen.structure.templatesystem
Fields in net.minecraft.world.level.levelgen.structure.templatesystem declared as Vec3Methods in net.minecraft.world.level.levelgen.structure.templatesystem that return Vec3Modifier and TypeMethodDescriptionstatic Vec3static Vec3StructureTemplate.transformedVec3d(StructurePlaceSettings placementIn, Vec3 pos) Methods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type Vec3Modifier and TypeMethodDescriptionstatic Vec3static Vec3StructureTemplate.transformedVec3d(StructurePlaceSettings placementIn, Vec3 pos) Constructors in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.level.material
Methods in net.minecraft.world.level.material that return Vec3Modifier and TypeMethodDescriptionEmptyFluid.getFlow(BlockGetter 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 level, Entity entity) static Vec3PortalShape.findCollisionFreePosition(Vec3 pos, ServerLevel level, Entity entity, EntityDimensions dimensions) static Vec3PortalShape.getRelativePosition(BlockUtil.FoundRectangle foundRectangle, Direction.Axis axis, Vec3 pos, EntityDimensions entityDimensions) 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 pos, ServerLevel level, Entity entity, EntityDimensions dimensions) static Vec3PortalShape.getRelativePosition(BlockUtil.FoundRectangle foundRectangle, Direction.Axis axis, Vec3 pos, EntityDimensions entityDimensions) 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 p_380133_, Vec3 p_379861_, Vec3 p_380308_, float p_379941_, float p_380119_, Set<Relative> p_379959_, TeleportTransition.PostTeleportTransition p_379425_) TeleportTransition(ServerLevel p_379776_, Vec3 p_379412_, Vec3 p_379320_, float p_380257_, float p_379610_, TeleportTransition.PostTeleportTransition p_380303_) -
Uses of Vec3 in net.minecraft.world.level.storage.loot.parameters
Fields in net.minecraft.world.level.storage.loot.parameters with type parameters of type Vec3 -
Uses of Vec3 in net.minecraft.world.phys
Fields in net.minecraft.world.phys declared as Vec3Modifier and TypeFieldDescriptionprotected final 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.STREAM_CODECMethods in net.minecraft.world.phys that return Vec3Modifier and TypeMethodDescriptionVec3.add(double amount) 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 localCoordinates) Vec3.align(EnumSet<Direction.Axis> axes) static Vec3Vec3.applyLocalCoordinatesToRotation(Vec2 rotation, Vec3 localCoordinates) static Vec3Vec3.atBottomCenterOf(Vec3i toCopy) Copies the coordinates of an int vector and centers them horizontally (x and z)static Vec3Vec3.atCenterOf(Vec3i toCopy) Copies the coordinates of an int vector and centers them.static Vec3Vec3.atLowerCornerOf(Vec3i toCopy) Copies the coordinates of an int vector exactly.static Vec3Vec3.atLowerCornerWithOffset(Vec3i toCopy, double offsetX, double offsetY, double offsetZ) Returns a new vector with the result of this vector x the specified vector.static Vec3Vec3.directionFromRotation(float pitch, float yaw) Returns aVec3from the given pitch and yaw degrees.static Vec3Vec3.directionFromRotation(Vec2 rot) AABB.getBottomCenter()AABB.getCenter()HitResult.getLocation()AABB.getMaxPosition()AABB.getMinPosition()Vec3.horizontal()Lerps between this vector and the given vector.Vec3.multiply(double factorX, double factorY, double factorZ) Vec3.normalize()Vec3.offsetRandom(RandomSource random, float factor) Vec3.offsetRandomXZ(RandomSource random, float factor) Vec3.projectedOn(Vec3 vector) Vec3.reverse()Vec3.rotateClockwise90()Vec3.scale(double factor) Vec3.subtract(double amount) Vec3.subtract(double x, double y, double z) static Vec3Vec3.upFromBottomCenterOf(Vec3i toCopy, double verticalOffset) Copies the coordinates of an int vector and centers them horizontally and applies a vertical offset.Returns a new vector with the result of the specified vector minus this.Vec3.with(Direction.Axis axis, double length) Vec3.xRot(float pitch) Vec3.yRot(float yaw) Vec3.zRot(float roll) Methods in net.minecraft.world.phys that return types with arguments of type 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 localCoordinates) static Vec3Vec3.applyLocalCoordinatesToRotation(Vec2 rotation, Vec3 localCoordinates) AABB.clip(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3 from, Vec3 to) static @Nullable BlockHitResultbooleanVec3.closerThan(Vec3 pos, double horizontalDistance, double verticalDistance) booleanAABB.collidedAlongVector(Vec3 vector, List<AABB> boxes) booleanReturns if the supplied Vec3 is completely inside the bounding boxReturns a new vector with the result of this vector x the specified vector.doubleVec3.distanceTo(Vec3 vec) Euclidean distance between this and the specified vector, returned as double.doubleAABB.distanceToSqr(Vec3 vec) doubleVec3.distanceToSqr(Vec3 vec) The square of the Euclidean distance between this and the specified vector.doubleAABB.expandTowards(Vec3 vector) private static @Nullable DirectionAABB.getDirection(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vec3 start, double[] minDistance, @Nullable Direction facing, double deltaX, double deltaY, double deltaZ) private static @Nullable DirectionAABB.getDirection(AABB aabb, Vec3 start, double[] minDistance, @Nullable Direction facing, double deltaX, double deltaY, double deltaZ) booleanAABB.intersects(Vec3 min, Vec3 max) Lerps between this vector and the given vector.static BlockHitResultCreates a new BlockHitResult marked as a miss.static AABBVec3.projectedOn(Vec3 vector) static AABBAABB.unitCubeFromLowerCorner(Vec3 vector) Returns a new vector with the result of the specified vector minus this.Constructors in net.minecraft.world.phys with parameters of type Vec3ModifierConstructorDescriptionprivateBlockHitResult(boolean miss, Vec3 location, Direction direction, BlockPos blockPos, boolean inside, boolean worldBorderHit) BlockHitResult(Vec3 location, Direction direction, BlockPos blockPos, boolean inside) BlockHitResult(Vec3 location, Direction direction, BlockPos blockPos, 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 octahedralGroup, Vec3 pos) static Map<Direction, VoxelShape> Shapes.rotateAll(VoxelShape shape, OctahedralGroup rotation, Vec3 origin) static Map<Direction, VoxelShape> Shapes.rotateAll(VoxelShape shape, Vec3 pos) static Map<Direction.Axis, VoxelShape> Shapes.rotateAllAxis(VoxelShape shape, Vec3 pos) static Map<Direction, VoxelShape> Shapes.rotateHorizontal(VoxelShape shape, OctahedralGroup rotation, Vec3 origin) static Map<Direction.Axis, VoxelShape> Shapes.rotateHorizontalAxis(VoxelShape shape, Vec3 pos) -
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 y) private Vec3TrackedWaypoint.Vec3iWaypoint.position(Level level, PartialTickSupplier partialTickSupplier) 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
Methods in net.neoforged.neoforge.common.ticket with parameters of type Vec3 -
Uses of Vec3 in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as Vec3Modifier and TypeFieldDescriptionprivate final Vec3PlayLevelSoundEvent.AtPosition.positionprivate final Vec3VanillaGameEvent.positionMethods in net.neoforged.neoforge.event that return Vec3Modifier and TypeMethodDescriptionVanillaGameEvent.getEventPosition()static Vec3EventHooks.getExplosionKnockback(Level level, 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