Uses of Class
net.minecraft.core.Vec3i
Packages that use Vec3i
Package
Description
-
Uses of Vec3i in net.minecraft.core
Subclasses of Vec3i in net.minecraft.coreModifier and TypeClassDescriptionclass
static class
class
Fields in net.minecraft.core declared as Vec3iModifier and TypeFieldDescriptionprivate final Vec3i
Direction.normal
Normalized vector that points in the direction of this Directionprivate final Vec3i
Direction8.step
static final Vec3i
Vec3i.ZERO
An immutable vector with zero as all coordinates.Fields in net.minecraft.core with type parameters of type Vec3iMethods in net.minecraft.core that return Vec3iModifier and TypeMethodDescriptionVec3i.above()
Vec3i.above
(int pDistance) Offset this vector upwards by the given distance.Vec3i.below()
Vec3i.below
(int pDistance) Offset this vector downwards by the given distance.Calculate the cross product of this and the given VectorVec3i.east()
Vec3i.east
(int pDistance) Direction.getNormal()
Vec3i.multiply
(int pScalar) Vec3i.north()
Vec3i.north
(int pDistance) Vec3i.offset
(int pDx, int pDy, int pDz) Vec3i.relative
(Direction.Axis pAxis, int pAmount) Offsets this Vector by the given distance in the specified direction.protected Vec3i
Vec3i.setX
(int pX) protected Vec3i
Vec3i.setY
(int pY) protected Vec3i
Vec3i.setZ
(int pZ) Vec3i.south()
Vec3i.south
(int pDistance) Vec3i.west()
Vec3i.west
(int pDistance) Methods in net.minecraft.core that return types with arguments of type Vec3iModifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec
<Vec3i> Vec3i.offsetCodec
(int p_194651_) Methods in net.minecraft.core with parameters of type Vec3iModifier and TypeMethodDescriptionboolean
Vec3i.closerThan
(Vec3i pVector, double pDistance) int
Calculate the cross product of this and the given VectorCalculate the cross product of this and the given Vectorint
Vec3i.distManhattan
(Vec3i pVector) double
Calculate squared distance to the given VectorBlockPos.MutableBlockPos.setWithOffset
(Vec3i pVector, int pOffsetX, int pOffsetY, int pOffsetZ) BlockPos.MutableBlockPos.setWithOffset
(Vec3i pPos, Direction pDirection) BlockPos.MutableBlockPos.setWithOffset
(Vec3i pPos, Vec3i pOffset) Constructors in net.minecraft.core with parameters of type Vec3iModifierConstructorDescriptionprivate
Direction
(int pData3d, int pOppositeIndex, int pData2d, String pName, Direction.AxisDirection pAxisDirection, Direction.Axis pAxis, Vec3i pNormal) -
Uses of Vec3i in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type Vec3iModifier and TypeMethodDescriptionstatic void
StructureUtils.createNewEmptyStructureBlock
(String pStructureName, BlockPos pPos, Vec3i pSize, Rotation pRotation, ServerLevel pServerLevel) static BoundingBox
StructureUtils.getStructureBoundingBox
(BlockPos pPos, Vec3i pOffset, Rotation pRotation) static BlockPos
StructureUtils.getTransformedFarCorner
(BlockPos pPos, Vec3i pOffset, Rotation pRotation) -
Uses of Vec3i in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as Vec3iMethods in net.minecraft.network.protocol.game that return Vec3iConstructors in net.minecraft.network.protocol.game with parameters of type Vec3iModifierConstructorDescriptionServerboundSetStructureBlockPacket
(BlockPos pPos, StructureBlockEntity.UpdateType pUpdateType, StructureMode pMode, String pName, BlockPos pOffset, Vec3i pSize, Mirror pMirror, Rotation pRotation, String pData, boolean pIgnoreEntities, boolean pShowAir, boolean pShowBoundingBox, float pIntegrity, long pSeed) -
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
Fields in net.minecraft.world.entity.vehicle with type parameters of type Vec3iMethods in net.minecraft.world.entity.vehicle 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 Vec3i
ReplaceBlock.offset
The field for theoffset
record component.private final Vec3i
ReplaceDisk.offset
The field for theoffset
record component.private final Vec3i
SetBlockProperties.offset
The field for theoffset
record component.Methods in net.minecraft.world.item.enchantment.effects that return Vec3iModifier and TypeMethodDescriptionReplaceBlock.offset()
Returns the value of theoffset
record component.ReplaceDisk.offset()
Returns the value of theoffset
record component.SetBlockProperties.offset()
Returns the value of theoffset
record 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 aReplaceBlock
record class.ReplaceDisk
(LevelBasedValue radius, LevelBasedValue height, Vec3i offset, Optional<BlockPredicate> predicate, BlockStateProvider blockState, Optional<Holder<GameEvent>> triggerGameEvent) Creates an instance of aReplaceDisk
record class.SetBlockProperties
(BlockItemStateProperties properties, Vec3i offset, Optional<Holder<GameEvent>> triggerGameEvent) Creates an instance of aSetBlockProperties
record class. -
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_NEIGHBOURS
private static final com.google.common.collect.ImmutableList
<Vec3i> RespawnAnchorBlock.RESPAWN_HORIZONTAL_OFFSETS
private static final com.google.common.collect.ImmutableList
<Vec3i> RespawnAnchorBlock.RESPAWN_OFFSETS
Methods in net.minecraft.world.level.block that return types with arguments of type Vec3iModifier and TypeMethodDescriptionSculkSpreader.ChargeCursor.getRandomizedNonCornerNeighbourOffsets
(RandomSource pRandom) -
Uses of Vec3i in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as Vec3iMethods in net.minecraft.world.level.block.entity that return Vec3iMethods in net.minecraft.world.level.block.entity with parameters of type Vec3iModifier and TypeMethodDescriptionvoid
StructureBlockEntity.setStructureSize
(Vec3i pStructureSize) -
Uses of Vec3i in net.minecraft.world.level.levelgen.blockpredicates
Fields in net.minecraft.world.level.levelgen.blockpredicates declared as Vec3iModifier and TypeFieldDescriptionprivate final Vec3i
HasSturdyFacePredicate.offset
private final Vec3i
InsideWorldBoundsPredicate.offset
protected final Vec3i
StateTestingPredicate.offset
private final Vec3i
UnobstructedPredicate.offset
The field for theoffset
record component.private final Vec3i
WouldSurvivePredicate.offset
Methods in net.minecraft.world.level.levelgen.blockpredicates that return Vec3iModifier and TypeMethodDescriptionUnobstructedPredicate.offset()
Returns the value of theoffset
record 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> p_190547_) Methods in net.minecraft.world.level.levelgen.blockpredicates with parameters of type Vec3iModifier and TypeMethodDescriptionstatic BlockPredicate
BlockPredicate.hasSturdyFace
(Vec3i pOffset, Direction pDirection) static BlockPredicate
BlockPredicate.insideWorld
(Vec3i pOffset) static BlockPredicate
BlockPredicate.matchesBlocks
(Vec3i pOffset, List<Block> pBlocks) static BlockPredicate
BlockPredicate.matchesBlocks
(Vec3i pOffset, Block... pBlocks) static BlockPredicate
BlockPredicate.matchesFluids
(Vec3i pOffset, List<Fluid> pFluids) static BlockPredicate
BlockPredicate.matchesFluids
(Vec3i pOffset, Fluid... pFluids) static BlockPredicate
BlockPredicate.matchesTag
(Vec3i pOffset, TagKey<Block> pTag) static BlockPredicate
static BlockPredicate
BlockPredicate.replaceable
(Vec3i pOffset) static BlockPredicate
static BlockPredicate
BlockPredicate.unobstructed
(Vec3i pOffset) static BlockPredicate
BlockPredicate.wouldSurvive
(BlockState pState, Vec3i pOffset) Constructors in net.minecraft.world.level.levelgen.blockpredicates with parameters of type Vec3iModifierConstructorDescriptionHasSturdyFacePredicate
(Vec3i p_198320_, Direction p_198321_) InsideWorldBoundsPredicate
(Vec3i p_190467_) MatchingBlocksPredicate
(Vec3i p_204690_, HolderSet<Block> p_204691_) protected
MatchingBlockTagPredicate
(Vec3i p_204683_, TagKey<Block> p_204684_) MatchingFluidsPredicate
(Vec3i p_204695_, HolderSet<Fluid> p_204696_) ReplaceablePredicate
(Vec3i p_190524_) SolidPredicate
(Vec3i p_190533_) Deprecated.protected
StateTestingPredicate
(Vec3i pOffset) (package private)
UnobstructedPredicate
(Vec3i offset) Creates an instance of aUnobstructedPredicate
record class.protected
WouldSurvivePredicate
(Vec3i p_190570_, BlockState p_190571_) -
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 BoundingBox
BoundingBox.fromCorners
(Vec3i pFirst, Vec3i pSecond) boolean
Deprecated. -
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> p_226997_) 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> p_227042_) Constructors in net.minecraft.world.level.levelgen.structure.placement with parameters of type Vec3iModifierConstructorDescriptionConcentricRingsStructurePlacement
(Vec3i p_226981_, StructurePlacement.FrequencyReductionMethod p_226982_, float p_226983_, int p_226984_, Optional<StructurePlacement.ExclusionZone> p_226985_, int p_226986_, int p_226987_, int p_226988_, HolderSet<Biome> p_226989_) RandomSpreadStructurePlacement
(Vec3i p_227000_, StructurePlacement.FrequencyReductionMethod p_227001_, float p_227002_, int p_227003_, Optional<StructurePlacement.ExclusionZone> p_227004_, int p_227005_, int p_227006_, RandomSpreadType p_227007_) protected
StructurePlacement
(Vec3i pLocateOffset, StructurePlacement.FrequencyReductionMethod pFrequencyReductionMethod, float pFrequency, int pSalt, Optional<StructurePlacement.ExclusionZone> pExclusionZone) -
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 p_227169_, Rotation p_227170_) FeaturePoolElement.getSize
(StructureTemplateManager pStructureTemplateManager, Rotation pRotation) ListPoolElement.getSize
(StructureTemplateManager pStructureTemplateManager, Rotation pRotation) SinglePoolElement.getSize
(StructureTemplateManager pStructureTemplateManager, Rotation pRotation) abstract Vec3i
StructurePoolElement.getSize
(StructureTemplateManager pStructureTemplateManager, Rotation pRotation) -
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 TypeMethodDescriptionvoid
StructureTemplate.fillFromWorld
(Level pLevel, BlockPos pPos, Vec3i pSize, boolean pWithEntities, Block pToIgnore) protected static BoundingBox
StructureTemplate.getBoundingBox
(BlockPos pStartPos, Rotation pRotation, BlockPos pPivotPos, Mirror pMirror, Vec3i pSize) -
Uses of Vec3i in net.minecraft.world.phys
Methods in net.minecraft.world.phys with parameters of type Vec3iModifier and TypeMethodDescriptionstatic Vec3
Vec3.atBottomCenterOf
(Vec3i pToCopy) Copies the coordinates of an int vector and centers them horizontally (x and z)static Vec3
Vec3.atCenterOf
(Vec3i pToCopy) Copies the coordinates of an Int vector and centers them.static Vec3
Vec3.atLowerCornerOf
(Vec3i pToCopy) Copies the coordinates of an int vector exactly.static Vec3
Vec3.atLowerCornerWithOffset
(Vec3i pToCopy, double pOffsetX, double pOffsetY, double pOffsetZ) static Vec3
Vec3.upFromBottomCenterOf
(Vec3i pToCopy, double pVerticalOffset) Copies the coordinates of an int vector and centers them horizontally and applies a vertical offset. -
Uses of Vec3i in net.minecraft.world.ticks
Methods in net.minecraft.world.ticks with parameters of type Vec3iModifier and TypeMethodDescriptionvoid
LevelTicks.copyArea
(BoundingBox pArea, Vec3i pOffset) void
LevelTicks.copyAreaFrom
(LevelTicks<T> pLevelTicks, BoundingBox pArea, Vec3i pOffset) -
Uses of Vec3i in net.neoforged.testframework.gametest
Fields in net.neoforged.testframework.gametest declared as Vec3iFields in net.neoforged.testframework.gametest with type parameters of type Vec3iModifier and TypeFieldDescriptionprivate static final StructureTemplateBuilder.FieldHandle
<StructureTemplate, Vec3i> StructureTemplateBuilder.SIZE
Constructors in net.neoforged.testframework.gametest with parameters of type Vec3i