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:
java.util.Spliterator<VoxelShape>
public class VoxelShapeSpliterator extends java.util.Spliterators.AbstractSpliterator<VoxelShape>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Spliterator
java.util.Spliterator.OfDouble, java.util.Spliterator.OfInt, java.util.Spliterator.OfLong, java.util.Spliterator.OfPrimitive<T extends java.lang.Object,T_CONS extends java.lang.Object,T_SPLITR extends java.util.Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
-
-
Field Summary
Fields Modifier and Type Field Description private AxisAlignedBB
box
private ICollisionReader
collisionGetter
private ISelectionContext
context
private CubeCoordinateIterator
cursor
private VoxelShape
entityShape
private boolean
needsBorderCheck
private BlockPos.Mutable
pos
private java.util.function.BiPredicate<BlockState,BlockPos>
predicate
private Entity
source
-
Constructor Summary
Constructors Constructor Description VoxelShapeSpliterator(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_, java.util.function.BiPredicate<BlockState,BlockPos> p_i241238_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
collisionCheck(java.util.function.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(java.util.function.Consumer<? super VoxelShape> p_tryAdvance_1_)
(package private) boolean
worldBorderCheck(java.util.function.Consumer<? super VoxelShape> p_234879_1_)
-
Methods inherited from class java.util.Spliterators.AbstractSpliterator
characteristics, estimateSize, trySplit
-
-
-
-
Field Detail
-
source
@Nullable private final Entity source
-
box
private final AxisAlignedBB box
-
context
private final ISelectionContext context
-
cursor
private final CubeCoordinateIterator cursor
-
pos
private final BlockPos.Mutable pos
-
entityShape
private final VoxelShape entityShape
-
collisionGetter
private final ICollisionReader collisionGetter
-
needsBorderCheck
private boolean needsBorderCheck
-
predicate
private final java.util.function.BiPredicate<BlockState,BlockPos> predicate
-
-
Constructor Detail
-
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_, java.util.function.BiPredicate<BlockState,BlockPos> p_i241238_4_)
-
-
Method Detail
-
tryAdvance
public boolean tryAdvance(java.util.function.Consumer<? super VoxelShape> p_tryAdvance_1_)
-
collisionCheck
boolean collisionCheck(java.util.function.Consumer<? super VoxelShape> p_234878_1_)
-
getChunk
@Nullable private IBlockReader getChunk(int p_234876_1_, int p_234876_2_)
-
worldBorderCheck
boolean worldBorderCheck(java.util.function.Consumer<? super VoxelShape> p_234879_1_)
-
isCloseToBorder
private static boolean isCloseToBorder(VoxelShape p_241460_0_, AxisAlignedBB p_241460_1_)
-
isOutsideBorder
private static boolean isOutsideBorder(VoxelShape p_241461_0_, AxisAlignedBB p_241461_1_)
-
isBoxFullyWithinWorldBorder
public static boolean isBoxFullyWithinWorldBorder(WorldBorder p_234877_0_, AxisAlignedBB p_234877_1_)
-
-