Package net.minecraft.world.chunk
Class ChunkCache
java.lang.Object
net.minecraft.world.chunk.ChunkCache
- All Implemented Interfaces:
BlockView,CollisionView,HeightLimitView
- Mappings:
Namespace Name named net/minecraft/world/chunk/ChunkCacheintermediary net/minecraft/class_1950official dgw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Chunk[][]protected booleanprotected final intprotected final intprivate final Supplier<RegistryEntry<Biome>> protected final WorldFields inherited from interface net.minecraft.world.BlockView
field_54147 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.getBlockState(BlockPos pos) Returns the block state atpos.intReturns the bottom Y level, or height, inclusive, of this view.private ChunkgetChunk(int chunkX, int chunkZ) private ChunkgetChunkAsView(int chunkX, int chunkZ) getEntityCollisions(@Nullable Entity entity, Box box) getFluidState(BlockPos pos) Returns the fluid state atpos.intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getDismountHeight, getDismountHeight, getLuminance, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getBlockOrFluidCollisions, getCollisions, getCollisionsIncludingWorldBorder, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopYInclusive, isInHeightLimit, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Field Details
-
minX
protected final int minX- Mappings:
Namespace Name Mixin selector named minXLnet/minecraft/world/chunk/ChunkCache;minX:Iintermediary field_9304Lnet/minecraft/class_1950;field_9304:Iofficial aLdgw;a:I
-
minZ
protected final int minZ- Mappings:
Namespace Name Mixin selector named minZLnet/minecraft/world/chunk/ChunkCache;minZ:Iintermediary field_9303Lnet/minecraft/class_1950;field_9303:Iofficial bLdgw;b:I
-
chunks
- Mappings:
Namespace Name Mixin selector named chunksLnet/minecraft/world/chunk/ChunkCache;chunks:[[Lnet/minecraft/world/chunk/Chunk;intermediary field_9305Lnet/minecraft/class_1950;field_9305:[[Lnet/minecraft/class_2791;official cLdgw;c:[[Ldyt;
-
empty
protected boolean empty- Mappings:
Namespace Name Mixin selector named emptyLnet/minecraft/world/chunk/ChunkCache;empty:Zintermediary field_9302Lnet/minecraft/class_1950;field_9302:Zofficial dLdgw;d:Z
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/world/chunk/ChunkCache;world:Lnet/minecraft/world/World;intermediary field_9306Lnet/minecraft/class_1950;field_9306:Lnet/minecraft/class_1937;official eLdgw;e:Ldgj;
-
plainsEntryGetter
- Mappings:
Namespace Name Mixin selector named plainsEntryGetterLnet/minecraft/world/chunk/ChunkCache;plainsEntryGetter:Ljava/util/function/Supplier;intermediary field_36403Lnet/minecraft/class_1950;field_36403:Ljava/util/function/Supplier;official fLdgw;f:Ljava/util/function/Supplier;
-
-
Constructor Details
-
ChunkCache
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/chunk/ChunkCache;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Vintermediary <init>Lnet/minecraft/class_1950;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Vofficial <init>Ldgw;<init>(Ldgj;Lji;Lji;)V
-
-
Method Details
-
getChunk
- Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/world/chunk/ChunkCache;getChunk(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/Chunk;intermediary method_22354Lnet/minecraft/class_1950;method_22354(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2791;official dLdgw;d(Lji;)Ldyt;
-
getChunk
- Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/world/chunk/ChunkCache;getChunk(II)Lnet/minecraft/world/chunk/Chunk;intermediary method_22353Lnet/minecraft/class_1950;method_22353(II)Lnet/minecraft/class_2791;official aLdgw;a(II)Ldyt;
-
getWorldBorder
- Specified by:
getWorldBorderin interfaceCollisionView- Mappings:
Namespace Name Mixin selector named getWorldBorderLnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;intermediary method_8621Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;official F_Ldfs;F_()Ldyo;
-
getChunkAsView
- Specified by:
getChunkAsViewin interfaceCollisionView- Mappings:
Namespace Name Mixin selector named getChunkAsViewLnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;intermediary method_22338Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;official cLdfs;c(II)Ldfo;
-
getEntityCollisions
- Specified by:
getEntityCollisionsin interfaceCollisionView- Mappings:
Namespace Name Mixin selector named getEntityCollisionsLnet/minecraft/world/CollisionView;getEntityCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/List;intermediary method_20743Lnet/minecraft/class_1941;method_20743(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/List;official cLdfs;c(Lbum;Lfaw;)Ljava/util/List;
-
getBlockEntity
Returns the block entity atpos, ornullif there is none.- Specified by:
getBlockEntityin interfaceBlockView- Returns:
- the block entity at
pos, ornullif there is none - Mappings:
Namespace Name Mixin selector named getBlockEntityLnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;intermediary method_8321Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;official c_Ldfo;c_(Lji;)Ldua;
-
getBlockState
Returns the block state atpos.- Specified by:
getBlockStatein interfaceBlockView- Returns:
- the block state at
pos - Implementation Note:
- This returns the block state for
Blocks.VOID_AIRif the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getBlockStateLnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;intermediary method_8320Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;official a_Ldfo;a_(Lji;)Ldwy;
-
getFluidState
Returns the fluid state atpos.- Specified by:
getFluidStatein interfaceBlockView- Returns:
- the fluid state at
pos - Implementation Note:
- This returns the fluid state for
Fluids.EMPTYif the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getFluidStateLnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;intermediary method_8316Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;official b_Ldfo;b_(Lji;)Leta;
-
getBottomY
public int getBottomY()Returns the bottom Y level, or height, inclusive, of this view.- Specified by:
getBottomYin interfaceHeightLimitView- See Also:
- Mappings:
Namespace Name Mixin selector named getBottomYLnet/minecraft/world/HeightLimitView;getBottomY()Iintermediary method_31607Lnet/minecraft/class_5539;method_31607()Iofficial L_Ldgl;L_()I
-
getHeight
public int getHeight()Returns the difference in the minimum and maximum height.This is the number of blocks that can be modified in any vertical column within the view, or the vertical size, in blocks, of the view.
- Specified by:
getHeightin interfaceHeightLimitView- Returns:
- the difference in the minimum and maximum height
- See Also:
- Mappings:
Namespace Name Mixin selector named getHeightLnet/minecraft/world/HeightLimitView;getHeight()Iintermediary method_31605Lnet/minecraft/class_5539;method_31605()Iofficial M_Ldgl;M_()I
-