public class BlockCollisionSpliterator extends Spliterators.AbstractSpliterator<VoxelShape>
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>| Modifier and Type | Field and Description |
|---|---|
private CuboidBlockIterator |
blockIterator |
private BiPredicate<BlockState,BlockPos> |
blockPredicate |
private Box |
box |
private VoxelShape |
boxShape |
private boolean |
checkEntity |
private ShapeContext |
context |
private Entity |
entity |
private BlockPos.Mutable |
pos |
private CollisionView |
world |
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED| Constructor and Description |
|---|
BlockCollisionSpliterator(CollisionView world,
Entity entity,
Box box) |
BlockCollisionSpliterator(CollisionView collisionView,
Entity entity,
Box box,
BiPredicate<BlockState,BlockPos> blockPredicate) |
| Modifier and Type | Method and Description |
|---|---|
private BlockView |
getChunk(int x,
int z) |
static boolean |
isInWorldBorder(WorldBorder border,
Box box) |
private static boolean |
method_30130(VoxelShape voxelShape,
Box box) |
private static boolean |
method_30131(VoxelShape voxelShape,
Box box) |
(package private) boolean |
offerBlockShape(Consumer<? super VoxelShape> consumer) |
(package private) boolean |
offerEntityShape(Consumer<? super VoxelShape> consumer) |
boolean |
tryAdvance(Consumer<? super VoxelShape> consumer) |
characteristics, estimateSize, trySplitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristicsprivate final Box box
private final ShapeContext context
private final CuboidBlockIterator blockIterator
private final BlockPos.Mutable pos
private final VoxelShape boxShape
private final CollisionView world
private boolean checkEntity
private final BiPredicate<BlockState,BlockPos> blockPredicate
public BlockCollisionSpliterator(CollisionView world, @Nullable Entity entity, Box box)
public BlockCollisionSpliterator(CollisionView collisionView, @Nullable Entity entity, Box box, BiPredicate<BlockState,BlockPos> blockPredicate)
public boolean tryAdvance(Consumer<? super VoxelShape> consumer)
boolean offerBlockShape(Consumer<? super VoxelShape> consumer)
boolean offerEntityShape(Consumer<? super VoxelShape> consumer)
private static boolean method_30130(VoxelShape voxelShape, Box box)
private static boolean method_30131(VoxelShape voxelShape, Box box)
public static boolean isInWorldBorder(WorldBorder border, Box box)