Uses of Class
net.minecraft.util.math.BlockPos.Mutable
Package
Description
-
Uses of BlockPos.Mutable in net.minecraft.client.render
-
Uses of BlockPos.Mutable in net.minecraft.client.render.chunk
Modifier and TypeFieldDescription(package private) final BlockPos.Mutable
ChunkBuilder.BuiltChunk.origin
-
Uses of BlockPos.Mutable in net.minecraft.client.world
Modifier and TypeMethodDescriptionvoid
ClientWorld.randomBlockDisplayTick
(int centerX, int centerY, int centerZ, int radius, Random random, @Nullable Block block, BlockPos.Mutable pos) -
Uses of BlockPos.Mutable in net.minecraft.entity
Modifier and TypeMethodDescriptionprivate static void
LightningEntity.cleanOxidationAround
(World world, BlockPos pos, BlockPos.Mutable mutablePos, int count) private static boolean
LargeEntitySpawnHelper.findSpawnPos
(ServerWorld world, int verticalRange, BlockPos.Mutable pos, LargeEntitySpawnHelper.Requirements requirements) -
Uses of BlockPos.Mutable in net.minecraft.entity.ai.pathing
Modifier and TypeMethodDescriptionLandPathNodeMaker.getJumpOnTopNode
(int x, int y, int z, int maxYStep, double prevFeetY, Direction direction, PathNodeType nodeType, BlockPos.Mutable mutablePos) static PathNodeType
LandPathNodeMaker.getLandNodeType
(PathContext context, BlockPos.Mutable pos) -
Uses of BlockPos.Mutable in net.minecraft.entity.passive
Modifier and TypeFieldDescriptionprivate final BlockPos.Mutable
FrogEntity.FrogSwimPathNodeMaker.pos
-
Uses of BlockPos.Mutable in net.minecraft.structure
Modifier and TypeMethodDescriptionprotected BlockPos.Mutable
StructurePiece.offsetPos
(int x, int y, int z) Modifier and TypeMethodDescriptionprivate static void
MineshaftGenerator.MineshaftCorridor.fillColumn
(StructureWorldAccess world, BlockState state, BlockPos.Mutable pos, int startY, int endY) -
Uses of BlockPos.Mutable in net.minecraft.test
-
Uses of BlockPos.Mutable in net.minecraft.util.math
Modifier and TypeMethodDescriptionBlockPos.Mutable.clamp
(Direction.Axis axis, int min, int max) Clamps the component corresponding to the givenaxis
betweenmin
andmax
.BlockPos.Mutable.move
(int dx, int dy, int dz) Moves the mutable block position by the delta x, y, and z provided.Moves this mutable block position by 1 block in the given direction.Moves this mutable block position by the given distance in the given direction.BlockPos.mutableCopy()
Returns a mutable copy of this block position.BlockPos.Mutable.set
(double x, double y, double z) BlockPos.Mutable.set
(int x, int y, int z) Sets the x, y, and z of this mutable block position.BlockPos.Mutable.set
(long pos) BlockPos.Mutable.set
(AxisCycleDirection axis, int x, int y, int z) 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.BlockPos.Mutable.setX
(int int2) BlockPos.Mutable.setY
(int int2) BlockPos.Mutable.setZ
(int int2) Modifier and TypeMethodDescriptionstatic Iterable
<BlockPos.Mutable> BlockPos.iterateInSquare
(BlockPos center, int radius, Direction firstDirection, Direction secondDirection) Iterates block positions around thecenter
in a square of (2 * radius + 1
) by (2 * radius + 1
). -
Uses of BlockPos.Mutable in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final BiFunction
<BlockPos.Mutable, VoxelShape, T> BlockCollisionSpliterator.resultFunction
Modifier and TypeMethodDescriptionprivate static boolean
SpawnHelper.canSpawn
(ServerWorld world, SpawnGroup group, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnSettings.SpawnEntry spawnEntry, BlockPos.Mutable pos, double squaredDistance) private static boolean
SpawnHelper.isAcceptableSpawnPosition
(ServerWorld world, Chunk chunk, BlockPos.Mutable pos, double squaredDistance) private static int
BlockLocating.moveWhile
(Predicate<BlockPos> predicate, BlockPos.Mutable pos, Direction direction, int max) ModifierConstructorDescriptionBlockCollisionSpliterator
(CollisionView world, ShapeContext context, Box box, boolean forEntity, BiFunction<BlockPos.Mutable, VoxelShape, T> resultFunction) BlockCollisionSpliterator
(CollisionView world, @Nullable Entity entity, Box box, boolean forEntity, BiFunction<BlockPos.Mutable, VoxelShape, T> resultFunction) -
Uses of BlockPos.Mutable in net.minecraft.world.chunk.light
Modifier and TypeFieldDescriptionprivate final BlockPos.Mutable
ChunkSkyLightProvider.field_44746
private final BlockPos.Mutable
ChunkBlockLightProvider.mutablePos
private final BlockPos.Mutable
ChunkSkyLight.reusableBlockPos1
private final BlockPos.Mutable
ChunkSkyLight.reusableBlockPos2
-
Uses of BlockPos.Mutable in net.minecraft.world.dimension
Modifier and TypeMethodDescriptionprivate static int
NetherPortal.getPotentialHeight
(BlockView world, BlockPos lowerCorner, Direction negativeDir, BlockPos.Mutable pos, int width, MutableInt foundPortalBlocks) private boolean
PortalForcer.isBlockStateValid
(BlockPos.Mutable pos) private static boolean
NetherPortal.isHorizontalFrameValid
(BlockView world, BlockPos lowerCorner, Direction direction, BlockPos.Mutable pos, int width, int height) private boolean
PortalForcer.isValidPortalPos
(BlockPos pos, BlockPos.Mutable temp, Direction portalDirection, int distanceOrthogonalToPortal) -
Uses of BlockPos.Mutable in net.minecraft.world.gen.carver
Modifier and TypeMethodDescriptionprotected boolean
Carver.carveAtPoint
(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, CarvingMask mask, BlockPos.Mutable pos, BlockPos.Mutable tmp, AquiferSampler aquiferSampler, MutableBoolean replacedGrassy) protected boolean
NetherCaveCarver.carveAtPoint
(CarverContext carverContext, CaveCarverConfig caveCarverConfig, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> function, CarvingMask carvingMask, BlockPos.Mutable mutable, BlockPos.Mutable mutable2, AquiferSampler aquiferSampler, MutableBoolean mutableBoolean) -
Uses of BlockPos.Mutable in net.minecraft.world.gen.chunk
Modifier and TypeMethodDescriptionprivate static double
BlendingData.getAboveCollidableBlockValue
(Chunk chunk, BlockPos.Mutable mutablePos) Returns1.0
if there is a collidable block below, otherwise-1
.private static double
BlendingData.getCollidableBlockDensityBelow
(Chunk chunk, BlockPos.Mutable mutablePos) -
Uses of BlockPos.Mutable in net.minecraft.world.gen.feature
Modifier and TypeMethodDescriptionprotected boolean
HugeMushroomFeature.canGenerate
(WorldAccess world, BlockPos pos, int height, BlockPos.Mutable mutablePos, HugeMushroomFeatureConfig config) private static boolean
TwistingVinesFeature.canGenerate
(WorldAccess world, BlockPos.Mutable pos) private static boolean
BasaltColumnsFeature.canPlaceAt
(WorldAccess world, int seaLevel, BlockPos.Mutable mutablePos) protected void
HugeBrownMushroomFeature.generateCap
(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) protected abstract void
HugeMushroomFeature.generateCap
(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) protected void
HugeRedMushroomFeature.generateCap
(WorldAccess world, Random random, BlockPos start, int y, BlockPos.Mutable mutable, HugeMushroomFeatureConfig config) private static void
RootSystemFeature.generateHangingRoots
(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, BlockPos pos, BlockPos.Mutable mutablePos) private static void
RootSystemFeature.generateRoots
(StructureWorldAccess world, RootSystemFeatureConfig config, Random random, int x, int z, BlockPos.Mutable mutablePos) protected void
HugeMushroomFeature.generateStem
(WorldAccess world, Random random, BlockPos pos, HugeMushroomFeatureConfig config, int height, BlockPos.Mutable mutablePos) private static boolean
RootSystemFeature.generateTreeAndRoots
(StructureWorldAccess world, ChunkGenerator generator, RootSystemFeatureConfig config, Random random, BlockPos.Mutable mutablePos, BlockPos pos) static void
TwistingVinesFeature.generateVineColumn
(WorldAccess world, Random random, BlockPos.Mutable pos, int maxLength, int minAge, int maxAge) static void
WeepingVinesFeature.generateVineColumn
(WorldAccess world, Random random, BlockPos.Mutable pos, int length, int minAge, int maxAge) private static boolean
WaterloggedVegetationPatchFeature.isSolidBlockAroundPos
(StructureWorldAccess world, Set<BlockPos> positions, BlockPos pos, BlockPos.Mutable mutablePos) private static boolean
WaterloggedVegetationPatchFeature.isSolidBlockSide
(StructureWorldAccess world, BlockPos pos, BlockPos.Mutable mutablePos, Direction direction) BasaltColumnsFeature.moveDownToGround
(WorldAccess world, int seaLevel, BlockPos.Mutable mutablePos, int distance) ReplaceBlobsFeature.moveDownToTarget
(WorldAccess world, BlockPos.Mutable mutablePos, Block target) BasaltColumnsFeature.moveUpToAir
(WorldAccess world, BlockPos.Mutable mutablePos, int distance) protected boolean
DiskFeature.placeBlock
(DiskFeatureConfig config, StructureWorldAccess world, Random random, int topY, int bottomY, BlockPos.Mutable pos) protected boolean
VegetationPatchFeature.placeGround
(StructureWorldAccess world, VegetationPatchFeatureConfig config, Predicate<BlockState> replaceable, Random random, BlockPos.Mutable pos, int depth) private void
HugeFungusFeature.placeHatBlock
(WorldAccess world, Random random, HugeFungusFeatureConfig config, BlockPos.Mutable pos, float decorationChance, float generationChance, float vineChance) private void
ScatteredOreFeature.setPos
(BlockPos.Mutable mutable, Random random, BlockPos origin, int spread) static boolean
OreFeature.shouldPlace
(BlockState state, Function<BlockPos, BlockState> posToState, Random random, OreFeatureConfig config, OreFeatureConfig.Target target, BlockPos.Mutable pos) -
Uses of BlockPos.Mutable in net.minecraft.world.gen.feature.util
Modifier and TypeMethodDescriptionprivate static OptionalInt
CaveSurface.getCaveSurface
(TestableWorld world, int height, Predicate<BlockState> canGenerate, Predicate<BlockState> canReplace, BlockPos.Mutable mutablePos, int y, Direction direction) -
Uses of BlockPos.Mutable in net.minecraft.world.gen.foliage
Modifier and TypeMethodDescriptionprivate static boolean
FoliagePlacer.placeFoliageBlock
(TestableWorld world, FoliagePlacer.BlockPlacer placer, Random random, TreeFeatureConfig config, float chance, BlockPos origin, BlockPos.Mutable pos) -
Uses of BlockPos.Mutable in net.minecraft.world.gen.surfacebuilder
Modifier and TypeFieldDescription(package private) final BlockPos.Mutable
MaterialRules.MaterialRuleContext.pos
Modifier and TypeMethodDescriptionprivate void
SurfaceBuilder.placeIceberg
(int minY, Biome biome, BlockColumn column, BlockPos.Mutable mutablePos, int x, int z, int surfaceY) -
Uses of BlockPos.Mutable in net.minecraft.world.gen.trunk
Modifier and TypeMethodDescriptionprivate FoliagePlacer.TreeNode
CherryTrunkPlacer.generateBranch
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config, Function<BlockState, BlockState> withAxisFunction, Direction direction, int branchStartOffset, boolean branchBelowHeight, BlockPos.Mutable mutablePos) private void
UpwardsBranchingTrunkPlacer.generateExtraBranch
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, TreeFeatureConfig config, List<FoliagePlacer.TreeNode> nodes, BlockPos.Mutable pos, int yOffset, Direction direction, int length, int steps) private void
GiantTrunkPlacer.setLog
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos.Mutable tmpPos, TreeFeatureConfig config, BlockPos startPos, int dx, int dy, int dz) protected void
TrunkPlacer.trySetState
(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos.Mutable pos, TreeFeatureConfig config)