Uses of Class
net.minecraft.util.math.Vec3i
Packages that use Vec3i
Package
Description
- 
Uses of Vec3i in net.minecraft.blockFields in net.minecraft.block with type parameters of type Vec3iModifier and TypeFieldDescriptionprivate static final ImmutableList<Vec3i> RespawnAnchorBlock.VALID_HORIZONTAL_SPAWN_OFFSETSprivate static final ImmutableList<Vec3i> RespawnAnchorBlock.VALID_SPAWN_OFFSETS
- 
Uses of Vec3i in net.minecraft.block.entityFields in net.minecraft.block.entity declared as Vec3iModifier and TypeFieldDescriptionprivate static final Vec3iStructureBlockBlockEntity.DEFAULT_SIZEprivate Vec3iStructureBlockBlockEntity.sizeprivate final Vec3iStructureBoxRendering.StructureBox.sizeThe field for thesizerecord component.private final Vec3iTestInstanceBlockEntity.Data.sizeThe field for thesizerecord component.private static final Vec3iTestInstanceBlockEntity.STRUCTURE_OFFSETFields in net.minecraft.block.entity with type parameters of type Vec3iModifier and TypeFieldDescriptionprivate static final ObjectArrayList<Vec3i> SculkSpreadManager.Cursor.OFFSETSMethods in net.minecraft.block.entity that return Vec3iModifier and TypeMethodDescriptionStructureBlockBlockEntity.getSize()TestInstanceBlockEntity.getSize()private Vec3iTestInstanceBlockEntity.getTransformedSize()StructureBoxRendering.StructureBox.size()Returns the value of thesizerecord component.TestInstanceBlockEntity.Data.size()Returns the value of thesizerecord component.Methods in net.minecraft.block.entity that return types with arguments of type Vec3iModifier and TypeMethodDescriptionTestInstanceBlockEntity.getStructureSize(ServerWorld world, RegistryKey<TestInstance> testInstance) SculkSpreadManager.Cursor.shuffleOffsets(Random random) Methods in net.minecraft.block.entity with parameters of type Vec3iModifier and TypeMethodDescriptionstatic booleanStructureBlockBlockEntity.saveStructure(ServerWorld world, Identifier templateId, BlockPos start, Vec3i size, boolean ignoreEntities, String author, boolean toDisk) voidConstructors in net.minecraft.block.entity with parameters of type Vec3iModifierConstructorDescriptionData(Optional<RegistryKey<TestInstance>> optional, Vec3i vec3i, BlockRotation blockRotation, boolean bool, TestInstanceBlockEntity.Status status, Optional<Text> optional2) StructureBox(BlockPos blockPos, Vec3i vec3i) 
- 
Uses of Vec3i in net.minecraft.client.gui.screen.ingameMethods in net.minecraft.client.gui.screen.ingame with parameters of type Vec3iMethod parameters in net.minecraft.client.gui.screen.ingame with type arguments of type Vec3iModifier and TypeMethodDescriptionvoidTestInstanceBlockScreen.handleStatus(Text status, Optional<Vec3i> size) 
- 
Uses of Vec3i in net.minecraft.client.render.block.entityMethods in net.minecraft.client.render.block.entity with parameters of type Vec3iModifier and TypeMethodDescriptionprivate voidStructureBlockBlockEntityRenderer.renderInvisibleBlocks(T entity, BlockView world, BlockPos pos, Vec3i size, VertexConsumerProvider vertexConsumers, MatrixStack matrices) private voidStructureBlockBlockEntityRenderer.renderStructureVoids(T entity, BlockPos pos, Vec3i size, VertexConsumer vertexConsumer, MatrixStack matrices) 
- 
Uses of Vec3i in net.minecraft.enchantment.effect.entityFields in net.minecraft.enchantment.effect.entity declared as Vec3iModifier and TypeFieldDescriptionprivate final Vec3iReplaceBlockEnchantmentEffect.offsetThe field for theoffsetrecord component.private final Vec3iReplaceDiskEnchantmentEffect.offsetThe field for theoffsetrecord component.private final Vec3iSetBlockPropertiesEnchantmentEffect.offsetThe field for theoffsetrecord component.Methods in net.minecraft.enchantment.effect.entity that return Vec3iModifier and TypeMethodDescriptionReplaceBlockEnchantmentEffect.offset()Returns the value of theoffsetrecord component.ReplaceDiskEnchantmentEffect.offset()Returns the value of theoffsetrecord component.SetBlockPropertiesEnchantmentEffect.offset()Returns the value of theoffsetrecord component.Constructors in net.minecraft.enchantment.effect.entity with parameters of type Vec3iModifierConstructorDescriptionReplaceBlockEnchantmentEffect(Vec3i vec3i, Optional<BlockPredicate> optional, BlockStateProvider blockStateProvider, Optional<RegistryEntry<GameEvent>> optional2) ReplaceDiskEnchantmentEffect(EnchantmentLevelBasedValue enchantmentLevelBasedValue, EnchantmentLevelBasedValue enchantmentLevelBasedValue2, Vec3i vec3i, Optional<BlockPredicate> optional, BlockStateProvider blockStateProvider, Optional<RegistryEntry<GameEvent>> optional2) SetBlockPropertiesEnchantmentEffect(BlockStateComponent blockStateComponent, Vec3i vec3i, Optional<RegistryEntry<GameEvent>> optional) 
- 
Uses of Vec3i in net.minecraft.entity.ai.pathingFields in net.minecraft.entity.ai.pathing declared as Vec3i
- 
Uses of Vec3i in net.minecraft.entity.mobFields in net.minecraft.entity.mob declared as Vec3iModifier and TypeFieldDescriptionprivate static final Vec3iMobEntity.ITEM_PICK_UP_RANGE_EXPANDERMethods in net.minecraft.entity.mob that return Vec3i
- 
Uses of Vec3i in net.minecraft.entity.passiveFields in net.minecraft.entity.passive declared as Vec3iModifier and TypeFieldDescriptionprivate static final Vec3iAllayEntity.ITEM_PICKUP_RANGE_EXPANDERMethods in net.minecraft.entity.passive that return Vec3i
- 
Uses of Vec3i in net.minecraft.entity.vehicleFields in net.minecraft.entity.vehicle with type parameters of type Vec3iModifier and TypeFieldDescriptionAbstractMinecartEntity.ADJACENT_RAIL_POSITIONS_BY_SHAPEAbstractMinecartEntity.ADJACENT_RAIL_POSITIONS_BY_SHAPEMethods in net.minecraft.entity.vehicle that return types with arguments of type Vec3iModifier and TypeMethodDescriptionAbstractMinecartEntity.getAdjacentRailPositionsByShape(RailShape shape) AbstractMinecartEntity.getAdjacentRailPositionsByShape(RailShape shape) 
- 
Uses of Vec3i in net.minecraft.network.packet.c2s.playFields in net.minecraft.network.packet.c2s.play declared as Vec3iMethods in net.minecraft.network.packet.c2s.play that return Vec3iConstructors in net.minecraft.network.packet.c2s.play with parameters of type Vec3iModifierConstructorDescriptionTestInstanceBlockActionC2SPacket(BlockPos pos, TestInstanceBlockActionC2SPacket.Action actin, Optional<RegistryKey<TestInstance>> optional, Vec3i vec3i, BlockRotation blockRotation, boolean bool) UpdateStructureBlockC2SPacket(BlockPos pos, StructureBlockBlockEntity.Action action, StructureBlockMode mode, String templateName, BlockPos offset, Vec3i size, BlockMirror mirror, BlockRotation rotation, String metadata, boolean ignoreEntities, boolean strict, boolean showAir, boolean showBoundingBox, float integrity, long seed) 
- 
Uses of Vec3i in net.minecraft.network.packet.s2c.playFields in net.minecraft.network.packet.s2c.play with type parameters of type Vec3iModifier and TypeFieldDescriptionTestInstanceBlockStatusS2CPacket.sizeThe field for thesizerecord component.Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type Vec3iModifier and TypeMethodDescriptionTestInstanceBlockStatusS2CPacket.size()Returns the value of thesizerecord component.Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type Vec3iModifierConstructorDescriptionTestInstanceBlockStatusS2CPacket(Text text, Optional<Vec3i> optional) 
- 
Uses of Vec3i in net.minecraft.structureFields in net.minecraft.structure declared as Vec3iMethods in net.minecraft.structure that return Vec3iModifier and TypeMethodDescriptionStructureTemplate.getRotatedSize(BlockRotation rotation) StructureTemplate.getSize()Methods in net.minecraft.structure with parameters of type Vec3iModifier and TypeMethodDescriptionprotected static BlockBoxStructureTemplate.createBox(BlockPos pos, BlockRotation rotation, BlockPos pivot, BlockMirror mirror, Vec3i dimensions) voidStructureTemplate.saveFromWorld(World world, BlockPos start, Vec3i dimensions, boolean includeEntities, @Nullable Block ignoredBlock) 
- 
Uses of Vec3i in net.minecraft.structure.poolMethods in net.minecraft.structure.pool that return Vec3iModifier 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 Vec3iStructurePoolElement.getStart(StructureTemplateManager structureTemplateManager, BlockRotation rotation) 
- 
Uses of Vec3i in net.minecraft.testMethods in net.minecraft.test with parameters of type Vec3iModifier and TypeMethodDescriptionstatic TestInstanceBlockEntityTestInstanceUtil.createTestInstanceBlockEntity(Identifier testInstanceId, BlockPos pos, Vec3i size, BlockRotation rotation, ServerWorld world) static BlockBoxTestInstanceUtil.getTestInstanceBlockBox(BlockPos pos, Vec3i relativePos, BlockRotation rotation) static BlockPosTestInstanceUtil.getTestInstanceBlockBoxCornerPos(BlockPos pos, Vec3i size, BlockRotation rotation) 
- 
Uses of Vec3i in net.minecraft.util.mathSubclasses of Vec3i in net.minecraft.util.mathModifier and TypeClassDescriptionclassRepresents the position of a block in a three-dimensional volume.static classclassFields in net.minecraft.util.math declared as Vec3iModifier and TypeFieldDescriptionprivate final Vec3iEightWayDirection.offsetprivate final Vec3iDirection.vec3istatic final Vec3iVec3i.ZEROFields in net.minecraft.util.math with type parameters of type Vec3iModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Vec3i> Vec3i.CODECstatic final PacketCodec<ByteBuf, Vec3i> Vec3i.PACKET_CODECMethods in net.minecraft.util.math that return Vec3iModifier and TypeMethodDescriptionVec3i.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 ofvecadded to the coordinates of this vector.Vec3i.crossProduct(Vec3i vec) Vec3i.down()Returns a vector which is offset by1in the downward direction.Vec3i.down(int distance) Returns a vector which is offset bydistancein the downward direction.Vec3i.east()Returns a vector which is offset by1in the eastward direction.Vec3i.east(int distance) Returns a vector which is offset bydistancein the eastward direction.BlockBox.getDimensions()Returns the dimensions (the size) of this box.Direction.getVector()Vec3i.multiply(int scale) Returns a vector with all components multiplied byscale.Vec3i.north()Returns a vector which is offset by1in the northward direction.Vec3i.north(int distance) Returns a vector which is offset bydistancein the northward direction.Returns a vector which is offset by1indirectiondirection.Vec3i.offset(Direction.Axis axis, int distance) Returns a vector which is offset bydistanceonaxisaxis.Returns a vector which is offset bydistanceindirectiondirection.protected Vec3iVec3i.setX(int x) protected Vec3iVec3i.setY(int y) protected Vec3iVec3i.setZ(int z) Vec3i.south()Returns a vector which is offset by1in the southward direction.Vec3i.south(int distance) Returns a vector which is offset bydistancein the southward direction.Returns another Vec3i whose coordinates have the coordinates ofvecsubtracted from the coordinates of this vector.Vec3i.up()Returns a vector which is offset by1in the upward direction.Vec3i.up(int distance) Returns a vector which is offset bydistancein the upward direction.Vec3i.west()Returns a vector which is offset by1in the westward direction.Vec3i.west(int distance) Returns a vector which is offset bydistancein the westward direction.Methods in net.minecraft.util.math that return types with arguments of type Vec3iModifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<Vec3i> Vec3i.createOffsetCodec(int maxAbsValue) Methods in net.minecraft.util.math with parameters of type Vec3iModifier and TypeMethodDescriptionstatic Vec3dReturns a new vector fromvecwithdeltaX,deltaY, anddeltaZadded to X, Y, Z values, respectively.Returns another Vec3i whose coordinates have the coordinates ofvecadded to the coordinates of this vector.intbooleanReturns whether this box containspos.static BlockBoxReturns a new box from two corners,firstandsecond.BlockPos.crossProduct(Vec3i pos) Vec3i.crossProduct(Vec3i vec) Direction.fromVector(Vec3i vec, @Nullable Direction fallback) intVec3i.getChebyshevDistance(Vec3i vec) Returns the Chebyshev distance between here andvec.intVec3i.getManhattanDistance(Vec3i vec) Returns the Manhattan distance between here andvec.doubleVec3i.getSquaredDistance(Vec3i vec) Returns the squared distance between here (center) andvec.static longDeprecated.booleanVec3i.isWithinDistance(Vec3i vec, double distance) Returns whether the distance between here andvecis less thandistance.Deprecated.static Vec3dCopies the given vector.static Vec3dVec3d.ofBottomCenter(Vec3i vec) Creates a vector representing the bottom center of the given block position.static Vec3dCreates a vector representing the center of the given block position.static Vec3dCreates 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 ofvecsubtracted from the coordinates of this vector.Constructors in net.minecraft.util.math with parameters of type Vec3iModifierConstructorDescriptionprivateDirection(int index, int oppositeIndex, int horizontalQuarterTurns, String id, Direction.AxisDirection direction, Direction.Axis axis, Vec3i vector) 
- 
Uses of Vec3i in net.minecraft.util.shapeMethods in net.minecraft.util.shape with parameters of type Vec3i
- 
Uses of Vec3i in net.minecraft.world.gen.blockpredicateFields in net.minecraft.world.gen.blockpredicate declared as Vec3iModifier and TypeFieldDescriptionprivate final Vec3iHasSturdyFacePredicate.offsetprivate final Vec3iInsideWorldBoundsBlockPredicate.offsetprotected final Vec3iOffsetPredicate.offsetprivate final Vec3iUnobstructedBlockPredicate.offsetThe field for theoffsetrecord component.private final Vec3iWouldSurviveBlockPredicate.offsetMethods in net.minecraft.world.gen.blockpredicate that return Vec3iModifier and TypeMethodDescriptionUnobstructedBlockPredicate.offset()Returns the value of theoffsetrecord component.Methods in net.minecraft.world.gen.blockpredicate that return types with arguments of type Vec3iModifier 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) Methods in net.minecraft.world.gen.blockpredicate with parameters of type Vec3iModifier and TypeMethodDescriptionstatic BlockPredicateBlockPredicate.hasSturdyFace(Vec3i offset, Direction face) static BlockPredicateBlockPredicate.insideWorldBounds(Vec3i offset) static BlockPredicateBlockPredicate.matchingBlocks(Vec3i offset, List<Block> blocks) static BlockPredicateBlockPredicate.matchingBlocks(Vec3i offset, Block[] blocks) static BlockPredicateBlockPredicate.matchingBlockTag(Vec3i offset, TagKey<Block> tag) static BlockPredicateBlockPredicate.matchingFluids(Vec3i offset, List<Fluid> fluids) static BlockPredicateBlockPredicate.matchingFluids(Vec3i offset, Fluid[] fluids) static BlockPredicatestatic BlockPredicateBlockPredicate.replaceable(Vec3i offset) static BlockPredicatestatic BlockPredicateBlockPredicate.unobstructed(Vec3i offset) static BlockPredicateBlockPredicate.wouldSurvive(BlockState state, Vec3i offset) Constructors in net.minecraft.world.gen.blockpredicate with parameters of type Vec3iModifierConstructorDescriptionHasSturdyFacePredicate(Vec3i offset, Direction face) InsideWorldBoundsBlockPredicate(Vec3i offset) MatchingBlocksBlockPredicate(Vec3i offset, RegistryEntryList<Block> blocks) protectedMatchingBlockTagPredicate(Vec3i offset, TagKey<Block> tag) MatchingFluidsBlockPredicate(Vec3i offset, RegistryEntryList<Fluid> fluids) protectedOffsetPredicate(Vec3i offset) ReplaceableBlockPredicate(Vec3i offset) SolidBlockPredicate(Vec3i offset) Deprecated.(package private)UnobstructedBlockPredicate(Vec3i vec3i) protectedWouldSurviveBlockPredicate(Vec3i offset, BlockState state) 
- 
Uses of Vec3i in net.minecraft.world.gen.chunk.placementFields in net.minecraft.world.gen.chunk.placement declared as Vec3iMethods in net.minecraft.world.gen.chunk.placement that return Vec3iMethods in net.minecraft.world.gen.chunk.placement that return types with arguments of type Vec3iModifier and TypeMethodDescriptionprotected 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.buildCodec(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> instance) private 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.buildConcentricRingsCodec(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<ConcentricRingsStructurePlacement> instance) Constructors in net.minecraft.world.gen.chunk.placement with parameters of type Vec3iModifierConstructorDescriptionConcentricRingsStructurePlacement(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod generationPredicateType, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone, int distance, int spread, int structureCount, RegistryEntryList<Biome> preferredBiomes) RandomSpreadStructurePlacement(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone, int spacing, int separation, SpreadType spreadType) protectedStructurePlacement(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone) 
- 
Uses of Vec3i in net.minecraft.world.tickMethods in net.minecraft.world.tick with parameters of type Vec3iModifier and TypeMethodDescriptionvoidWorldTickScheduler.scheduleTicks(BlockBox box, Vec3i offset) voidWorldTickScheduler.scheduleTicks(WorldTickScheduler<T> scheduler, BlockBox box, Vec3i offset)