Package net.minecraft.world.chunk
Class ChunkCache
java.lang.Object
net.minecraft.world.chunk.ChunkCache
- All Implemented Interfaces:
BlockView,CollisionView,HeightLimitView
public class ChunkCache extends Object implements BlockView, CollisionView
- Mappings:
Namespace Name official bugintermediary net/minecraft/class_1950named net/minecraft/world/chunk/ChunkCache
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ChunkCache(World world, BlockPos minPos, BlockPos maxPos) -
Method Summary
Modifier and Type Method Description BlockEntitygetBlockEntity(BlockPos pos)BlockStategetBlockState(BlockPos pos)intgetBottomSectionLimit()private ChunkgetChunk(int chunkX, int chunkZ)private ChunkgetChunk(BlockPos pos)BlockViewgetChunkAsView(int chunkX, int chunkZ)Stream<VoxelShape>getCollisions(Entity entity, Box box, Predicate<Entity> predicate)Stream<VoxelShape>getEntityCollisions(Entity entity, Box box, Predicate<Entity> predicate)FluidStategetFluidState(BlockPos pos)intgetSectionCount()WorldBordergetWorldBorder()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canPlace, getBlockCollisions, getBlockCollisions, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods inherited from interface net.minecraft.world.HeightLimitView
getMinimumSection, getSection, getSectionIndex, getSectionIndexFromSection, getSections, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimit
-
Field Details
-
minX
protected final int minX- Mappings:
Namespace Name Mixin selector official aLbug;a:Iintermediary field_9304Lnet/minecraft/class_1950;field_9304:Inamed minXLnet/minecraft/world/chunk/ChunkCache;minX:I
-
minZ
protected final int minZ- Mappings:
Namespace Name Mixin selector official bLbug;b:Iintermediary field_9303Lnet/minecraft/class_1950;field_9303:Inamed minZLnet/minecraft/world/chunk/ChunkCache;minZ:I
-
chunks
- Mappings:
Namespace Name Mixin selector official cLbug;c:[[Lcix;intermediary field_9305Lnet/minecraft/class_1950;field_9305:[[Lnet/minecraft/class_2791;named chunksLnet/minecraft/world/chunk/ChunkCache;chunks:[[Lnet/minecraft/world/chunk/Chunk;
-
empty
protected boolean empty- Mappings:
Namespace Name Mixin selector official dLbug;d:Zintermediary field_9302Lnet/minecraft/class_1950;field_9302:Znamed emptyLnet/minecraft/world/chunk/ChunkCache;empty:Z
-
world
- Mappings:
Namespace Name Mixin selector official eLbug;e:Lbtu;intermediary field_9306Lnet/minecraft/class_1950;field_9306:Lnet/minecraft/class_1937;named worldLnet/minecraft/world/chunk/ChunkCache;world:Lnet/minecraft/world/World;
-
-
Constructor Details
-
ChunkCache
- Mappings:
Namespace Name Mixin selector official <init>Lbug;<init>(Lbtu;Lfx;Lfx;)Vintermediary <init>Lnet/minecraft/class_1950;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Vnamed <init>Lnet/minecraft/world/chunk/ChunkCache;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)V
-
-
Method Details
-
getChunk
- Mappings:
Namespace Name Mixin selector official dLbug;d(Lfx;)Lcix;intermediary method_22354Lnet/minecraft/class_1950;method_22354(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2791;named getChunkLnet/minecraft/world/chunk/ChunkCache;getChunk(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/Chunk;
-
getChunk
- Mappings:
Namespace Name Mixin selector official aLbug;a(II)Lcix;intermediary method_22353Lnet/minecraft/class_1950;method_22353(II)Lnet/minecraft/class_2791;named getChunkLnet/minecraft/world/chunk/ChunkCache;getChunk(II)Lnet/minecraft/world/chunk/Chunk;
-
getWorldBorder
- Specified by:
getWorldBorderin interfaceCollisionView- Mappings:
Namespace Name Mixin selector official t_Lbtd;t_()Lciv;intermediary method_8621Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;named getWorldBorderLnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;
-
getChunkAsView
- Specified by:
getChunkAsViewin interfaceCollisionView- Mappings:
Namespace Name Mixin selector official cLbtd;c(II)Lbsy;intermediary method_22338Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;named getChunkAsViewLnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockView- Mappings:
Namespace Name Mixin selector official cLbsy;c(Lfx;)Lcfe;intermediary method_8321Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;named getBlockEntityLnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
-
getBlockState
- Specified by:
getBlockStatein interfaceBlockView- Mappings:
Namespace Name Mixin selector official d_Lbsy;d_(Lfx;)Lchg;intermediary method_8320Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getEntityCollisions
public Stream<VoxelShape> getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)- Specified by:
getEntityCollisionsin interfaceCollisionView- Mappings:
Namespace Name Mixin selector official cLbtd;c(Laqu;Ldhv;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;intermediary method_20743Lnet/minecraft/class_1941;method_20743(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;named getEntityCollisionsLnet/minecraft/world/CollisionView;getEntityCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
-
getCollisions
public Stream<VoxelShape> getCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)- Specified by:
getCollisionsin interfaceCollisionView- Mappings:
Namespace Name Mixin selector official dLbtd;d(Laqu;Ldhv;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;intermediary method_8600Lnet/minecraft/class_1941;method_8600(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;named getCollisionsLnet/minecraft/world/CollisionView;getCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
-
getFluidState
- Specified by:
getFluidStatein interfaceBlockView- Mappings:
Namespace Name Mixin selector official bLbsy;b(Lfx;)Lczr;intermediary method_8316Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;named getFluidStateLnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
-
getBottomSectionLimit
public int getBottomSectionLimit()- Specified by:
getBottomSectionLimitin interfaceHeightLimitView- Mappings:
Namespace Name Mixin selector official w_Lbtw;w_()Iintermediary method_31607Lnet/minecraft/class_5539;method_31607()Inamed getBottomSectionLimitLnet/minecraft/world/HeightLimitView;getBottomSectionLimit()I
-
getSectionCount
public int getSectionCount()- Specified by:
getSectionCountin interfaceHeightLimitView- Mappings:
Namespace Name Mixin selector official oLbtw;o()Iintermediary method_31605Lnet/minecraft/class_5539;method_31605()Inamed getSectionCountLnet/minecraft/world/HeightLimitView;getSectionCount()I
-