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 buh
intermediary net/minecraft/class_1950
named net/minecraft/world/chunk/ChunkCache
  • Field Details

    • minX

      protected final int minX
      Mappings:
      Namespace Name Mixin selector
      official a Lbuh;a:I
      intermediary field_9304 Lnet/minecraft/class_1950;field_9304:I
      named minX Lnet/minecraft/world/chunk/ChunkCache;minX:I
    • minZ

      protected final int minZ
      Mappings:
      Namespace Name Mixin selector
      official b Lbuh;b:I
      intermediary field_9303 Lnet/minecraft/class_1950;field_9303:I
      named minZ Lnet/minecraft/world/chunk/ChunkCache;minZ:I
    • chunks

      protected final Chunk[][] chunks
      Mappings:
      Namespace Name Mixin selector
      official c Lbuh;c:[[Lcjl;
      intermediary field_9305 Lnet/minecraft/class_1950;field_9305:[[Lnet/minecraft/class_2791;
      named chunks Lnet/minecraft/world/chunk/ChunkCache;chunks:[[Lnet/minecraft/world/chunk/Chunk;
    • empty

      protected boolean empty
      Mappings:
      Namespace Name Mixin selector
      official d Lbuh;d:Z
      intermediary field_9302 Lnet/minecraft/class_1950;field_9302:Z
      named empty Lnet/minecraft/world/chunk/ChunkCache;empty:Z
    • world

      protected final World world
      Mappings:
      Namespace Name Mixin selector
      official e Lbuh;e:Lbtv;
      intermediary field_9306 Lnet/minecraft/class_1950;field_9306:Lnet/minecraft/class_1937;
      named world Lnet/minecraft/world/chunk/ChunkCache;world:Lnet/minecraft/world/World;
  • Constructor Details

    • ChunkCache

      public ChunkCache​(World world, BlockPos minPos, BlockPos maxPos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbuh;<init>(Lbtv;Lfx;Lfx;)V
      intermediary <init> Lnet/minecraft/class_1950;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)V
      named <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

      private Chunk getChunk​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official d Lbuh;d(Lfx;)Lcjl;
      intermediary method_22354 Lnet/minecraft/class_1950;method_22354(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2791;
      named getChunk Lnet/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 a Lbuh;a(II)Lcjl;
      intermediary method_22353 Lnet/minecraft/class_1950;method_22353(II)Lnet/minecraft/class_2791;
      named getChunk Lnet/minecraft/world/chunk/ChunkCache;getChunk(II)Lnet/minecraft/world/chunk/Chunk;
    • getWorldBorder

      public WorldBorder getWorldBorder()
      Specified by:
      getWorldBorder in interface CollisionView
      Mappings:
      Namespace Name Mixin selector
      official e Lbte;e()Lcjj;
      intermediary method_8621 Lnet/minecraft/class_1941;method_8621()Lnet/minecraft/class_2784;
      named getWorldBorder Lnet/minecraft/world/CollisionView;getWorldBorder()Lnet/minecraft/world/border/WorldBorder;
    • getChunkAsView

      public BlockView getChunkAsView​(int chunkX, int chunkZ)
      Specified by:
      getChunkAsView in interface CollisionView
      Mappings:
      Namespace Name Mixin selector
      official c Lbte;c(II)Lbsz;
      intermediary method_22338 Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;
      named getChunkAsView Lnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;
    • getBlockEntity

      @Nullable public BlockEntity getBlockEntity​(BlockPos pos)
      Specified by:
      getBlockEntity in interface BlockView
      Mappings:
      Namespace Name Mixin selector
      official c Lbsz;c(Lfx;)Lcfr;
      intermediary method_8321 Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
      named getBlockEntity Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
    • getBlockState

      public BlockState getBlockState​(BlockPos pos)
      Specified by:
      getBlockState in interface BlockView
      Mappings:
      Namespace Name Mixin selector
      official d_ Lbsz;d_(Lfx;)Lcht;
      intermediary method_8320 Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getBlockState Lnet/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:
      getEntityCollisions in interface CollisionView
      Mappings:
      Namespace Name Mixin selector
      official c Lbte;c(Laqv;Ldip;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
      intermediary method_20743 Lnet/minecraft/class_1941;method_20743(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
      named getEntityCollisions Lnet/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:
      getCollisions in interface CollisionView
      Mappings:
      Namespace Name Mixin selector
      official d Lbte;d(Laqv;Ldip;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
      intermediary method_8600 Lnet/minecraft/class_1941;method_8600(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
      named getCollisions Lnet/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)
      Specified by:
      getFluidState in interface BlockView
      Mappings:
      Namespace Name Mixin selector
      official b Lbsz;b(Lfx;)Ldal;
      intermediary method_8316 Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
      named getFluidState Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
    • getBottomSectionLimit

      public int getBottomSectionLimit()
      Specified by:
      getBottomSectionLimit in interface HeightLimitView
      Mappings:
      Namespace Name Mixin selector
      official w_ Lbtx;w_()I
      intermediary method_31607 Lnet/minecraft/class_5539;method_31607()I
      named getBottomSectionLimit Lnet/minecraft/world/HeightLimitView;getBottomSectionLimit()I
    • getSectionCount

      public int getSectionCount()
      Specified by:
      getSectionCount in interface HeightLimitView
      Mappings:
      Namespace Name Mixin selector
      official m Lbtx;m()I
      intermediary method_31605 Lnet/minecraft/class_5539;method_31605()I
      named getSectionCount Lnet/minecraft/world/HeightLimitView;getSectionCount()I