Package net.minecraft.world
Class BlockCollisionSpliterator
java.lang.Object
java.util.Spliterators.AbstractSpliterator<VoxelShape>
net.minecraft.world.BlockCollisionSpliterator
- All Implemented Interfaces:
Spliterator<VoxelShape>
- Mappings:
Namespace Name official bvz
intermediary net/minecraft/class_5329
named net/minecraft/world/BlockCollisionSpliterator
-
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 CuboidBlockIterator
private final BiPredicate<BlockState,
BlockPos> private final Box
private final VoxelShape
private boolean
private final ShapeContext
private final BlockPos.Mutable
private final CollisionView
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorDescriptionBlockCollisionSpliterator
(CollisionView world, @Nullable Entity entity, Box box) BlockCollisionSpliterator
(CollisionView world, @Nullable Entity entity, Box box, BiPredicate<BlockState, BlockPos> blockPredicate) -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
collidesSlightlyLarger
(VoxelShape worldBorderShape, Box entityBox) Returns whether the world border collides with the slightly expanded entity bounding box.private static boolean
collidesSlightlySmaller
(VoxelShape worldBorderShape, Box entityBox) Returns whether the world border collides with the slightly shrinked entity bounding box.getChunk
(int x, int z) static boolean
isIn
(WorldBorder border, Box box) (package private) boolean
offerBlockShape
(Consumer<? super VoxelShape> action) (package private) boolean
offerWorldBorderShape
(Consumer<? super VoxelShape> action) boolean
tryAdvance
(Consumer<? super VoxelShape> action) 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
-
entity
- Mappings:
Namespace Name Mixin selector official a
Lbvz;a:Latf;
intermediary field_25168
Lnet/minecraft/class_5329;field_25168:Lnet/minecraft/class_1297;
named entity
Lnet/minecraft/world/BlockCollisionSpliterator;entity:Lnet/minecraft/entity/Entity;
-
box
- Mappings:
Namespace Name Mixin selector official b
Lbvz;b:Ldmv;
intermediary field_25169
Lnet/minecraft/class_5329;field_25169:Lnet/minecraft/class_238;
named box
Lnet/minecraft/world/BlockCollisionSpliterator;box:Lnet/minecraft/util/math/Box;
-
context
- Mappings:
Namespace Name Mixin selector official c
Lbvz;c:Ldnf;
intermediary field_25170
Lnet/minecraft/class_5329;field_25170:Lnet/minecraft/class_3726;
named context
Lnet/minecraft/world/BlockCollisionSpliterator;context:Lnet/minecraft/block/ShapeContext;
-
blockIterator
- Mappings:
Namespace Name Mixin selector official d
Lbvz;d:Lgj;
intermediary field_25171
Lnet/minecraft/class_5329;field_25171:Lnet/minecraft/class_3980;
named blockIterator
Lnet/minecraft/world/BlockCollisionSpliterator;blockIterator:Lnet/minecraft/util/CuboidBlockIterator;
-
pos
- Mappings:
Namespace Name Mixin selector official e
Lbvz;e:Lgg$a;
intermediary field_25172
Lnet/minecraft/class_5329;field_25172:Lnet/minecraft/class_2338$class_2339;
named pos
Lnet/minecraft/world/BlockCollisionSpliterator;pos:Lnet/minecraft/util/math/BlockPos$Mutable;
-
boxShape
- Mappings:
Namespace Name Mixin selector official f
Lbvz;f:Ldnt;
intermediary field_25173
Lnet/minecraft/class_5329;field_25173:Lnet/minecraft/class_265;
named boxShape
Lnet/minecraft/world/BlockCollisionSpliterator;boxShape:Lnet/minecraft/util/shape/VoxelShape;
-
world
- Mappings:
Namespace Name Mixin selector official g
Lbvz;g:Lbvy;
intermediary field_25174
Lnet/minecraft/class_5329;field_25174:Lnet/minecraft/class_1941;
named world
Lnet/minecraft/world/BlockCollisionSpliterator;world:Lnet/minecraft/world/CollisionView;
-
checkWorldBorder
private boolean checkWorldBorder- Mappings:
Namespace Name Mixin selector official h
Lbvz;h:Z
intermediary field_25175
Lnet/minecraft/class_5329;field_25175:Z
named checkWorldBorder
Lnet/minecraft/world/BlockCollisionSpliterator;checkWorldBorder:Z
-
blockPredicate
- Mappings:
Namespace Name Mixin selector official i
Lbvz;i:Ljava/util/function/BiPredicate;
intermediary field_25669
Lnet/minecraft/class_5329;field_25669:Ljava/util/function/BiPredicate;
named blockPredicate
Lnet/minecraft/world/BlockCollisionSpliterator;blockPredicate:Ljava/util/function/BiPredicate;
-
-
Constructor Details
-
BlockCollisionSpliterator
- Mappings:
Namespace Name Mixin selector official <init>
Lbvz;<init>(Lbvy;Latf;Ldmv;)V
intermediary <init>
Lnet/minecraft/class_5329;<init>(Lnet/minecraft/class_1941;Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)V
named <init>
Lnet/minecraft/world/BlockCollisionSpliterator;<init>(Lnet/minecraft/world/CollisionView;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)V
-
BlockCollisionSpliterator
public BlockCollisionSpliterator(CollisionView world, @Nullable @Nullable Entity entity, Box box, BiPredicate<BlockState, BlockPos> blockPredicate) - Mappings:
Namespace Name Mixin selector official <init>
Lbvz;<init>(Lbvy;Latf;Ldmv;Ljava/util/function/BiPredicate;)V
intermediary <init>
Lnet/minecraft/class_5329;<init>(Lnet/minecraft/class_1941;Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/BiPredicate;)V
named <init>
Lnet/minecraft/world/BlockCollisionSpliterator;<init>(Lnet/minecraft/world/CollisionView;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/BiPredicate;)V
-
-
Method Details
-
tryAdvance
- Mappings:
Namespace Name Mixin selector official tryAdvance
Lbvz;tryAdvance(Ljava/util/function/Consumer;)Z
intermediary tryAdvance
Lnet/minecraft/class_5329;tryAdvance(Ljava/util/function/Consumer;)Z
named tryAdvance
Lnet/minecraft/world/BlockCollisionSpliterator;tryAdvance(Ljava/util/function/Consumer;)Z
-
offerBlockShape
- Mappings:
Namespace Name Mixin selector official a
Lbvz;a(Ljava/util/function/Consumer;)Z
intermediary method_29285
Lnet/minecraft/class_5329;method_29285(Ljava/util/function/Consumer;)Z
named offerBlockShape
Lnet/minecraft/world/BlockCollisionSpliterator;offerBlockShape(Ljava/util/function/Consumer;)Z
-
getChunk
- Mappings:
Namespace Name Mixin selector official a
Lbvz;a(II)Lbvt;
intermediary method_29283
Lnet/minecraft/class_5329;method_29283(II)Lnet/minecraft/class_1922;
named getChunk
Lnet/minecraft/world/BlockCollisionSpliterator;getChunk(II)Lnet/minecraft/world/BlockView;
-
offerWorldBorderShape
- Mappings:
Namespace Name Mixin selector official b
Lbvz;b(Ljava/util/function/Consumer;)Z
intermediary method_29286
Lnet/minecraft/class_5329;method_29286(Ljava/util/function/Consumer;)Z
named offerWorldBorderShape
Lnet/minecraft/world/BlockCollisionSpliterator;offerWorldBorderShape(Ljava/util/function/Consumer;)Z
-
collidesSlightlyLarger
Returns whether the world border collides with the slightly expanded entity bounding box.- Returns:
- whether the world border collides with the slightly expanded entity bounding box
- Mappings:
Namespace Name Mixin selector official a
Lbvz;a(Ldnt;Ldmv;)Z
intermediary method_30130
Lnet/minecraft/class_5329;method_30130(Lnet/minecraft/class_265;Lnet/minecraft/class_238;)Z
named collidesSlightlyLarger
Lnet/minecraft/world/BlockCollisionSpliterator;collidesSlightlyLarger(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Box;)Z
-
collidesSlightlySmaller
Returns whether the world border collides with the slightly shrinked entity bounding box.- Returns:
- whether the world border collides with the slightly shrinked entity bounding box
- Mappings:
Namespace Name Mixin selector official b
Lbvz;b(Ldnt;Ldmv;)Z
intermediary method_30131
Lnet/minecraft/class_5329;method_30131(Lnet/minecraft/class_265;Lnet/minecraft/class_238;)Z
named collidesSlightlySmaller
Lnet/minecraft/world/BlockCollisionSpliterator;collidesSlightlySmaller(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Box;)Z
-
isIn
- Mappings:
Namespace Name Mixin selector official a
Lbvz;a(Lcmi;Ldmv;)Z
intermediary method_29284
Lnet/minecraft/class_5329;method_29284(Lnet/minecraft/class_2784;Lnet/minecraft/class_238;)Z
named isIn
Lnet/minecraft/world/BlockCollisionSpliterator;isIn(Lnet/minecraft/world/border/WorldBorder;Lnet/minecraft/util/math/Box;)Z
-