Package net.minecraft.world.level
Class CollisionSpliterator
java.lang.Object
java.util.Spliterators.AbstractSpliterator<VoxelShape>
net.minecraft.world.level.CollisionSpliterator
- All Implemented Interfaces:
Spliterator<VoxelShape>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T extends Object,T_CONS extends Object,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate AABB
private CollisionGetter
private CollisionContext
private Cursor3D
private VoxelShape
private boolean
private BlockPos.MutableBlockPos
private BiPredicate<BlockState,BlockPos>
private Entity
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorDescriptionCollisionSpliterator(CollisionGetter p_45798_, Entity p_45799_, AABB p_45800_)
CollisionSpliterator(CollisionGetter p_45802_, Entity p_45803_, AABB p_45804_, BiPredicate<BlockState,BlockPos> p_45805_)
-
Method Summary
Modifier and TypeMethodDescription(package private) boolean
collisionCheck(Consumer<? super VoxelShape> p_45819_)
private BlockGetter
getChunk(int p_45807_, int p_45808_)
static boolean
isBoxFullyWithinWorldBorder(WorldBorder p_45813_, AABB p_45814_)
private static boolean
isCloseToBorder(VoxelShape p_45816_, AABB p_45817_)
private static boolean
isOutsideBorder(VoxelShape p_45821_, AABB p_45822_)
boolean
tryAdvance(Consumer<? super VoxelShape> p_45826_)
(package private) boolean
worldBorderCheck(Consumer<? super VoxelShape> p_45824_)
Methods inherited from class java.util.Spliterators.AbstractSpliterator
characteristics, estimateSize, trySplit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Spliterator
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
source
-
box
-
context
-
cursor
-
pos
-
entityShape
-
collisionGetter
-
needsBorderCheck
private boolean needsBorderCheck -
predicate
-
-
Constructor Details
-
CollisionSpliterator
-
CollisionSpliterator
public CollisionSpliterator(CollisionGetter p_45802_, @Nullable Entity p_45803_, AABB p_45804_, BiPredicate<BlockState,BlockPos> p_45805_)
-
-
Method Details
-
tryAdvance
-
collisionCheck
-
getChunk
-
worldBorderCheck
-
isCloseToBorder
-
isOutsideBorder
-
isBoxFullyWithinWorldBorder
-