-
-
-
-
-
-
-
-
Methods in net.minecraft.util.math that return BlockPos.Mutable
| Modifier and Type |
Method |
Description |
BlockPos.Mutable |
BlockPos.Mutable.clamp(Direction.Axis axis,
int min,
int max) |
Clamps the component corresponding to the given axis between min and max.
|
BlockPos.Mutable |
BlockPos.Mutable.move(int dx,
int dy,
int dz) |
Moves the mutable block position by the delta x, y, and z provided.
|
BlockPos.Mutable |
BlockPos.Mutable.move(Direction direction) |
Moves this mutable block position by 1 block in the given direction.
|
BlockPos.Mutable |
BlockPos.Mutable.move(Direction direction,
int distance) |
Moves this mutable block position by the given distance in the given
direction.
|
BlockPos.Mutable |
BlockPos.Mutable.move(Vec3i vec) |
|
BlockPos.Mutable |
BlockPos.mutableCopy() |
Returns a mutable copy of this block position.
|
BlockPos.Mutable |
BlockPos.Mutable.set(double x,
double y,
double z) |
|
BlockPos.Mutable |
BlockPos.Mutable.set(int x,
int y,
int z) |
Sets the x, y, and z of this mutable block position.
|
BlockPos.Mutable |
BlockPos.Mutable.set(long pos) |
|
BlockPos.Mutable |
BlockPos.Mutable.set(AxisCycleDirection axis,
int x,
int y,
int z) |
|
BlockPos.Mutable |
BlockPos.Mutable.set(Vec3i pos) |
|
BlockPos.Mutable |
BlockPos.Mutable.set(Vec3i pos,
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.
|
BlockPos.Mutable |
BlockPos.Mutable.set(Vec3i pos,
Direction direction) |
Sets this mutable block position to the offset position of the given
pos by the given direction.
|
BlockPos.Mutable |
BlockPos.Mutable.set(Vec3i vec1,
Vec3i vec2) |
Sets this mutable block position to the sum of the given vectors.
|
BlockPos.Mutable |
BlockPos.Mutable.setX(int int2) |
|
BlockPos.Mutable |
BlockPos.Mutable.setY(int int2) |
|
BlockPos.Mutable |
BlockPos.Mutable.setZ(int int2) |
|
-
Methods in net.minecraft.world with parameters of type BlockPos.Mutable
| Modifier and Type |
Method |
Description |
private 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 boolean |
PortalForcer.isValidPortalPos(BlockPos pos,
BlockPos.Mutable temp,
Direction portalDirection,
int distanceOrthogonalToPortal) |
|
private static int |
PortalUtil.moveWhile(Predicate<BlockPos> predicate,
BlockPos.Mutable mutable,
Direction direction,
int max) |
|
-
-
-
Methods in net.minecraft.world.gen.carver with parameters of type BlockPos.Mutable
| Modifier and Type |
Method |
Description |
protected boolean |
Carver.carveAtPoint(CarverContext context,
C config,
Chunk chunk,
Function<BlockPos,Biome> posToBiome,
BitSet carvingMask,
Random random,
BlockPos.Mutable pos,
BlockPos.Mutable downPos,
int mainChunkX,
MutableBoolean foundSurface) |
|
protected boolean |
NetherCaveCarver.carveAtPoint(CarverContext carverContext,
class_6108 class_6108,
Chunk chunk,
Function<BlockPos,Biome> function,
BitSet bitSet,
Random random,
BlockPos.Mutable mutable,
BlockPos.Mutable mutable2,
int int2,
MutableBoolean mutableBoolean) |
|
-
Methods in net.minecraft.world.gen.feature with parameters of type BlockPos.Mutable
| Modifier and Type |
Method |
Description |
protected boolean |
HugeMushroomFeature.canGenerate(WorldAccess world,
BlockPos pos,
int height,
BlockPos.Mutable mutable,
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 void |
RootSystemFeature.generateHangingRoots(StructureWorldAccess world,
RootSystemFeatureConfig config,
Random random,
BlockPos pos,
BlockPos.Mutable mutablePos) |
|
private void |
HugeFungusFeature.generateHatBlock(WorldAccess world,
Random random,
HugeFungusFeatureConfig config,
BlockPos.Mutable pos,
float decorationChance,
float generationChance,
float vineChance) |
|
private 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 mutable) |
|
private 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) |
|
private static @Nullable BlockPos |
BasaltColumnsFeature.moveDownToGround(WorldAccess world,
int seaLevel,
BlockPos.Mutable mutablePos,
int distance) |
|
private static @Nullable BlockPos |
ReplaceBlobsFeature.moveDownToTarget(WorldAccess world,
BlockPos.Mutable mutablePos,
Block target) |
|
private static @Nullable BlockPos |
BasaltColumnsFeature.moveUpToAir(WorldAccess world,
BlockPos.Mutable mutablePos,
int distance) |
|
protected boolean |
VegetationPatchFeature.placeGround(StructureWorldAccess world,
VegetationPatchFeatureConfig config,
Predicate<BlockState> replaceable,
Random random,
BlockPos.Mutable pos,
int depth) |
|
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) |
|
-
-
Methods in net.minecraft.world.gen.trunk with parameters of type BlockPos.Mutable
| Modifier and Type |
Method |
Description |
private static void |
GiantTrunkPlacer.setLog(TestableWorld testableWorld,
BiConsumer<BlockPos,BlockState> biConsumer,
Random random,
BlockPos.Mutable mutable,
TreeFeatureConfig treeFeatureConfig,
BlockPos blockPos,
int int2,
int int3,
int int4) |
|
protected static void |
TrunkPlacer.trySetState(TestableWorld testableWorld,
BiConsumer<BlockPos,BlockState> biConsumer,
Random random,
BlockPos.Mutable mutable,
TreeFeatureConfig treeFeatureConfig) |
|