Class WorldChunk

java.lang.Object
net.minecraft.world.chunk.Chunk
net.minecraft.world.chunk.WorldChunk
All Implemented Interfaces:
BiomeAccess.Storage, BlockView, HeightLimitView, StructureHolder
Direct Known Subclasses:
EmptyChunk

public class WorldChunk extends Chunk
Mappings:
Namespace Name
official cot
intermediary net/minecraft/class_2818
named net/minecraft/world/chunk/WorldChunk
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official m Lcot;m:Lorg/apache/logging/log4j/Logger;
      intermediary field_12839 Lnet/minecraft/class_2818;field_12839:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/world/chunk/WorldChunk;LOGGER:Lorg/apache/logging/log4j/Logger;
    • EMPTY_BLOCK_ENTITY_TICKER

      private static final BlockEntityTickInvoker EMPTY_BLOCK_ENTITY_TICKER
      Mappings:
      Namespace Name Mixin selector
      official n Lcot;n:Lcls;
      intermediary field_27221 Lnet/minecraft/class_2818;field_27221:Lnet/minecraft/class_5562;
      named EMPTY_BLOCK_ENTITY_TICKER Lnet/minecraft/world/chunk/WorldChunk;EMPTY_BLOCK_ENTITY_TICKER:Lnet/minecraft/world/chunk/BlockEntityTickInvoker;
    • blockEntityTickers

      private final Map<BlockPos,WorldChunk.WrappedBlockEntityTickInvoker> blockEntityTickers
      Mappings:
      Namespace Name Mixin selector
      official o Lcot;o:Ljava/util/Map;
      intermediary field_27222 Lnet/minecraft/class_2818;field_27222:Ljava/util/Map;
      named blockEntityTickers Lnet/minecraft/world/chunk/WorldChunk;blockEntityTickers:Ljava/util/Map;
    • loadedToWorld

      private boolean loadedToWorld
      Mappings:
      Namespace Name Mixin selector
      official p Lcot;p:Z
      intermediary field_12855 Lnet/minecraft/class_2818;field_12855:Z
      named loadedToWorld Lnet/minecraft/world/chunk/WorldChunk;loadedToWorld:Z
    • world

      final World world
      Mappings:
      Namespace Name Mixin selector
      official q Lcot;q:Lbym;
      intermediary field_12858 Lnet/minecraft/class_2818;field_12858:Lnet/minecraft/class_1937;
      named world Lnet/minecraft/world/chunk/WorldChunk;world:Lnet/minecraft/world/World;
    • levelTypeProvider

      @Nullable private @Nullable Supplier<ChunkHolder.LevelType> levelTypeProvider
      Mappings:
      Namespace Name Mixin selector
      official r Lcot;r:Ljava/util/function/Supplier;
      intermediary field_12856 Lnet/minecraft/class_2818;field_12856:Ljava/util/function/Supplier;
      named levelTypeProvider Lnet/minecraft/world/chunk/WorldChunk;levelTypeProvider:Ljava/util/function/Supplier;
    • loadToWorldConsumer

      @Nullable private @Nullable Consumer<WorldChunk> loadToWorldConsumer
      Mappings:
      Namespace Name Mixin selector
      official s Lcot;s:Ljava/util/function/Consumer;
      intermediary field_12850 Lnet/minecraft/class_2818;field_12850:Ljava/util/function/Consumer;
      named loadToWorldConsumer Lnet/minecraft/world/chunk/WorldChunk;loadToWorldConsumer:Ljava/util/function/Consumer;
    • gameEventDispatchers

      private final Int2ObjectMap<GameEventDispatcher> gameEventDispatchers
      Mappings:
      Namespace Name Mixin selector
      official t Lcot;t:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_28129 Lnet/minecraft/class_2818;field_28129:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      named gameEventDispatchers Lnet/minecraft/world/chunk/WorldChunk;gameEventDispatchers:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
  • Constructor Details

    • WorldChunk

      public WorldChunk(World world, ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcot;<init>(Lbym;Lbxq;)V
      intermediary <init> Lnet/minecraft/class_2818;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1923;)V
      named <init> Lnet/minecraft/world/chunk/WorldChunk;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/ChunkPos;)V
    • WorldChunk

      public WorldChunk(World world, ChunkPos pos, UpgradeData upgradeData, TickScheduler<Block> tickScheduler, TickScheduler<Fluid> blockTickScheduler, long long2, @Nullable @Nullable ChunkSection[] chunkSection, @Nullable @Nullable Consumer<WorldChunk> consumer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcot;<init>(Lbym;Lbxq;Lcpe;Lbzf;Lbzf;J[Lcou;Ljava/util/function/Consumer;)V
      intermediary <init> Lnet/minecraft/class_2818;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1923;Lnet/minecraft/class_2843;Lnet/minecraft/class_1951;Lnet/minecraft/class_1951;J[Lnet/minecraft/class_2826;Ljava/util/function/Consumer;)V
      named <init> Lnet/minecraft/world/chunk/WorldChunk;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/UpgradeData;Lnet/minecraft/world/TickScheduler;Lnet/minecraft/world/TickScheduler;J[Lnet/minecraft/world/chunk/ChunkSection;Ljava/util/function/Consumer;)V
    • WorldChunk

      public WorldChunk(ServerWorld serverWorld, ProtoChunk protoChunk, @Nullable @Nullable Consumer<WorldChunk> consumer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcot;<init>(Laca;Lcpb;Ljava/util/function/Consumer;)V
      intermediary <init> Lnet/minecraft/class_2818;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_2839;Ljava/util/function/Consumer;)V
      named <init> Lnet/minecraft/world/chunk/WorldChunk;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/ProtoChunk;Ljava/util/function/Consumer;)V
  • Method Details

    • getGameEventDispatcher

      public GameEventDispatcher getGameEventDispatcher(int ySectionCoord)
      Overrides:
      getGameEventDispatcher in class Chunk
      Mappings:
      Namespace Name Mixin selector
      official a Lcoi;a(I)Lcqs;
      intermediary method_32914 Lnet/minecraft/class_2791;method_32914(I)Lnet/minecraft/class_5713;
      named getGameEventDispatcher Lnet/minecraft/world/chunk/Chunk;getGameEventDispatcher(I)Lnet/minecraft/world/event/listener/GameEventDispatcher;
    • getBlockState

      public BlockState getBlockState(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbxp;a_(Lgh;)Lcmo;
      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;
    • getFluidState

      public FluidState getFluidState(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b_ Lbxp;b_(Lgh;)Ldhk;
      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;
    • getFluidState

      public FluidState getFluidState(int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lcot;a(III)Ldhk;
      intermediary method_12234 Lnet/minecraft/class_2818;method_12234(III)Lnet/minecraft/class_3610;
      named getFluidState Lnet/minecraft/world/chunk/WorldChunk;getFluidState(III)Lnet/minecraft/fluid/FluidState;
    • setBlockState

      @Nullable public @Nullable BlockState setBlockState(BlockPos pos, BlockState state, boolean moved)
      Specified by:
      setBlockState in class Chunk
      Mappings:
      Namespace Name Mixin selector
      official a Lcoi;a(Lgh;Lcmo;Z)Lcmo;
      intermediary method_12010 Lnet/minecraft/class_2791;method_12010(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Lnet/minecraft/class_2680;
      named setBlockState Lnet/minecraft/world/chunk/Chunk;setBlockState(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Lnet/minecraft/block/BlockState;
    • addEntity

      @Deprecated public void addEntity(Entity entity)
      Deprecated.
      Specified by:
      addEntity in class Chunk
      Mappings:
      Namespace Name Mixin selector
      official a Lcoi;a(Lavb;)V
      intermediary method_12002 Lnet/minecraft/class_2791;method_12002(Lnet/minecraft/class_1297;)V
      named addEntity Lnet/minecraft/world/chunk/Chunk;addEntity(Lnet/minecraft/entity/Entity;)V
    • createBlockEntity

      @Nullable private @Nullable BlockEntity createBlockEntity(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official j Lcot;j(Lgh;)Lckl;
      intermediary method_12208 Lnet/minecraft/class_2818;method_12208(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
      named createBlockEntity Lnet/minecraft/world/chunk/WorldChunk;createBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
    • getBlockEntity

      @Nullable public @Nullable BlockEntity getBlockEntity(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c_ Lbxp;c_(Lgh;)Lckl;
      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;
    • getBlockEntity

      @Nullable public @Nullable BlockEntity getBlockEntity(BlockPos pos, WorldChunk.CreationType creationType)
      Mappings:
      Namespace Name Mixin selector
      official a Lcot;a(Lgh;Lcot$b;)Lckl;
      intermediary method_12201 Lnet/minecraft/class_2818;method_12201(Lnet/minecraft/class_2338;Lnet/minecraft/class_2818$class_2819;)Lnet/minecraft/class_2586;
      named getBlockEntity Lnet/minecraft/world/chunk/WorldChunk;getBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/chunk/WorldChunk$CreationType;)Lnet/minecraft/block/entity/BlockEntity;
    • addBlockEntity

      public void addBlockEntity(BlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      official b Lcot;b(Lckl;)V
      intermediary method_12216 Lnet/minecraft/class_2818;method_12216(Lnet/minecraft/class_2586;)V
      named addBlockEntity Lnet/minecraft/world/chunk/WorldChunk;addBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)V
    • canTickBlockEntities

      private boolean canTickBlockEntities()
      Mappings:
      Namespace Name Mixin selector
      official C Lcot;C()Z
      intermediary method_31715 Lnet/minecraft/class_2818;method_31715()Z
      named canTickBlockEntities Lnet/minecraft/world/chunk/WorldChunk;canTickBlockEntities()Z
    • canTickBlockEntity

      boolean canTickBlockEntity(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official k Lcot;k(Lgh;)Z
      intermediary method_31724 Lnet/minecraft/class_2818;method_31724(Lnet/minecraft/class_2338;)Z
      named canTickBlockEntity Lnet/minecraft/world/chunk/WorldChunk;canTickBlockEntity(Lnet/minecraft/util/math/BlockPos;)Z
    • setBlockEntity

      public void setBlockEntity(BlockEntity blockEntity)
      Specified by:
      setBlockEntity in class Chunk
      Mappings:
      Namespace Name Mixin selector
      official a Lcoi;a(Lckl;)V
      intermediary method_12007 Lnet/minecraft/class_2791;method_12007(Lnet/minecraft/class_2586;)V
      named setBlockEntity Lnet/minecraft/world/chunk/Chunk;setBlockEntity(Lnet/minecraft/block/entity/BlockEntity;)V
    • getPackedBlockEntityNbt

      @Nullable public @Nullable NbtCompound getPackedBlockEntityNbt(BlockPos pos)
      Specified by:
      getPackedBlockEntityNbt in class Chunk
      Mappings:
      Namespace Name Mixin selector
      official g Lcoi;g(Lgh;)Lnb;
      intermediary method_20598 Lnet/minecraft/class_2791;method_20598(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2487;
      named getPackedBlockEntityNbt Lnet/minecraft/world/chunk/Chunk;getPackedBlockEntityNbt(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/nbt/NbtCompound;
    • removeBlockEntity

      public void removeBlockEntity(BlockPos pos)
      Specified by:
      removeBlockEntity in class Chunk
      Mappings:
      Namespace Name Mixin selector
      official d Lcoi;d(Lgh;)V
      intermediary method_12041 Lnet/minecraft/class_2791;method_12041(Lnet/minecraft/class_2338;)V
      named removeBlockEntity Lnet/minecraft/world/chunk/Chunk;removeBlockEntity(Lnet/minecraft/util/math/BlockPos;)V
    • removeGameEventListener

      private <T extends BlockEntity> void removeGameEventListener(T blockEntity)
      Mappings:
      Namespace Name Mixin selector
      official c Lcot;c(Lckl;)V
      intermediary method_32918 Lnet/minecraft/class_2818;method_32918(Lnet/minecraft/class_2586;)V
      named removeGameEventListener Lnet/minecraft/world/chunk/WorldChunk;removeGameEventListener(Lnet/minecraft/block/entity/BlockEntity;)V
    • removeBlockEntityTicker

      private void removeBlockEntityTicker(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official l Lcot;l(Lgh;)V
      intermediary method_31725 Lnet/minecraft/class_2818;method_31725(Lnet/minecraft/class_2338;)V
      named removeBlockEntityTicker Lnet/minecraft/world/chunk/WorldChunk;removeBlockEntityTicker(Lnet/minecraft/util/math/BlockPos;)V
    • loadToWorld

      public void loadToWorld()
      Mappings:
      Namespace Name Mixin selector
      official v Lcot;v()V
      intermediary method_12206 Lnet/minecraft/class_2818;method_12206()V
      named loadToWorld Lnet/minecraft/world/chunk/WorldChunk;loadToWorld()V
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official t Lcot;t()Z
      intermediary method_12223 Lnet/minecraft/class_2818;method_12223()Z
      named isEmpty Lnet/minecraft/world/chunk/WorldChunk;isEmpty()Z
    • loadFromPacket

      public void loadFromPacket(PacketByteBuf packetByteBuf, NbtCompound nbtCompound, Consumer<class_6603.class_6605> consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lcot;a(Loh;Lnb;Ljava/util/function/Consumer;)V
      intermediary method_12224 Lnet/minecraft/class_2818;method_12224(Lnet/minecraft/class_2540;Lnet/minecraft/class_2487;Ljava/util/function/Consumer;)V
      named loadFromPacket Lnet/minecraft/world/chunk/WorldChunk;loadFromPacket(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/nbt/NbtCompound;Ljava/util/function/Consumer;)V
    • setLoadedToWorld

      public void setLoadedToWorld(boolean loaded)
      Mappings:
      Namespace Name Mixin selector
      official c Lcot;c(Z)V
      intermediary method_12226 Lnet/minecraft/class_2818;method_12226(Z)V
      named setLoadedToWorld Lnet/minecraft/world/chunk/WorldChunk;setLoadedToWorld(Z)V
    • getWorld

      public World getWorld()
      Mappings:
      Namespace Name Mixin selector
      official w Lcot;w()Lbym;
      intermediary method_12200 Lnet/minecraft/class_2818;method_12200()Lnet/minecraft/class_1937;
      named getWorld Lnet/minecraft/world/chunk/WorldChunk;getWorld()Lnet/minecraft/world/World;
    • getBlockEntities

      public Map<BlockPos,BlockEntity> getBlockEntities()
      Mappings:
      Namespace Name Mixin selector
      official x Lcot;x()Ljava/util/Map;
      intermediary method_12214 Lnet/minecraft/class_2818;method_12214()Ljava/util/Map;
      named getBlockEntities Lnet/minecraft/world/chunk/WorldChunk;getBlockEntities()Ljava/util/Map;
    • getLightSourcesStream

      public Stream<BlockPos> getLightSourcesStream()
      Specified by:
      getLightSourcesStream in class Chunk
      Mappings:
      Namespace Name Mixin selector
      official n Lcoi;n()Ljava/util/stream/Stream;
      intermediary method_12018 Lnet/minecraft/class_2791;method_12018()Ljava/util/stream/Stream;
      named getLightSourcesStream Lnet/minecraft/world/chunk/Chunk;getLightSourcesStream()Ljava/util/stream/Stream;
    • runPostProcessing

      public void runPostProcessing()
      Mappings:
      Namespace Name Mixin selector
      official y Lcot;y()V
      intermediary method_12221 Lnet/minecraft/class_2818;method_12221()V
      named runPostProcessing Lnet/minecraft/world/chunk/WorldChunk;runPostProcessing()V
    • loadBlockEntity

      @Nullable private @Nullable BlockEntity loadBlockEntity(BlockPos pos, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lcot;a(Lgh;Lnb;)Lckl;
      intermediary method_12204 Lnet/minecraft/class_2818;method_12204(Lnet/minecraft/class_2338;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2586;
      named loadBlockEntity Lnet/minecraft/world/chunk/WorldChunk;loadBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/block/entity/BlockEntity;
    • disableTickSchedulers

      public void disableTickSchedulers()
      Mappings:
      Namespace Name Mixin selector
      official z Lcot;z()V
      intermediary method_20530 Lnet/minecraft/class_2818;method_20530()V
      named disableTickSchedulers Lnet/minecraft/world/chunk/WorldChunk;disableTickSchedulers()V
    • enableTickSchedulers

      public void enableTickSchedulers(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lcot;a(Laca;)V
      intermediary method_20471 Lnet/minecraft/class_2818;method_20471(Lnet/minecraft/class_3218;)V
      named enableTickSchedulers Lnet/minecraft/world/chunk/WorldChunk;enableTickSchedulers(Lnet/minecraft/server/world/ServerWorld;)V
    • getStatus

      public ChunkStatus getStatus()
      Specified by:
      getStatus in class Chunk
      Mappings:
      Namespace Name Mixin selector
      official j Lcoi;j()Lcol;
      intermediary method_12009 Lnet/minecraft/class_2791;method_12009()Lnet/minecraft/class_2806;
      named getStatus Lnet/minecraft/world/chunk/Chunk;getStatus()Lnet/minecraft/world/chunk/ChunkStatus;
    • getLevelType

      public ChunkHolder.LevelType getLevelType()
      Mappings:
      Namespace Name Mixin selector
      official u Lcot;u()Labm$c;
      intermediary method_12225 Lnet/minecraft/class_2818;method_12225()Lnet/minecraft/class_3193$class_3194;
      named getLevelType Lnet/minecraft/world/chunk/WorldChunk;getLevelType()Lnet/minecraft/server/world/ChunkHolder$LevelType;
    • setLevelTypeProvider

      public void setLevelTypeProvider(Supplier<ChunkHolder.LevelType> levelTypeProvider)
      Mappings:
      Namespace Name Mixin selector
      official b Lcot;b(Ljava/util/function/Supplier;)V
      intermediary method_12207 Lnet/minecraft/class_2818;method_12207(Ljava/util/function/Supplier;)V
      named setLevelTypeProvider Lnet/minecraft/world/chunk/WorldChunk;setLevelTypeProvider(Ljava/util/function/Supplier;)V
    • method_38289

      public void method_38289()
      Mappings:
      Namespace Name Mixin selector
      official A Lcot;A()V
      intermediary method_38289 Lnet/minecraft/class_2818;method_38289()V
      named method_38289 Lnet/minecraft/world/chunk/WorldChunk;method_38289()V
    • updateAllBlockEntities

      public void updateAllBlockEntities()
      Mappings:
      Namespace Name Mixin selector
      official B Lcot;B()V
      intermediary method_31713 Lnet/minecraft/class_2818;method_31713()V
      named updateAllBlockEntities Lnet/minecraft/world/chunk/WorldChunk;updateAllBlockEntities()V
    • updateGameEventListener

      private <T extends BlockEntity> void updateGameEventListener(T blockEntity)
      Mappings:
      Namespace Name Mixin selector
      official d Lcot;d(Lckl;)V
      intermediary method_32919 Lnet/minecraft/class_2818;method_32919(Lnet/minecraft/class_2586;)V
      named updateGameEventListener Lnet/minecraft/world/chunk/WorldChunk;updateGameEventListener(Lnet/minecraft/block/entity/BlockEntity;)V
    • updateTicker

      private <T extends BlockEntity> void updateTicker(T blockEntity)
      Mappings:
      Namespace Name Mixin selector
      official e Lcot;e(Lckl;)V
      intermediary method_31723 Lnet/minecraft/class_2818;method_31723(Lnet/minecraft/class_2586;)V
      named updateTicker Lnet/minecraft/world/chunk/WorldChunk;updateTicker(Lnet/minecraft/block/entity/BlockEntity;)V
    • wrapTicker

      private <T extends BlockEntity> BlockEntityTickInvoker wrapTicker(T blockEntity, BlockEntityTicker<T> blockEntityTicker)
      Mappings:
      Namespace Name Mixin selector
      official a Lcot;a(Lckl;Lckm;)Lcls;
      intermediary method_31718 Lnet/minecraft/class_2818;method_31718(Lnet/minecraft/class_2586;Lnet/minecraft/class_5558;)Lnet/minecraft/class_5562;
      named wrapTicker Lnet/minecraft/world/chunk/WorldChunk;wrapTicker(Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/block/entity/BlockEntityTicker;)Lnet/minecraft/world/chunk/BlockEntityTickInvoker;