Class ServerChunkProvider

java.lang.Object
net.minecraft.world.chunk.ServerChunkProvider
All Implemented Interfaces:
ChunkProvider

public class ServerChunkProvider extends Object implements ChunkProvider
Mappings:
Namespace Name
official ld
intermediary net/minecraft/class_794
named net/minecraft/world/chunk/ServerChunkProvider
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lld;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_8891 Lnet/minecraft/class_794;field_8891:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/world/chunk/ServerChunkProvider;LOGGER:Lorg/apache/logging/log4j/Logger;
    • chunksToUnload

      private Set<Long> chunksToUnload
      Mappings:
      Namespace Name Mixin selector
      official c Lld;c:Ljava/util/Set;
      intermediary field_2802 Lnet/minecraft/class_794;field_2802:Ljava/util/Set;
      named chunksToUnload Lnet/minecraft/world/chunk/ServerChunkProvider;chunksToUnload:Ljava/util/Set;
    • empty

      private Chunk empty
      Mappings:
      Namespace Name Mixin selector
      official d Lld;d:Lamy;
      intermediary field_2803 Lnet/minecraft/class_794;field_2803:Lnet/minecraft/class_1196;
      named empty Lnet/minecraft/world/chunk/ServerChunkProvider;empty:Lnet/minecraft/world/chunk/Chunk;
    • chunkGenerator

      private ChunkProvider chunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official e Lld;e:Lamv;
      intermediary field_2804 Lnet/minecraft/class_794;field_2804:Lnet/minecraft/class_1193;
      named chunkGenerator Lnet/minecraft/world/chunk/ServerChunkProvider;chunkGenerator:Lnet/minecraft/world/chunk/ChunkProvider;
    • chunkWriter

      private ChunkStorage chunkWriter
      Mappings:
      Namespace Name Mixin selector
      official f Lld;f:Land;
      intermediary field_2805 Lnet/minecraft/class_794;field_2805:Lnet/minecraft/class_1199;
      named chunkWriter Lnet/minecraft/world/chunk/ServerChunkProvider;chunkWriter:Lnet/minecraft/world/chunk/ChunkStorage;
    • canGenerateChunks

      public boolean canGenerateChunks
      Mappings:
      Namespace Name Mixin selector
      official a Lld;a:Z
      intermediary field_2801 Lnet/minecraft/class_794;field_2801:Z
      named canGenerateChunks Lnet/minecraft/world/chunk/ServerChunkProvider;canGenerateChunks:Z
    • chunkMap

      private LongObjectStorage<Chunk> chunkMap
      Mappings:
      Namespace Name Mixin selector
      official g Lld;g:Lnq;
      intermediary field_2806 Lnet/minecraft/class_794;field_2806:Lnet/minecraft/class_835;
      named chunkMap Lnet/minecraft/world/chunk/ServerChunkProvider;chunkMap:Lnet/minecraft/util/collection/LongObjectStorage;
    • chunks

      private List<Chunk> chunks
      Mappings:
      Namespace Name Mixin selector
      official h Lld;h:Ljava/util/List;
      intermediary field_2807 Lnet/minecraft/class_794;field_2807:Ljava/util/List;
      named chunks Lnet/minecraft/world/chunk/ServerChunkProvider;chunks:Ljava/util/List;
    • world

      private ServerWorld world
      Mappings:
      Namespace Name Mixin selector
      official i Lld;i:Lle;
      intermediary field_2808 Lnet/minecraft/class_794;field_2808:Lnet/minecraft/class_795;
      named world Lnet/minecraft/world/chunk/ServerChunkProvider;world:Lnet/minecraft/server/world/ServerWorld;
  • Constructor Details

    • ServerChunkProvider

      public ServerChunkProvider(ServerWorld world, ChunkStorage chunkWriter, ChunkProvider chunkProvider)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lld;<init>(Lle;Land;Lamv;)V
      intermediary <init> Lnet/minecraft/class_794;<init>(Lnet/minecraft/class_795;Lnet/minecraft/class_1199;Lnet/minecraft/class_1193;)V
      named <init> Lnet/minecraft/world/chunk/ServerChunkProvider;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/chunk/ChunkStorage;Lnet/minecraft/world/chunk/ChunkProvider;)V
  • Method Details

    • chunkExists

      public boolean chunkExists(int x, int z)
      Specified by:
      chunkExists in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lamv;a(II)Z
      intermediary method_3864 Lnet/minecraft/class_1193;method_3864(II)Z
      named chunkExists Lnet/minecraft/world/chunk/ChunkProvider;chunkExists(II)Z
    • getChunks

      public List<Chunk> getChunks()
      Mappings:
      Namespace Name Mixin selector
      official a Lld;a()Ljava/util/List;
      intermediary method_8128 Lnet/minecraft/class_794;method_8128()Ljava/util/List;
      named getChunks Lnet/minecraft/world/chunk/ServerChunkProvider;getChunks()Ljava/util/List;
    • scheduleUnload

      public void scheduleUnload(int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official b Lld;b(II)V
      intermediary method_2127 Lnet/minecraft/class_794;method_2127(II)V
      named scheduleUnload Lnet/minecraft/world/chunk/ServerChunkProvider;scheduleUnload(II)V
    • unloadAll

      public void unloadAll()
      Mappings:
      Namespace Name Mixin selector
      official b Lld;b()V
      intermediary method_2125 Lnet/minecraft/class_794;method_2125()V
      named unloadAll Lnet/minecraft/world/chunk/ServerChunkProvider;unloadAll()V
    • getOrGenerateChunk

      public Chunk getOrGenerateChunk(int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official c Lld;c(II)Lamy;
      intermediary method_3871 Lnet/minecraft/class_794;method_3871(II)Lnet/minecraft/class_1196;
      named getOrGenerateChunk Lnet/minecraft/world/chunk/ServerChunkProvider;getOrGenerateChunk(II)Lnet/minecraft/world/chunk/Chunk;
    • getChunk

      public Chunk getChunk(int x, int z)
      Specified by:
      getChunk in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official d Lamv;d(II)Lamy;
      intermediary method_3873 Lnet/minecraft/class_1193;method_3873(II)Lnet/minecraft/class_1196;
      named getChunk Lnet/minecraft/world/chunk/ChunkProvider;getChunk(II)Lnet/minecraft/world/chunk/Chunk;
    • loadChunk

      private Chunk loadChunk(int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official e Lld;e(II)Lamy;
      intermediary method_8131 Lnet/minecraft/class_794;method_8131(II)Lnet/minecraft/class_1196;
      named loadChunk Lnet/minecraft/world/chunk/ServerChunkProvider;loadChunk(II)Lnet/minecraft/world/chunk/Chunk;
    • saveEntities

      private void saveEntities(Chunk chunk)
      Mappings:
      Namespace Name Mixin selector
      official a Lld;a(Lamy;)V
      intermediary method_8129 Lnet/minecraft/class_794;method_8129(Lnet/minecraft/class_1196;)V
      named saveEntities Lnet/minecraft/world/chunk/ServerChunkProvider;saveEntities(Lnet/minecraft/world/chunk/Chunk;)V
    • saveChunk

      private void saveChunk(Chunk chunk)
      Mappings:
      Namespace Name Mixin selector
      official b Lld;b(Lamy;)V
      intermediary method_8130 Lnet/minecraft/class_794;method_8130(Lnet/minecraft/class_1196;)V
      named saveChunk Lnet/minecraft/world/chunk/ServerChunkProvider;saveChunk(Lnet/minecraft/world/chunk/Chunk;)V
    • decorateChunk

      public void decorateChunk(ChunkProvider provider, int x, int z)
      Specified by:
      decorateChunk in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lamv;a(Lamv;II)V
      intermediary method_3867 Lnet/minecraft/class_1193;method_3867(Lnet/minecraft/class_1193;II)V
      named decorateChunk Lnet/minecraft/world/chunk/ChunkProvider;decorateChunk(Lnet/minecraft/world/chunk/ChunkProvider;II)V
    • isChunkModified

      public boolean isChunkModified(ChunkProvider chunkProvider, Chunk chunk, int x, int z)
      Specified by:
      isChunkModified in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lamv;a(Lamv;Lamy;II)Z
      intermediary method_9122 Lnet/minecraft/class_1193;method_9122(Lnet/minecraft/class_1193;Lnet/minecraft/class_1196;II)Z
      named isChunkModified Lnet/minecraft/world/chunk/ChunkProvider;isChunkModified(Lnet/minecraft/world/chunk/ChunkProvider;Lnet/minecraft/world/chunk/Chunk;II)Z
    • saveChunks

      public boolean saveChunks(boolean saveEntities, ProgressListener progressListener)
      Specified by:
      saveChunks in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lamv;a(ZLnu;)Z
      intermediary method_3868 Lnet/minecraft/class_1193;method_3868(ZLnet/minecraft/class_841;)Z
      named saveChunks Lnet/minecraft/world/chunk/ChunkProvider;saveChunks(ZLnet/minecraft/util/ProgressListener;)Z
    • flushChunks

      public void flushChunks()
      Specified by:
      flushChunks in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official method_4727 Lld;method_4727()V
      intermediary method_4727 Lnet/minecraft/class_794;method_4727()V
      named flushChunks Lnet/minecraft/world/chunk/ServerChunkProvider;flushChunks()V
    • tickChunks

      public boolean tickChunks()
      Specified by:
      tickChunks in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official d Lamv;d()Z
      intermediary method_3869 Lnet/minecraft/class_1193;method_3869()Z
      named tickChunks Lnet/minecraft/world/chunk/ChunkProvider;tickChunks()Z
    • isSavingEnabled

      public boolean isSavingEnabled()
      Specified by:
      isSavingEnabled in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official e Lamv;e()Z
      intermediary method_3870 Lnet/minecraft/class_1193;method_3870()Z
      named isSavingEnabled Lnet/minecraft/world/chunk/ChunkProvider;isSavingEnabled()Z
    • getChunkProviderName

      public String getChunkProviderName()
      Specified by:
      getChunkProviderName in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official f Lamv;f()Ljava/lang/String;
      intermediary method_3872 Lnet/minecraft/class_1193;method_3872()Ljava/lang/String;
      named getChunkProviderName Lnet/minecraft/world/chunk/ChunkProvider;getChunkProviderName()Ljava/lang/String;
    • getSpawnEntries

      public List<Biome.SpawnEntry> getSpawnEntries(EntityCategory category, BlockPos pos)
      Specified by:
      getSpawnEntries in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lamv;a(Lpt;Lcj;)Ljava/util/List;
      intermediary method_9124 Lnet/minecraft/class_1193;method_9124(Lnet/minecraft/class_872;Lnet/minecraft/class_2552;)Ljava/util/List;
      named getSpawnEntries Lnet/minecraft/world/chunk/ChunkProvider;getSpawnEntries(Lnet/minecraft/entity/EntityCategory;Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;
    • getNearestStructurePos

      public BlockPos getNearestStructurePos(World world, String structureName, BlockPos pos)
      Specified by:
      getNearestStructurePos in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lamv;a(Ladm;Ljava/lang/String;Lcj;)Lcj;
      intermediary method_3866 Lnet/minecraft/class_1193;method_3866(Lnet/minecraft/class_1150;Ljava/lang/String;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2552;
      named getNearestStructurePos Lnet/minecraft/world/chunk/ChunkProvider;getNearestStructurePos(Lnet/minecraft/world/World;Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
    • getLoadedChunksCount

      public int getLoadedChunksCount()
      Specified by:
      getLoadedChunksCount in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official g Lamv;g()I
      intermediary method_3874 Lnet/minecraft/class_1193;method_3874()I
      named getLoadedChunksCount Lnet/minecraft/world/chunk/ChunkProvider;getLoadedChunksCount()I
    • handleInitialLoad

      public void handleInitialLoad(Chunk chunk, int x, int z)
      Specified by:
      handleInitialLoad in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lamv;a(Lamy;II)V
      intermediary method_4702 Lnet/minecraft/class_1193;method_4702(Lnet/minecraft/class_1196;II)V
      named handleInitialLoad Lnet/minecraft/world/chunk/ChunkProvider;handleInitialLoad(Lnet/minecraft/world/chunk/Chunk;II)V
    • getChunk

      public Chunk getChunk(BlockPos pos)
      Specified by:
      getChunk in interface ChunkProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lamv;a(Lcj;)Lamy;
      intermediary method_9123 Lnet/minecraft/class_1193;method_9123(Lnet/minecraft/class_2552;)Lnet/minecraft/class_1196;
      named getChunk Lnet/minecraft/world/chunk/ChunkProvider;getChunk(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/Chunk;