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 bykintermediary net/minecraft/class_5329named 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
FieldsModifier and TypeFieldDescriptionprivate final CuboidBlockIteratorprivate final BiPredicate<BlockState,BlockPos> private final Boxprivate final VoxelShapeprivate booleanprivate final ShapeContextprivate longprivate final BlockPos.Mutableprivate final CollisionViewFields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
ConstructorsConstructorDescriptionBlockCollisionSpliterator(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 booleancollidesSlightlyLarger(VoxelShape worldBorderShape, Box entityBox) Returns whether the world border collides with the slightly expanded entity bounding box.private static booleancollidesSlightlySmaller(VoxelShape worldBorderShape, Box entityBox) Returns whether the world border collides with the slightly shrinked entity bounding box.getChunk(int x, int z) static booleanisIn(WorldBorder border, Box box) (package private) booleanofferBlockShape(Consumer<? super VoxelShape> action) (package private) booleanofferWorldBorderShape(Consumer<? super VoxelShape> action) booleantryAdvance(Consumer<? super VoxelShape> action) Methods inherited from class java.util.Spliterators.AbstractSpliterator
characteristics, estimateSize, trySplitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Spliterator
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
entity
- Mappings:
Namespace Name Mixin selector official aLbyk;a:Lavp;intermediary field_25168Lnet/minecraft/class_5329;field_25168:Lnet/minecraft/class_1297;named entityLnet/minecraft/world/BlockCollisionSpliterator;entity:Lnet/minecraft/entity/Entity;
-
box
- Mappings:
Namespace Name Mixin selector official bLbyk;b:Ldns;intermediary field_25169Lnet/minecraft/class_5329;field_25169:Lnet/minecraft/class_238;named boxLnet/minecraft/world/BlockCollisionSpliterator;box:Lnet/minecraft/util/math/Box;
-
context
- Mappings:
Namespace Name Mixin selector official cLbyk;c:Ldoc;intermediary field_25170Lnet/minecraft/class_5329;field_25170:Lnet/minecraft/class_3726;named contextLnet/minecraft/world/BlockCollisionSpliterator;context:Lnet/minecraft/block/ShapeContext;
-
blockIterator
- Mappings:
Namespace Name Mixin selector official dLbyk;d:Lgk;intermediary field_25171Lnet/minecraft/class_5329;field_25171:Lnet/minecraft/class_3980;named blockIteratorLnet/minecraft/world/BlockCollisionSpliterator;blockIterator:Lnet/minecraft/util/CuboidBlockIterator;
-
pos
- Mappings:
Namespace Name Mixin selector official eLbyk;e:Lgh$a;intermediary field_25172Lnet/minecraft/class_5329;field_25172:Lnet/minecraft/class_2338$class_2339;named posLnet/minecraft/world/BlockCollisionSpliterator;pos:Lnet/minecraft/util/math/BlockPos$Mutable;
-
boxShape
- Mappings:
Namespace Name Mixin selector official fLbyk;f:Ldoq;intermediary field_25173Lnet/minecraft/class_5329;field_25173:Lnet/minecraft/class_265;named boxShapeLnet/minecraft/world/BlockCollisionSpliterator;boxShape:Lnet/minecraft/util/shape/VoxelShape;
-
world
- Mappings:
Namespace Name Mixin selector official gLbyk;g:Lbyj;intermediary field_25174Lnet/minecraft/class_5329;field_25174:Lnet/minecraft/class_1941;named worldLnet/minecraft/world/BlockCollisionSpliterator;world:Lnet/minecraft/world/CollisionView;
-
checkWorldBorder
private boolean checkWorldBorder- Mappings:
Namespace Name Mixin selector official hLbyk;h:Zintermediary field_25175Lnet/minecraft/class_5329;field_25175:Znamed checkWorldBorderLnet/minecraft/world/BlockCollisionSpliterator;checkWorldBorder:Z
-
blockPredicate
- Mappings:
Namespace Name Mixin selector official iLbyk;i:Ljava/util/function/BiPredicate;intermediary field_25669Lnet/minecraft/class_5329;field_25669:Ljava/util/function/BiPredicate;named blockPredicateLnet/minecraft/world/BlockCollisionSpliterator;blockPredicate:Ljava/util/function/BiPredicate;
-
field_35108
- Mappings:
Namespace Name Mixin selector official jLbyk;j:Lbye;intermediary field_35108Lnet/minecraft/class_5329;field_35108:Lnet/minecraft/class_1922;named field_35108Lnet/minecraft/world/BlockCollisionSpliterator;field_35108:Lnet/minecraft/world/BlockView;
-
field_35109
private long field_35109- Mappings:
Namespace Name Mixin selector official kLbyk;k:Jintermediary field_35109Lnet/minecraft/class_5329;field_35109:Jnamed field_35109Lnet/minecraft/world/BlockCollisionSpliterator;field_35109:J
-
-
Constructor Details
-
BlockCollisionSpliterator
- Mappings:
Namespace Name Mixin selector official <init>Lbyk;<init>(Lbyj;Lavp;Ldns;)Vintermediary <init>Lnet/minecraft/class_5329;<init>(Lnet/minecraft/class_1941;Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Vnamed <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>Lbyk;<init>(Lbyj;Lavp;Ldns;Ljava/util/function/BiPredicate;)Vintermediary <init>Lnet/minecraft/class_5329;<init>(Lnet/minecraft/class_1941;Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/BiPredicate;)Vnamed <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 tryAdvanceLbyk;tryAdvance(Ljava/util/function/Consumer;)Zintermediary tryAdvanceLnet/minecraft/class_5329;tryAdvance(Ljava/util/function/Consumer;)Znamed tryAdvanceLnet/minecraft/world/BlockCollisionSpliterator;tryAdvance(Ljava/util/function/Consumer;)Z
-
offerBlockShape
- Mappings:
Namespace Name Mixin selector official aLbyk;a(Ljava/util/function/Consumer;)Zintermediary method_29285Lnet/minecraft/class_5329;method_29285(Ljava/util/function/Consumer;)Znamed offerBlockShapeLnet/minecraft/world/BlockCollisionSpliterator;offerBlockShape(Ljava/util/function/Consumer;)Z
-
getChunk
- Mappings:
Namespace Name Mixin selector official aLbyk;a(II)Lbye;intermediary method_29283Lnet/minecraft/class_5329;method_29283(II)Lnet/minecraft/class_1922;named getChunkLnet/minecraft/world/BlockCollisionSpliterator;getChunk(II)Lnet/minecraft/world/BlockView;
-
offerWorldBorderShape
- Mappings:
Namespace Name Mixin selector official bLbyk;b(Ljava/util/function/Consumer;)Zintermediary method_29286Lnet/minecraft/class_5329;method_29286(Ljava/util/function/Consumer;)Znamed offerWorldBorderShapeLnet/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 aLbyk;a(Ldoq;Ldns;)Zintermediary method_30130Lnet/minecraft/class_5329;method_30130(Lnet/minecraft/class_265;Lnet/minecraft/class_238;)Znamed collidesSlightlyLargerLnet/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 bLbyk;b(Ldoq;Ldns;)Zintermediary method_30131Lnet/minecraft/class_5329;method_30131(Lnet/minecraft/class_265;Lnet/minecraft/class_238;)Znamed collidesSlightlySmallerLnet/minecraft/world/BlockCollisionSpliterator;collidesSlightlySmaller(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Box;)Z
-
isIn
- Mappings:
Namespace Name Mixin selector official aLbyk;a(Lcou;Ldns;)Zintermediary method_29284Lnet/minecraft/class_5329;method_29284(Lnet/minecraft/class_2784;Lnet/minecraft/class_238;)Znamed isInLnet/minecraft/world/BlockCollisionSpliterator;isIn(Lnet/minecraft/world/border/WorldBorder;Lnet/minecraft/util/math/Box;)Z
-