Uses of Class
net.minecraft.core.Vec3i
Packages that use Vec3i
Package
Description
-
Uses of Vec3i in net.minecraft.client.gui.screens.inventory
Methods in net.minecraft.client.gui.screens.inventory with parameters of type Vec3iMethod parameters in net.minecraft.client.gui.screens.inventory with type arguments of type Vec3i -
Uses of Vec3i in net.minecraft.client.renderer.blockentity
Methods in net.minecraft.client.renderer.blockentity with parameters of type Vec3iModifier and TypeMethodDescriptionprivate voidBlockEntityWithBoundingBoxRenderer.renderInvisibleBlocks(BlockEntityWithBoundingBoxRenderState state, BlockPos localPos, Vec3i size) private voidBlockEntityWithBoundingBoxRenderer.renderStructureVoids(BlockEntityWithBoundingBoxRenderState state, BlockPos startingPosition, Vec3i size) -
Uses of Vec3i in net.minecraft.core
Subclasses of Vec3i in net.minecraft.coreModifier and TypeClassDescriptionclassstatic classclassClasses in net.minecraft.core that implement interfaces with type arguments of type Vec3iFields in net.minecraft.core declared as Vec3iModifier and TypeFieldDescriptionprivate final Vec3iDirection.normalNormalized vector that points in the direction of this Directionprivate final Vec3iDirection8.stepstatic final Vec3iVec3i.ZEROAn immutable vector with zero as all coordinates.Fields in net.minecraft.core with type parameters of type Vec3iModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Vec3i> Vec3i.CODECstatic final StreamCodec<io.netty.buffer.ByteBuf, Vec3i> Vec3i.STREAM_CODECMethods in net.minecraft.core that return Vec3iModifier and TypeMethodDescriptionVec3i.above()Vec3i.above(int steps) Offset this vector upwards by the given distance.Vec3i.below()Vec3i.below(int steps) Offset this vector downwards by the given distance.Calculate the cross product of this and the given VectorVec3i.east()Vec3i.east(int steps) Direction.getUnitVec3i()Vec3i.multiply(int scale) Vec3i.multiply(int xScale, int yScale, int zScale) Vec3i.north()Vec3i.north(int steps) Vec3i.offset(int x, int y, int z) Vec3i.relative(Direction.Axis axis, int steps) Offsets this Vector by the given distance in the specified direction.protected Vec3iVec3i.setX(int x) protected Vec3iVec3i.setY(int y) protected Vec3iVec3i.setZ(int z) Vec3i.south()Vec3i.south(int steps) Vec3i.west()Vec3i.west(int steps) Methods in net.minecraft.core that return types with arguments of type Vec3iModifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<Vec3i> Vec3i.offsetCodec(int maxOffsetPerAxis) Methods in net.minecraft.core with parameters of type Vec3iModifier and TypeMethodDescriptionbooleanVec3i.closerThan(Vec3i pos, double distance) intCalculate the cross product of this and the given VectorintVec3i.distChessboard(Vec3i pos) intVec3i.distManhattan(Vec3i pos) doubleCalculate squared distance to the given Vectorstatic @Nullable DirectionDirection.getNearest(Vec3i vec, @Nullable Direction orElse) BlockPos.MutableBlockPos.setWithOffset(Vec3i pos, int x, int y, int z) BlockPos.MutableBlockPos.setWithOffset(Vec3i pos, Direction direction) BlockPos.MutableBlockPos.setWithOffset(Vec3i pos, Vec3i offset) Constructors in net.minecraft.core with parameters of type Vec3iModifierConstructorDescriptionprivateDirection(int data3d, int oppositeIndex, int data2d, String name, Direction.AxisDirection axisDirection, Direction.Axis axis, Vec3i normal) -
Uses of Vec3i in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type Vec3iModifier and TypeMethodDescriptionstatic TestInstanceBlockEntityStructureUtils.createNewEmptyTest(Identifier id, BlockPos structurePos, Vec3i size, Rotation rotation, ServerLevel level) static BoundingBoxStructureUtils.getStructureBoundingBox(BlockPos northWestCorner, Vec3i size, Rotation rotation) static BlockPosStructureUtils.getTransformedFarCorner(BlockPos structurePosition, Vec3i size, Rotation rotation) -
Uses of Vec3i in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as Vec3iFields in net.minecraft.network.protocol.game with type parameters of type Vec3iModifier and TypeFieldDescriptionClientboundTestInstanceBlockStatus.sizeThe field for thesizerecord component.Methods in net.minecraft.network.protocol.game that return Vec3iMethods in net.minecraft.network.protocol.game that return types with arguments of type Vec3iModifier and TypeMethodDescriptionClientboundTestInstanceBlockStatus.size()Returns the value of thesizerecord component.Methods in net.minecraft.network.protocol.game with parameters of type Vec3iModifier and TypeMethodDescriptionClientboundTrackedWaypointPacket.addWaypointPosition(UUID identifier, Waypoint.Icon icon, Vec3i position) ClientboundTrackedWaypointPacket.updateWaypointPosition(UUID identifier, Waypoint.Icon icon, Vec3i position) Constructors in net.minecraft.network.protocol.game with parameters of type Vec3iModifierConstructorDescriptionServerboundSetStructureBlockPacket(BlockPos pos, StructureBlockEntity.UpdateType updateType, StructureMode mode, String name, BlockPos offset, Vec3i size, Mirror mirror, Rotation rotation, String data, boolean ignoreEntities, boolean strict, boolean showAir, boolean showBoundingBox, float integrity, long seed) ServerboundTestInstanceBlockActionPacket(BlockPos pos, ServerboundTestInstanceBlockActionPacket.Action action, Optional<ResourceKey<GameTestInstance>> test, Vec3i size, Rotation rotation, boolean ignoreEntities) Constructor parameters in net.minecraft.network.protocol.game with type arguments of type Vec3iModifierConstructorDescriptionClientboundTestInstanceBlockStatus(Component status, Optional<Vec3i> size) Creates an instance of aClientboundTestInstanceBlockStatusrecord class. -
Uses of Vec3i in net.minecraft.util
Methods in net.minecraft.util with parameters of type Vec3i -
Uses of Vec3i in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as Vec3iMethods in net.minecraft.world.entity that return Vec3i -
Uses of Vec3i in net.minecraft.world.entity.animal.allay
Fields in net.minecraft.world.entity.animal.allay declared as Vec3iMethods in net.minecraft.world.entity.animal.allay that return Vec3i -
Uses of Vec3i in net.minecraft.world.entity.vehicle.minecart
Fields in net.minecraft.world.entity.vehicle.minecart with type parameters of type Vec3iMethods in net.minecraft.world.entity.vehicle.minecart that return types with arguments of type Vec3i -
Uses of Vec3i in net.minecraft.world.item.enchantment.effects
Fields in net.minecraft.world.item.enchantment.effects declared as Vec3iModifier and TypeFieldDescriptionprivate final Vec3iReplaceBlock.offsetThe field for theoffsetrecord component.private final Vec3iReplaceDisk.offsetThe field for theoffsetrecord component.private final Vec3iSetBlockProperties.offsetThe field for theoffsetrecord component.Methods in net.minecraft.world.item.enchantment.effects that return Vec3iModifier and TypeMethodDescriptionReplaceBlock.offset()Returns the value of theoffsetrecord component.ReplaceDisk.offset()Returns the value of theoffsetrecord component.SetBlockProperties.offset()Returns the value of theoffsetrecord component.Constructors in net.minecraft.world.item.enchantment.effects with parameters of type Vec3iModifierConstructorDescriptionReplaceBlock(Vec3i offset, Optional<BlockPredicate> predicate, BlockStateProvider blockState, Optional<Holder<GameEvent>> triggerGameEvent) Creates an instance of aReplaceBlockrecord class.ReplaceDisk(LevelBasedValue radius, LevelBasedValue height, Vec3i offset, Optional<BlockPredicate> predicate, BlockStateProvider blockState, Optional<Holder<GameEvent>> triggerGameEvent) Creates an instance of aReplaceDiskrecord class.SetBlockProperties(BlockItemStateProperties properties, Vec3i offset, Optional<Holder<GameEvent>> triggerGameEvent) Creates an instance of aSetBlockPropertiesrecord class. -
Uses of Vec3i in net.minecraft.world.level
Methods in net.minecraft.world.level that return Vec3iModifier and TypeMethodDescriptionprivate static Vec3iBlockGetter.getFurthestCorner(Vec3 direction) -
Uses of Vec3i in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block with type parameters of type Vec3iModifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.objects.ObjectArrayList<Vec3i> SculkSpreader.ChargeCursor.NON_CORNER_NEIGHBOURSprivate static final ImmutableList<Vec3i> RespawnAnchorBlock.RESPAWN_HORIZONTAL_OFFSETSprivate static final ImmutableList<Vec3i> RespawnAnchorBlock.RESPAWN_OFFSETSMethods in net.minecraft.world.level.block that return types with arguments of type Vec3iModifier and TypeMethodDescriptionSculkSpreader.ChargeCursor.getRandomizedNonCornerNeighbourOffsets(RandomSource random) -
Uses of Vec3i in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as Vec3iModifier and TypeFieldDescriptionprivate static final Vec3iStructureBlockEntity.DEFAULT_SIZEprivate final Vec3iBoundingBoxRenderable.RenderableBox.sizeThe field for thesizerecord component.private final Vec3iTestInstanceBlockEntity.Data.sizeThe field for thesizerecord component.private static final Vec3iTestInstanceBlockEntity.STRUCTURE_OFFSETprivate Vec3iStructureBlockEntity.structureSizeMethods in net.minecraft.world.level.block.entity that return Vec3iModifier and TypeMethodDescriptionTestInstanceBlockEntity.getSize()StructureBlockEntity.getStructureSize()private Vec3iTestInstanceBlockEntity.getTransformedSize()BoundingBoxRenderable.RenderableBox.size()Returns the value of thesizerecord component.TestInstanceBlockEntity.Data.size()Returns the value of thesizerecord component.Methods in net.minecraft.world.level.block.entity that return types with arguments of type Vec3iModifier and TypeMethodDescriptionTestInstanceBlockEntity.getStructureSize(ServerLevel level, ResourceKey<GameTestInstance> testKey) Methods in net.minecraft.world.level.block.entity with parameters of type Vec3iModifier and TypeMethodDescriptionstatic booleanStructureBlockEntity.saveStructure(ServerLevel level, Identifier structureName, BlockPos pos, Vec3i structureSize, boolean ignoreEntities, String author, boolean saveToDisk, List<Block> ignoreBlocks) voidStructureBlockEntity.setStructureSize(Vec3i structureSize) Constructors in net.minecraft.world.level.block.entity with parameters of type Vec3iModifierConstructorDescriptionData(Optional<ResourceKey<GameTestInstance>> test, Vec3i size, Rotation rotation, boolean ignoreEntities, TestInstanceBlockEntity.Status status, Optional<Component> errorMessage) Creates an instance of aDatarecord class.RenderableBox(BlockPos localPos, Vec3i size) Creates an instance of aRenderableBoxrecord class. -
Uses of Vec3i in net.minecraft.world.level.levelgen.blockpredicates
Fields in net.minecraft.world.level.levelgen.blockpredicates declared as Vec3iModifier and TypeFieldDescriptionprivate final Vec3iHasSturdyFacePredicate.offsetprivate final Vec3iInsideWorldBoundsPredicate.offsetprotected final Vec3iStateTestingPredicate.offsetprivate final Vec3iUnobstructedPredicate.offsetThe field for theoffsetrecord component.private final Vec3iWouldSurvivePredicate.offsetMethods in net.minecraft.world.level.levelgen.blockpredicates that return Vec3iModifier and TypeMethodDescriptionUnobstructedPredicate.offset()Returns the value of theoffsetrecord component.Methods in net.minecraft.world.level.levelgen.blockpredicates that return types with arguments of type Vec3iModifier and TypeMethodDescriptionprotected static <P extends StateTestingPredicate>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>, Vec3i> StateTestingPredicate.stateTestingCodec(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance) Methods in net.minecraft.world.level.levelgen.blockpredicates with parameters of type Vec3iModifier and TypeMethodDescriptionstatic BlockPredicateBlockPredicate.hasSturdyFace(Vec3i offset, Direction direction) static BlockPredicateBlockPredicate.insideWorld(Vec3i offset) static BlockPredicateBlockPredicate.matchesBlocks(Vec3i offset, List<Block> blocks) static BlockPredicateBlockPredicate.matchesBlocks(Vec3i offset, Block... blocks) static BlockPredicateBlockPredicate.matchesFluids(Vec3i offset, List<Fluid> fluids) static BlockPredicateBlockPredicate.matchesFluids(Vec3i offset, Fluid... fluids) static BlockPredicateBlockPredicate.matchesTag(Vec3i offset, TagKey<Block> tag) static BlockPredicatestatic BlockPredicateBlockPredicate.replaceable(Vec3i offset) static BlockPredicatestatic BlockPredicateBlockPredicate.unobstructed(Vec3i offset) static BlockPredicateBlockPredicate.wouldSurvive(BlockState state, Vec3i offset) Constructors in net.minecraft.world.level.levelgen.blockpredicates with parameters of type Vec3iModifierConstructorDescriptionHasSturdyFacePredicate(Vec3i offset, Direction direction) InsideWorldBoundsPredicate(Vec3i offset) MatchingBlocksPredicate(Vec3i offset, HolderSet<Block> blocks) protectedMatchingBlockTagPredicate(Vec3i offset, TagKey<Block> tag) MatchingFluidsPredicate(Vec3i offset, HolderSet<Fluid> fluids) ReplaceablePredicate(Vec3i offset) SolidPredicate(Vec3i offset) Deprecated.protectedStateTestingPredicate(Vec3i offset) (package private)UnobstructedPredicate(Vec3i offset) Creates an instance of aUnobstructedPredicaterecord class.protectedWouldSurvivePredicate(Vec3i offset, BlockState state) -
Uses of Vec3i in net.minecraft.world.level.levelgen.structure
Methods in net.minecraft.world.level.levelgen.structure that return Vec3iMethods in net.minecraft.world.level.levelgen.structure with parameters of type Vec3iModifier and TypeMethodDescriptionstatic BoundingBoxBoundingBox.fromCorners(Vec3i pos0, Vec3i pos1) booleanDeprecated. -
Uses of Vec3i in net.minecraft.world.level.levelgen.structure.placement
Fields in net.minecraft.world.level.levelgen.structure.placement declared as Vec3iMethods in net.minecraft.world.level.levelgen.structure.placement that return Vec3iMethods in net.minecraft.world.level.levelgen.structure.placement that return types with arguments of type Vec3iModifier and TypeMethodDescriptionprivate static com.mojang.datafixers.Products.P9<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<ConcentricRingsStructurePlacement>, Vec3i, StructurePlacement.FrequencyReductionMethod, Float, Integer, Optional<StructurePlacement.ExclusionZone>, Integer, Integer, Integer, HolderSet<Biome>> ConcentricRingsStructurePlacement.codec(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<ConcentricRingsStructurePlacement> i) protected static <S extends StructurePlacement>
com.mojang.datafixers.Products.P5<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<S>, Vec3i, StructurePlacement.FrequencyReductionMethod, Float, Integer, Optional<StructurePlacement.ExclusionZone>> StructurePlacement.placementCodec(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> i) Constructors in net.minecraft.world.level.levelgen.structure.placement with parameters of type Vec3iModifierConstructorDescriptionConcentricRingsStructurePlacement(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone, int distance, int spread, int count, HolderSet<Biome> preferredBiomes) RandomSpreadStructurePlacement(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone, int spacing, int separation, RandomSpreadType spreadType) protectedStructurePlacement(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone) -
Uses of Vec3i in net.minecraft.world.level.levelgen.structure.pools
Methods in net.minecraft.world.level.levelgen.structure.pools that return Vec3iModifier and TypeMethodDescriptionEmptyPoolElement.getSize(StructureTemplateManager structureTemplateManager, Rotation rotation) FeaturePoolElement.getSize(StructureTemplateManager structureTemplateManager, Rotation rotation) ListPoolElement.getSize(StructureTemplateManager structureTemplateManager, Rotation rotation) SinglePoolElement.getSize(StructureTemplateManager structureTemplateManager, Rotation rotation) abstract Vec3iStructurePoolElement.getSize(StructureTemplateManager structureTemplateManager, Rotation rotation) -
Uses of Vec3i in net.minecraft.world.level.levelgen.structure.templatesystem
Fields in net.minecraft.world.level.levelgen.structure.templatesystem declared as Vec3iMethods in net.minecraft.world.level.levelgen.structure.templatesystem that return Vec3iMethods in net.minecraft.world.level.levelgen.structure.templatesystem with parameters of type Vec3iModifier and TypeMethodDescriptionvoidStructureTemplate.fillFromWorld(Level level, BlockPos position, Vec3i size, boolean inludeEntities, List<Block> ignoreBlocks) protected static BoundingBoxStructureTemplate.getBoundingBox(BlockPos position, Rotation rotation, BlockPos pivot, Mirror mirror, Vec3i size) -
Uses of Vec3i in net.minecraft.world.phys
Methods in net.minecraft.world.phys with parameters of type Vec3iModifier and TypeMethodDescriptionstatic Vec3Vec3.atBottomCenterOf(Vec3i pos) Copies the coordinates of an int vector and centers them horizontally (x and z)static Vec3Vec3.atCenterOf(Vec3i pos) Copies the coordinates of an Int vector and centers them.static Vec3Vec3.atLowerCornerOf(Vec3i pos) Copies the coordinates of an int vector exactly.static Vec3Vec3.atLowerCornerWithOffset(Vec3i pos, double x, double y, double z) static Vec3Vec3.upFromBottomCenterOf(Vec3i pos, double yOffset) Copies the coordinates of an int vector and centers them horizontally and applies a vertical offset.Constructors in net.minecraft.world.phys with parameters of type Vec3i -
Uses of Vec3i in net.minecraft.world.phys.shapes
Methods in net.minecraft.world.phys.shapes with parameters of type Vec3i -
Uses of Vec3i in net.minecraft.world.ticks
Methods in net.minecraft.world.ticks with parameters of type Vec3iModifier and TypeMethodDescriptionvoidLevelTicks.copyArea(BoundingBox area, Vec3i offset) voidLevelTicks.copyAreaFrom(LevelTicks<T> source, BoundingBox area, Vec3i offset) -
Uses of Vec3i in net.minecraft.world.waypoints
Fields in net.minecraft.world.waypoints declared as Vec3iMethods in net.minecraft.world.waypoints with parameters of type Vec3iModifier and TypeMethodDescriptionstatic TrackedWaypointTrackedWaypoint.setPosition(UUID identifier, Waypoint.Icon icon, Vec3i position) Constructors in net.minecraft.world.waypoints with parameters of type Vec3i