Uses of Class
net.minecraft.util.math.Vec3i
Package
Description
-
Uses of Vec3i in net.minecraft.block
Modifier and TypeFieldDescriptionprivate static final ImmutableList<Vec3i>
RespawnAnchorBlock.VALID_HORIZONTAL_SPAWN_OFFSETS
private static final ImmutableList<Vec3i>
RespawnAnchorBlock.VALID_SPAWN_OFFSETS
-
Uses of Vec3i in net.minecraft.block.entity
Modifier and TypeFieldDescriptionprivate static final ObjectArrayList<Vec3i>
SculkSpreadManager.Cursor.OFFSETS
-
Uses of Vec3i in net.minecraft.entity.ai.pathing
-
Uses of Vec3i in net.minecraft.entity.mob
Modifier and TypeFieldDescriptionprivate static final Vec3i
MobEntity.ITEM_PICK_UP_RANGE_EXPANDER
-
Uses of Vec3i in net.minecraft.entity.passive
Modifier and TypeFieldDescriptionprivate static final Vec3i
AllayEntity.ITEM_PICKUP_RANGE_EXPANDER
-
Uses of Vec3i in net.minecraft.entity.vehicle
Modifier and TypeFieldDescriptionAbstractMinecartEntity.ADJACENT_RAIL_POSITIONS_BY_SHAPE
AbstractMinecartEntity.ADJACENT_RAIL_POSITIONS_BY_SHAPE
Modifier and TypeMethodDescriptionAbstractMinecartEntity.getAdjacentRailPositionsByShape
(RailShape shape) AbstractMinecartEntity.getAdjacentRailPositionsByShape
(RailShape shape) -
Uses of Vec3i in net.minecraft.network.packet.c2s.play
ModifierConstructorDescriptionUpdateStructureBlockC2SPacket
(BlockPos pos, StructureBlockBlockEntity.Action action, StructureBlockMode mode, String templateName, BlockPos offset, Vec3i size, BlockMirror mirror, BlockRotation rotation, String metadata, boolean ignoreEntities, boolean showAir, boolean showBoundingBox, float integrity, long seed) -
Uses of Vec3i in net.minecraft.structure
Modifier and TypeMethodDescriptionStructureTemplate.getRotatedSize
(BlockRotation rotation) StructureTemplate.getSize()
Modifier and TypeMethodDescriptionprotected static BlockBox
StructureTemplate.createBox
(BlockPos pos, BlockRotation rotation, BlockPos pivot, BlockMirror mirror, Vec3i dimensions) void
StructureTemplate.saveFromWorld
(World world, BlockPos start, Vec3i dimensions, boolean includeEntities, @Nullable Block ignoredBlock) -
Uses of Vec3i in net.minecraft.structure.pool
Modifier and TypeMethodDescriptionEmptyPoolElement.getStart
(StructureTemplateManager structureTemplateManager, BlockRotation rotation) FeaturePoolElement.getStart
(StructureTemplateManager structureTemplateManager, BlockRotation rotation) ListPoolElement.getStart
(StructureTemplateManager structureTemplateManager, BlockRotation rotation) SinglePoolElement.getStart
(StructureTemplateManager structureTemplateManager, BlockRotation rotation) abstract Vec3i
StructurePoolElement.getStart
(StructureTemplateManager structureTemplateManager, BlockRotation rotation) -
Uses of Vec3i in net.minecraft.test
Modifier and TypeMethodDescriptionstatic void
StructureTestUtil.createTestArea
(String testName, BlockPos pos, Vec3i relativePos, BlockRotation rotation, ServerWorld world) static BlockBox
StructureTestUtil.getStructureBlockBox
(BlockPos pos, Vec3i relativePos, BlockRotation rotation) -
Uses of Vec3i in net.minecraft.util.math
Modifier and TypeClassDescriptionclass
Represents the position of a block in a three-dimensional volume.static class
class
Modifier and TypeFieldDescriptionprivate final Vec3i
EightWayDirection.field_37995
private final Vec3i
Direction.vector
static final Vec3i
Vec3i.ZERO
Modifier and TypeMethodDescriptionVec3i.add
(double x, double y, double z) Returns another Vec3i whose coordinates have the parameter x, y, and z added to the coordinates of this vector.Vec3i.add
(int x, int y, int z) Returns another Vec3i whose coordinates have the parameter x, y, and z added to the coordinates of this vector.Returns another Vec3i whose coordinates have the coordinates ofvec
added to the coordinates of this vector.Vec3i.crossProduct
(Vec3i vec) Vec3i.down()
Returns a vector which is offset by1
in the downward direction.Vec3i.down
(int distance) Returns a vector which is offset bydistance
in the downward direction.Vec3i.east()
Returns a vector which is offset by1
in the eastward direction.Vec3i.east
(int distance) Returns a vector which is offset bydistance
in the eastward direction.BlockBox.getDimensions()
Direction.getVector()
Vec3i.multiply
(int scale) Returns a vector with all components multiplied byscale
.Vec3i.north()
Returns a vector which is offset by1
in the northward direction.Vec3i.north
(int distance) Returns a vector which is offset bydistance
in the northward direction.Returns a vector which is offset by1
indirection
direction.Vec3i.offset
(Direction.Axis axis, int distance) Returns a vector which is offset bydistance
onaxis
axis.Returns a vector which is offset bydistance
indirection
direction.protected Vec3i
Vec3i.setX
(int x) protected Vec3i
Vec3i.setY
(int y) protected Vec3i
Vec3i.setZ
(int z) Vec3i.south()
Returns a vector which is offset by1
in the southward direction.Vec3i.south
(int distance) Returns a vector which is offset bydistance
in the southward direction.Returns another Vec3i whose coordinates have the coordinates ofvec
subtracted from the coordinates of this vector.Vec3i.up()
Returns a vector which is offset by1
in the upward direction.Vec3i.up
(int distance) Returns a vector which is offset bydistance
in the upward direction.Vec3i.west()
Returns a vector which is offset by1
in the westward direction.Vec3i.west
(int distance) Returns a vector which is offset bydistance
in the westward direction.Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<Vec3i>
Vec3i.createOffsetCodec
(int maxAbsValue) Vec3i.createRangeValidator
(int maxAbsValue) Vec3i.createRangeValidator
(int maxAbsValue) Modifier and TypeMethodDescriptionReturns another Vec3i whose coordinates have the coordinates ofvec
added to the coordinates of this vector.int
boolean
static BlockBox
BlockPos.crossProduct
(Vec3i pos) Vec3i.crossProduct
(Vec3i vec) int
Vec3i.getManhattanDistance
(Vec3i vec) Returns the Manhattan distance between here andvec
.double
Vec3i.getSquaredDistance
(Vec3i vec) Returns the squared distance between here (center) andvec
.static long
boolean
Vec3i.isWithinDistance
(Vec3i vec, double distance) Returns whether the distance between here andvec
is less thandistance
.Deprecated.static Vec3d
Copies the given vector.static Vec3d
Vec3d.ofBottomCenter
(Vec3i vec) Creates a vector representing the bottom center of the given block position.static Vec3d
Creates a vector representing the center of the given block position.static Vec3d
Creates a vector representing the center of the given block position but with the given offset for the Y coordinate.Sets this mutable block position to the sum of the given position and the given x, y, and z.Sets this mutable block position to the offset position of the given pos by the given direction.Sets this mutable block position to the sum of the given vectors.Returns another Vec3i whose coordinates have the coordinates ofvec
subtracted from the coordinates of this vector.ModifierConstructorDescriptionprivate
Direction
(int id, int idOpposite, int idHorizontal, String name, Direction.AxisDirection direction, Direction.Axis axis, Vec3i vector) -
Uses of Vec3i in net.minecraft.world.gen.blockpredicate
Modifier and TypeFieldDescriptionprivate final Vec3i
HasSturdyFacePredicate.offset
private final Vec3i
InsideWorldBoundsBlockPredicate.offset
protected final Vec3i
OffsetPredicate.offset
private final Vec3i
WouldSurviveBlockPredicate.offset
Modifier and TypeMethodDescriptionprotected static <P extends OffsetPredicate>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Vec3i> OffsetPredicate.registerOffsetField
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance) Modifier and TypeMethodDescriptionstatic BlockPredicate
BlockPredicate.hasSturdyFace
(Vec3i offset, Direction face) static BlockPredicate
BlockPredicate.insideWorldBounds
(Vec3i offset) static BlockPredicate
BlockPredicate.matchingBlocks
(Vec3i offset, List<Block> blocks) static BlockPredicate
BlockPredicate.matchingBlocks
(Vec3i offset, Block[] blocks) static BlockPredicate
BlockPredicate.matchingBlockTag
(Vec3i offset, TagKey<Block> tag) static BlockPredicate
BlockPredicate.matchingFluids
(Vec3i offset, List<Fluid> fluids) static BlockPredicate
BlockPredicate.matchingFluids
(Vec3i offset, Fluid[] fluids) static BlockPredicate
BlockPredicate.replaceable
(Vec3i offset) static BlockPredicate
static BlockPredicate
BlockPredicate.wouldSurvive
(BlockState state, Vec3i offset) ModifierConstructorDescriptionHasSturdyFacePredicate
(Vec3i offset, Direction face) InsideWorldBoundsBlockPredicate
(Vec3i offset) MatchingBlocksBlockPredicate
(Vec3i offset, RegistryEntryList<Block> blocks) protected
MatchingBlockTagPredicate
(Vec3i offset, TagKey<Block> tag) MatchingFluidsBlockPredicate
(Vec3i offset, RegistryEntryList<Fluid> fluids) protected
OffsetPredicate
(Vec3i offset) ReplaceableBlockPredicate
(Vec3i offset) SolidBlockPredicate
(Vec3i offset) protected
WouldSurviveBlockPredicate
(Vec3i offset, BlockState state) -
Uses of Vec3i in net.minecraft.world.gen.chunk.placement
Modifier 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, RegistryEntryList<Biome>> ConcentricRingsStructurePlacement.method_41629
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<ConcentricRingsStructurePlacement> instance) 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.method_41637
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> instance) ModifierConstructorDescriptionConcentricRingsStructurePlacement
(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod generationPredicateType, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone, int distance, int spread, int structureCount, RegistryEntryList<Biome> preferredBiomes) RandomSpreadStructurePlacement
(Vec3i vec3i, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float float2, int int2, Optional<StructurePlacement.ExclusionZone> optional, int int3, int int4, SpreadType spreadType) protected
StructurePlacement
(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone) -
Uses of Vec3i in net.minecraft.world.tick
Modifier and TypeMethodDescriptionvoid
WorldTickScheduler.scheduleTicks
(BlockBox box, Vec3i offset)