net.minecraft.util.math

public record ImmutableBlockBox

implements Iterable<BlockPos>

net.minecraft.core.BlockBox
net.minecraft.class_9380
net.minecraft.util.math.ImmutableBlockBox

Field summary

Modifier and TypeField
private final BlockPos
min
comp_2466
min
private final BlockPos
max
comp_2467
max
public static final PacketCodec<io.netty.buffer.ByteBuf, ImmutableBlockBox>
STREAM_CODEC
field_49907
PACKET_CODEC

Constructor summary

ModifierConstructor
public (BlockPos first, BlockPos second)

Method summary

Modifier and TypeMethod
public static ImmutableBlockBox
of(BlockPos pos)
method_58236(class_2338 arg0)
of(BlockPos pos)
public static ImmutableBlockBox
of(BlockPos a, BlockPos b)
method_58237(class_2338 arg0, class_2338 arg1)
of(BlockPos first, BlockPos second)
public ImmutableBlockBox
include(BlockPos pos)
method_58241(class_2338 arg0)
encompass(BlockPos pos)
public boolean
isBlock()
method_58235()
isSingleBlock()
public boolean
contains(BlockPos pos)
method_58244(class_2338 arg0)
includes(BlockPos pos)
public Box
aabb()
method_58240()
enclosingBox()
public Iterator<BlockPos>
iterator()
public int
sizeX()
method_58243()
getBlockCountX()
public int
sizeY()
method_58245()
getBlockCountY()
public int
sizeZ()
method_58246()
getBlockCountZ()
public ImmutableBlockBox
extend(Direction direction, int amount)
method_58238(class_2350 arg0, int arg1)
expand(Direction direction, int offset)
public ImmutableBlockBox
move(Direction direction, int amount)
method_58242(class_2350 arg0, int arg1)
move(Direction direction, int offset)
public ImmutableBlockBox
offset(Vec3i offset)
method_58239(class_2382 arg0)
move(Vec3i offset)
public BlockPos
min()
comp_2466()
min()
public BlockPos
max()
comp_2467()
max()