类 ChunkCache
- java.lang.Object
-
- net.minecraft.world.chunk.ChunkCache
-
- 所有已实现的接口:
BlockView,CollisionView,HeightLimitView
public class ChunkCache extends Object implements BlockView, CollisionView
- Mappings:
Namespace Name official bwdintermediary net/minecraft/class_1950named net/minecraft/world/chunk/ChunkCache
-
-
构造器概要
构造器 构造器 说明 ChunkCache(World world, BlockPos minPos, BlockPos maxPos)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 @Nullable BlockEntitygetBlockEntity(BlockPos pos)BlockStategetBlockState(BlockPos pos)intgetBottomY()Returns the bottom Y level, or height, inclusive, of this view.private ChunkgetChunk(int chunkX, int chunkZ)private ChunkgetChunk(BlockPos pos)BlockViewgetChunkAsView(int chunkX, int chunkZ)Stream<VoxelShape>getCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)Stream<VoxelShape>getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)FluidStategetFluidState(BlockPos pos)intgetHeight()WorldBordergetWorldBorder()-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.world.BlockView
getBlockEntity, getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
-
从接口继承的方法 net.minecraft.world.CollisionView
canPlace, getBlockCollisions, getBlockCollisions, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, method_33594
-
从接口继承的方法 net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
-
-
-
字段详细资料
-
minX
protected final int minX
- Mappings:
Namespace Name Mixin selector official aLbwd;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 bLbwd;b:Iintermediary field_9303Lnet/minecraft/class_1950;field_9303:Inamed minZLnet/minecraft/world/chunk/ChunkCache;minZ:I
-
chunks
protected final Chunk[][] chunks
- Mappings:
Namespace Name Mixin selector official cLbwd;c:[[Lclk;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 dLbwd;d:Zintermediary field_9302Lnet/minecraft/class_1950;field_9302:Znamed emptyLnet/minecraft/world/chunk/ChunkCache;empty:Z
-
world
protected final World world
- Mappings:
Namespace Name Mixin selector official eLbwd;e:Lbvr;intermediary field_9306Lnet/minecraft/class_1950;field_9306:Lnet/minecraft/class_1937;named worldLnet/minecraft/world/chunk/ChunkCache;world:Lnet/minecraft/world/World;
-
-
构造器详细资料
-
ChunkCache
public ChunkCache(World world, BlockPos minPos, BlockPos maxPos)
- Mappings:
Namespace Name Mixin selector official <init>Lbwd;<init>(Lbvr;Lgb;Lgb;)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
-
-
方法详细资料
-
getChunk
private Chunk getChunk(BlockPos pos)
- Mappings:
Namespace Name Mixin selector official dLbwd;d(Lgb;)Lclk;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
private Chunk getChunk(int chunkX, int chunkZ)
- Mappings:
Namespace Name Mixin selector official aLbwd;a(II)Lclk;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
public WorldBorder getWorldBorder()
- 指定者:
getWorldBorder在接口中CollisionView- Mappings:
Namespace Name Mixin selector official eLbva;e()Lclh;intermediary method_8621Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;named getWorldBorderLnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;
-
getChunkAsView
public BlockView getChunkAsView(int chunkX, int chunkZ)
- 指定者:
getChunkAsView在接口中CollisionView- Mappings:
Namespace Name Mixin selector official cLbva;c(II)Lbuv;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
@Nullable public @Nullable BlockEntity getBlockEntity(BlockPos pos)
- 指定者:
getBlockEntity在接口中BlockView- Mappings:
Namespace Name Mixin selector official cLbuv;c(Lgb;)Lchp;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
public BlockState getBlockState(BlockPos pos)
- 指定者:
getBlockState在接口中BlockView- Mappings:
Namespace Name Mixin selector official d_Lbuv;d_(Lgb;)Lcjr;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 @Nullable Entity entity, Box box, Predicate<Entity> predicate)
- 指定者:
getEntityCollisions在接口中CollisionView- Mappings:
Namespace Name Mixin selector official cLbva;c(Lasl;Ldlv;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 @Nullable Entity entity, Box box, Predicate<Entity> predicate)
- 指定者:
getCollisions在接口中CollisionView- Mappings:
Namespace Name Mixin selector official dLbva;d(Lasl;Ldlv;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
public FluidState getFluidState(BlockPos pos)
- 指定者:
getFluidState在接口中BlockView- Mappings:
Namespace Name Mixin selector official bLbuv;b(Lgb;)Ldds;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;
-
getBottomY
public int getBottomY()
Returns the bottom Y level, or height, inclusive, of this view.- 指定者:
getBottomY在接口中HeightLimitView- 另请参阅:
HeightLimitView.getTopY(),HeightLimitView.getHeight()- Mappings:
Namespace Name Mixin selector official v_Lbvt;v_()Iintermediary method_31607Lnet/minecraft/class_5539;method_31607()Inamed getBottomYLnet/minecraft/world/HeightLimitView;getBottomY()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.
- 指定者:
getHeight在接口中HeightLimitView- 返回:
- the difference in the minimum and maximum height
- 另请参阅:
HeightLimitView.getBottomY(),HeightLimitView.getTopY()- Mappings:
Namespace Name Mixin selector official mLbvt;m()Iintermediary method_31605Lnet/minecraft/class_5539;method_31605()Inamed getHeightLnet/minecraft/world/HeightLimitView;getHeight()I
-
-