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
FieldsModifier and TypeFieldDescriptionprivate final AABBprivate @Nullable BlockGetterprivate longprivate final CollisionGetterprivate final CollisionContextprivate final Cursor3Dprivate final VoxelShapeprivate final booleanprivate final BlockPos.MutableBlockPosprivate final BiFunction<BlockPos.MutableBlockPos, VoxelShape, T> -
Constructor Summary
ConstructorsConstructorDescriptionBlockCollisions(CollisionGetter collisionGetter, @Nullable Entity source, AABB box, boolean onlySuffocatingBlocks, BiFunction<BlockPos.MutableBlockPos, VoxelShape, T> resultProvider) BlockCollisions(CollisionGetter collisionGetter, CollisionContext context, AABB box, boolean onlySuffocatingBlocks, BiFunction<BlockPos.MutableBlockPos, VoxelShape, T> resultProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected Tprivate @Nullable BlockGettergetChunk(int x, int z) Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peekMethods inherited from class com.google.common.collect.UnmodifiableIterator
removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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 collisionGetter, @Nullable Entity source, AABB box, boolean onlySuffocatingBlocks, BiFunction<BlockPos.MutableBlockPos, VoxelShape, T> resultProvider) -
BlockCollisions
public BlockCollisions(CollisionGetter collisionGetter, CollisionContext context, AABB box, boolean onlySuffocatingBlocks, BiFunction<BlockPos.MutableBlockPos, VoxelShape, T> resultProvider)
-
-
Method Details
-
getChunk
-
computeNext
-