Package net.minecraft.world.level
Class BlockCollisions<T>
java.lang.Object
com.google.common.collect.UnmodifiableIterator<T>
com.google.common.collect.AbstractIterator<T>
net.minecraft.world.level.BlockCollisions<T>
- All Implemented Interfaces:
Iterator<T>
public class BlockCollisions<T>
extends com.google.common.collect.AbstractIterator<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AABB
private BlockGetter
private long
private final CollisionGetter
private final CollisionContext
private final Cursor3D
private final VoxelShape
private final boolean
private final BlockPos.MutableBlockPos
private final BiFunction
<BlockPos.MutableBlockPos, VoxelShape, T> -
Constructor Summary
ConstructorDescriptionBlockCollisions
(CollisionGetter p_286817_, Entity p_286246_, AABB p_286624_, boolean p_286354_, BiFunction<BlockPos.MutableBlockPos, VoxelShape, T> p_286303_) -
Method Summary
Modifier and TypeMethodDescriptionprotected T
private BlockGetter
getChunk
(int p_186412_, int p_186413_) Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
Methods inherited from class com.google.common.collect.UnmodifiableIterator
remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
box
-
context
-
cursor
-
pos
-
entityShape
-
collisionGetter
-
onlySuffocatingBlocks
private final boolean onlySuffocatingBlocks -
cachedBlockGetter
-
cachedBlockGetterPos
private long cachedBlockGetterPos -
resultProvider
-
-
Constructor Details
-
BlockCollisions
public BlockCollisions(CollisionGetter p_286817_, @Nullable Entity p_286246_, AABB p_286624_, boolean p_286354_, BiFunction<BlockPos.MutableBlockPos, VoxelShape, T> p_286303_)
-
-
Method Details
-
getChunk
-
computeNext
- Specified by:
computeNext
in classcom.google.common.collect.AbstractIterator<T>
-