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/ChunkCache
intermediary net/minecraft/class_1950
official dhu
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Chunk[][]
protected boolean
protected final int
protected final int
private final Supplier
<RegistryEntry<Biome>> protected final World
Fields inherited from interface net.minecraft.world.BlockView
field_54147
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBlockEntity
(BlockPos pos) Returns the block entity atpos
, ornull
if there is none.getBlockState
(BlockPos pos) Returns the block state atpos
.int
Returns the bottom Y level, or height, inclusive, of this view.private Chunk
getChunk
(int chunkX, int chunkZ) private Chunk
getChunkAsView
(int chunkX, int chunkZ) getEntityCollisions
(@Nullable Entity entity, Box box) getFluidState
(BlockPos pos) Returns the fluid state atpos
.int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getDismountHeight, getDismountHeight, getLuminance, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getBlockOrFluidCollisions, getCollisions, getCollisionsIncludingWorldBorder, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
Methods 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 minX
Lnet/minecraft/world/chunk/ChunkCache;minX:I
intermediary field_9304
Lnet/minecraft/class_1950;field_9304:I
official a
Ldhu;a:I
-
minZ
protected final int minZ- Mappings:
Namespace Name Mixin selector named minZ
Lnet/minecraft/world/chunk/ChunkCache;minZ:I
intermediary field_9303
Lnet/minecraft/class_1950;field_9303:I
official b
Ldhu;b:I
-
chunks
- Mappings:
Namespace Name Mixin selector named chunks
Lnet/minecraft/world/chunk/ChunkCache;chunks:[[Lnet/minecraft/world/chunk/Chunk;
intermediary field_9305
Lnet/minecraft/class_1950;field_9305:[[Lnet/minecraft/class_2791;
official c
Ldhu;c:[[Ldzp;
-
empty
protected boolean empty- Mappings:
Namespace Name Mixin selector named empty
Lnet/minecraft/world/chunk/ChunkCache;empty:Z
intermediary field_9302
Lnet/minecraft/class_1950;field_9302:Z
official d
Ldhu;d:Z
-
world
- Mappings:
Namespace Name Mixin selector named world
Lnet/minecraft/world/chunk/ChunkCache;world:Lnet/minecraft/world/World;
intermediary field_9306
Lnet/minecraft/class_1950;field_9306:Lnet/minecraft/class_1937;
official e
Ldhu;e:Ldhh;
-
plainsEntryGetter
- Mappings:
Namespace Name Mixin selector named plainsEntryGetter
Lnet/minecraft/world/chunk/ChunkCache;plainsEntryGetter:Ljava/util/function/Supplier;
intermediary field_36403
Lnet/minecraft/class_1950;field_36403:Ljava/util/function/Supplier;
official f
Ldhu;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;)V
intermediary <init>
Lnet/minecraft/class_1950;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)V
official <init>
Ldhu;<init>(Ldhh;Ljh;Ljh;)V
-
-
Method Details
-
getChunk
- Mappings:
Namespace Name Mixin selector named getChunk
Lnet/minecraft/world/chunk/ChunkCache;getChunk(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/Chunk;
intermediary method_22354
Lnet/minecraft/class_1950;method_22354(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2791;
official d
Ldhu;d(Ljh;)Ldzp;
-
getChunk
- Mappings:
Namespace Name Mixin selector named getChunk
Lnet/minecraft/world/chunk/ChunkCache;getChunk(II)Lnet/minecraft/world/chunk/Chunk;
intermediary method_22353
Lnet/minecraft/class_1950;method_22353(II)Lnet/minecraft/class_2791;
official a
Ldhu;a(II)Ldzp;
-
getWorldBorder
- Specified by:
getWorldBorder
in interfaceCollisionView
- Mappings:
Namespace Name Mixin selector named getWorldBorder
Lnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;
intermediary method_8621
Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;
official F_
Ldgq;F_()Ldzk;
-
getChunkAsView
- Specified by:
getChunkAsView
in interfaceCollisionView
- Mappings:
Namespace Name Mixin selector named getChunkAsView
Lnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;
intermediary method_22338
Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;
official c
Ldgq;c(II)Ldgm;
-
getEntityCollisions
- Specified by:
getEntityCollisions
in interfaceCollisionView
- Mappings:
Namespace Name Mixin selector named getEntityCollisions
Lnet/minecraft/world/CollisionView;getEntityCollisions(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Ljava/util/List;
intermediary method_20743
Lnet/minecraft/class_1941;method_20743(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/List;
official c
Ldgq;c(Lbvj;Lfbs;)Ljava/util/List;
-
getBlockEntity
Returns the block entity atpos
, ornull
if there is none.- Specified by:
getBlockEntity
in interfaceBlockView
- Returns:
- the block entity at
pos
, ornull
if there is none - Mappings:
Namespace Name Mixin selector named getBlockEntity
Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
intermediary method_8321
Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
official c_
Ldgm;c_(Ljh;)Lduw;
-
getBlockState
Returns the block state atpos
.- Specified by:
getBlockState
in interfaceBlockView
- Returns:
- the block state at
pos
- Implementation Note:
- This returns the block state for
Blocks.VOID_AIR
if the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getBlockState
Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
intermediary method_8320
Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
official a_
Ldgm;a_(Ljh;)Ldxu;
-
getFluidState
Returns the fluid state atpos
.- Specified by:
getFluidState
in interfaceBlockView
- Returns:
- the fluid state at
pos
- Implementation Note:
- This returns the fluid state for
Fluids.EMPTY
if the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getFluidState
Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
intermediary method_8316
Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
official b_
Ldgm;b_(Ljh;)Letw;
-
getBottomY
public int getBottomY()Returns the bottom Y level, or height, inclusive, of this view.- Specified by:
getBottomY
in interfaceHeightLimitView
- See Also:
- Mappings:
Namespace Name Mixin selector named getBottomY
Lnet/minecraft/world/HeightLimitView;getBottomY()I
intermediary method_31607
Lnet/minecraft/class_5539;method_31607()I
official L_
Ldhj;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:
getHeight
in interfaceHeightLimitView
- Returns:
- the difference in the minimum and maximum height
- See Also:
- Mappings:
Namespace Name Mixin selector named getHeight
Lnet/minecraft/world/HeightLimitView;getHeight()I
intermediary method_31605
Lnet/minecraft/class_5539;method_31605()I
official M_
Ldhj;M_()I
-