Package net.minecraft.util.math.shapes
Class VoxelShapeSpliterator
java.lang.Object
java.util.Spliterators.AbstractSpliterator<VoxelShape>
net.minecraft.util.math.shapes.VoxelShapeSpliterator
- 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 final AxisAlignedBB
private final ICollisionReader
private final ISelectionContext
private final CubeCoordinateIterator
private final VoxelShape
private boolean
private final BlockPos.Mutable
private final BiPredicate<BlockState,
BlockPos> private final Entity
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorDescriptionVoxelShapeSpliterator
(ICollisionReader p_i231606_1_, Entity p_i231606_2_, AxisAlignedBB p_i231606_3_) VoxelShapeSpliterator
(ICollisionReader p_i241238_1_, Entity p_i241238_2_, AxisAlignedBB p_i241238_3_, BiPredicate<BlockState, BlockPos> p_i241238_4_) -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
collisionCheck
(Consumer<? super VoxelShape> p_234878_1_) private IBlockReader
getChunk
(int p_234876_1_, int p_234876_2_) static boolean
isBoxFullyWithinWorldBorder
(WorldBorder p_234877_0_, AxisAlignedBB p_234877_1_) private static boolean
isCloseToBorder
(VoxelShape p_241460_0_, AxisAlignedBB p_241460_1_) private static boolean
isOutsideBorder
(VoxelShape p_241461_0_, AxisAlignedBB p_241461_1_) boolean
tryAdvance
(Consumer<? super VoxelShape> p_tryAdvance_1_) (package private) boolean
worldBorderCheck
(Consumer<? super VoxelShape> p_234879_1_) 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
-
VoxelShapeSpliterator
public VoxelShapeSpliterator(ICollisionReader p_i231606_1_, @Nullable Entity p_i231606_2_, AxisAlignedBB p_i231606_3_) -
VoxelShapeSpliterator
public VoxelShapeSpliterator(ICollisionReader p_i241238_1_, @Nullable Entity p_i241238_2_, AxisAlignedBB p_i241238_3_, BiPredicate<BlockState, BlockPos> p_i241238_4_)
-
-
Method Details
-
tryAdvance
-
collisionCheck
-
getChunk
-
worldBorderCheck
-
isCloseToBorder
-
isOutsideBorder
-
isBoxFullyWithinWorldBorder
public static boolean isBoxFullyWithinWorldBorder(WorldBorder p_234877_0_, AxisAlignedBB p_234877_1_)
-