Package net.minecraft.server.world
Class ChunkHolder
java.lang.Object
net.minecraft.world.chunk.AbstractChunkHolder
net.minecraft.server.world.ChunkHolder
- Mappings:
Namespace Name named net/minecraft/server/world/ChunkHolderintermediary net/minecraft/class_3193official awh
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate CompletableFuture<OptionalChunk<WorldChunk>> private final BitSetprivate final ShortSet[]Contains the packed chunk-local positions that have been marked for update bymarkForBlockUpdate(net.minecraft.util.math.BlockPos), grouped by their vertical chunk section.private intprivate CompletableFuture<OptionalChunk<WorldChunk>> private intprivate intprivate CompletableFuture<?> private final ChunkHolder.LevelUpdateListenerprivate final LightingProviderprivate booleanIndicates thatblockUpdatesBySectioncontains at least one entry.private final ChunkHolder.PlayersWatchingChunkProviderprivate CompletableFuture<?> private CompletableFuture<?> private final BitSetprivate CompletableFuture<OptionalChunk<WorldChunk>> static final OptionalChunk<WorldChunk> private static final CompletableFuture<OptionalChunk<WorldChunk>> private final HeightLimitViewFields inherited from class net.minecraft.world.chunk.AbstractChunkHolder
pos, UNLOADED, UNLOADED_FUTURE -
Constructor Summary
ConstructorsConstructorDescriptionChunkHolder(ChunkPos pos, int level, HeightLimitView world, LightingProvider lightingProvider, ChunkHolder.LevelUpdateListener levelUpdateListener, ChunkHolder.PlayersWatchingChunkProvider playersWatchingChunkProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidcombinePostProcessingFuture(CompletableFuture<?> postProcessingFuture) protected voidcombineSavingFuture(CompletableFuture<?> savingFuture) private voiddecreaseLevel(ServerChunkLoadingManager chunkLoadingManager, ChunkLevelType target) voidflushUpdates(WorldChunk chunk) intintgetLevel()@Nullable WorldChunk@Nullable WorldChunkbooleanprivate voidincreaseLevel(ServerChunkLoadingManager chunkLoadingManager, CompletableFuture<OptionalChunk<WorldChunk>> chunkFuture, Executor executor, ChunkLevelType target) booleanbooleanbooleanbooleanmarkForLightUpdate(LightType lightType, int y) private voidsendBlockEntityUpdatePacket(List<ServerPlayerEntity> players, World world, BlockPos pos) private voidsendPacketToPlayers(List<ServerPlayerEntity> players, Packet<?> packet) private voidsetCompletedLevel(int level) voidsetLevel(int level) private voidtryUpdateBlockEntityAt(List<ServerPlayerEntity> players, World world, BlockPos pos, BlockState state) voidprotected voidupdateFutures(ServerChunkLoadingManager chunkLoadingManager, Executor executor) UpdatesFuturesindicating the expected loading state of the underlying chunk of thisChunkHolder.Methods inherited from class net.minecraft.world.chunk.AbstractChunkHolder
decrementRefCount, enumerateFutures, getActualStatus, getLatest, getLatestStatus, getLevelType, getOrNull, getPos, getUncheckedOrNull, incrementRefCount, load, replaceWith, updateStatus
-
Field Details
-
UNLOADED_WORLD_CHUNK
- Mappings:
Namespace Name Mixin selector named UNLOADED_WORLD_CHUNKLnet/minecraft/server/world/ChunkHolder;UNLOADED_WORLD_CHUNK:Lnet/minecraft/server/world/OptionalChunk;intermediary field_16427Lnet/minecraft/class_3193;field_16427:Lnet/minecraft/class_9259;official aLawh;a:Lawl;
-
UNLOADED_WORLD_CHUNK_FUTURE
- Mappings:
Namespace Name Mixin selector named UNLOADED_WORLD_CHUNK_FUTURELnet/minecraft/server/world/ChunkHolder;UNLOADED_WORLD_CHUNK_FUTURE:Ljava/util/concurrent/CompletableFuture;intermediary field_16429Lnet/minecraft/class_3193;field_16429:Ljava/util/concurrent/CompletableFuture;official eLawh;e:Ljava/util/concurrent/CompletableFuture;
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/server/world/ChunkHolder;world:Lnet/minecraft/world/HeightLimitView;intermediary field_26929Lnet/minecraft/class_3193;field_26929:Lnet/minecraft/class_5539;official fLawh;f:Ldvc;
-
accessibleFuture
- Mappings:
Namespace Name Mixin selector named accessibleFutureLnet/minecraft/server/world/ChunkHolder;accessibleFuture:Ljava/util/concurrent/CompletableFuture;intermediary field_16431Lnet/minecraft/class_3193;field_16431:Ljava/util/concurrent/CompletableFuture;official gLawh;g:Ljava/util/concurrent/CompletableFuture;
-
tickingFuture
- Mappings:
Namespace Name Mixin selector named tickingFutureLnet/minecraft/server/world/ChunkHolder;tickingFuture:Ljava/util/concurrent/CompletableFuture;intermediary field_19333Lnet/minecraft/class_3193;field_19333:Ljava/util/concurrent/CompletableFuture;official hLawh;h:Ljava/util/concurrent/CompletableFuture;
-
entityTickingFuture
- Mappings:
Namespace Name Mixin selector named entityTickingFutureLnet/minecraft/server/world/ChunkHolder;entityTickingFuture:Ljava/util/concurrent/CompletableFuture;intermediary field_13865Lnet/minecraft/class_3193;field_13865:Ljava/util/concurrent/CompletableFuture;official iLawh;i:Ljava/util/concurrent/CompletableFuture;
-
lastTickLevel
private int lastTickLevel- Mappings:
Namespace Name Mixin selector named lastTickLevelLnet/minecraft/server/world/ChunkHolder;lastTickLevel:Iintermediary field_16432Lnet/minecraft/class_3193;field_16432:Iofficial jLawh;j:I
-
level
private int level- Mappings:
Namespace Name Mixin selector named levelLnet/minecraft/server/world/ChunkHolder;level:Iintermediary field_13862Lnet/minecraft/class_3193;field_13862:Iofficial kLawh;k:I
-
completedLevel
private int completedLevel- Mappings:
Namespace Name Mixin selector named completedLevelLnet/minecraft/server/world/ChunkHolder;completedLevel:Iintermediary field_17208Lnet/minecraft/class_3193;field_17208:Iofficial lLawh;l:I
-
pendingBlockUpdates
private boolean pendingBlockUpdatesIndicates thatblockUpdatesBySectioncontains at least one entry.- Mappings:
Namespace Name Mixin selector named pendingBlockUpdatesLnet/minecraft/server/world/ChunkHolder;pendingBlockUpdates:Zintermediary field_25803Lnet/minecraft/class_3193;field_25803:Zofficial mLawh;m:Z
-
blockUpdatesBySection
Contains the packed chunk-local positions that have been marked for update bymarkForBlockUpdate(net.minecraft.util.math.BlockPos), grouped by their vertical chunk section.Entries for a section are null if the section has no positions marked for update.
- Mappings:
Namespace Name Mixin selector named blockUpdatesBySectionLnet/minecraft/server/world/ChunkHolder;blockUpdatesBySection:[Lit/unimi/dsi/fastutil/shorts/ShortSet;intermediary field_25804Lnet/minecraft/class_3193;field_25804:[Lit/unimi/dsi/fastutil/shorts/ShortSet;official nLawh;n:[Lit/unimi/dsi/fastutil/shorts/ShortSet;
-
blockLightUpdateBits
- Mappings:
Namespace Name Mixin selector named blockLightUpdateBitsLnet/minecraft/server/world/ChunkHolder;blockLightUpdateBits:Ljava/util/BitSet;intermediary field_13871Lnet/minecraft/class_3193;field_13871:Ljava/util/BitSet;official oLawh;o:Ljava/util/BitSet;
-
skyLightUpdateBits
- Mappings:
Namespace Name Mixin selector named skyLightUpdateBitsLnet/minecraft/server/world/ChunkHolder;skyLightUpdateBits:Ljava/util/BitSet;intermediary field_13870Lnet/minecraft/class_3193;field_13870:Ljava/util/BitSet;official pLawh;p:Ljava/util/BitSet;
-
lightingProvider
- Mappings:
Namespace Name Mixin selector named lightingProviderLnet/minecraft/server/world/ChunkHolder;lightingProvider:Lnet/minecraft/world/chunk/light/LightingProvider;intermediary field_13863Lnet/minecraft/class_3193;field_13863:Lnet/minecraft/class_3568;official qLawh;q:Lfjd;
-
levelUpdateListener
- Mappings:
Namespace Name Mixin selector named levelUpdateListenerLnet/minecraft/server/world/ChunkHolder;levelUpdateListener:Lnet/minecraft/server/world/ChunkHolder$LevelUpdateListener;intermediary field_17209Lnet/minecraft/class_3193;field_17209:Lnet/minecraft/class_3193$class_3896;official rLawh;r:Lawh$a;
-
playersWatchingChunkProvider
- Mappings:
Namespace Name Mixin selector named playersWatchingChunkProviderLnet/minecraft/server/world/ChunkHolder;playersWatchingChunkProvider:Lnet/minecraft/server/world/ChunkHolder$PlayersWatchingChunkProvider;intermediary field_17210Lnet/minecraft/class_3193;field_17210:Lnet/minecraft/class_3193$class_3897;official sLawh;s:Lawh$b;
-
accessible
private boolean accessible- Mappings:
Namespace Name Mixin selector named accessibleLnet/minecraft/server/world/ChunkHolder;accessible:Zintermediary field_19238Lnet/minecraft/class_3193;field_19238:Zofficial tLawh;t:Z
-
levelIncreaseFuture
- Mappings:
Namespace Name Mixin selector named levelIncreaseFutureLnet/minecraft/server/world/ChunkHolder;levelIncreaseFuture:Ljava/util/concurrent/CompletableFuture;intermediary field_26930Lnet/minecraft/class_3193;field_26930:Ljava/util/concurrent/CompletableFuture;official uLawh;u:Ljava/util/concurrent/CompletableFuture;
-
postProcessingFuture
- Mappings:
Namespace Name Mixin selector named postProcessingFutureLnet/minecraft/server/world/ChunkHolder;postProcessingFuture:Ljava/util/concurrent/CompletableFuture;intermediary field_46085Lnet/minecraft/class_3193;field_46085:Ljava/util/concurrent/CompletableFuture;official vLawh;v:Ljava/util/concurrent/CompletableFuture;
-
savingFuture
- Mappings:
Namespace Name Mixin selector named savingFutureLnet/minecraft/server/world/ChunkHolder;savingFuture:Ljava/util/concurrent/CompletableFuture;intermediary field_51858Lnet/minecraft/class_3193;field_51858:Ljava/util/concurrent/CompletableFuture;official wLawh;w:Ljava/util/concurrent/CompletableFuture;
-
-
Constructor Details
-
ChunkHolder
public ChunkHolder(ChunkPos pos, int level, HeightLimitView world, LightingProvider lightingProvider, ChunkHolder.LevelUpdateListener levelUpdateListener, ChunkHolder.PlayersWatchingChunkProvider playersWatchingChunkProvider) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/server/world/ChunkHolder;<init>(Lnet/minecraft/util/math/ChunkPos;ILnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/chunk/light/LightingProvider;Lnet/minecraft/server/world/ChunkHolder$LevelUpdateListener;Lnet/minecraft/server/world/ChunkHolder$PlayersWatchingChunkProvider;)Vintermediary <init>Lnet/minecraft/class_3193;<init>(Lnet/minecraft/class_1923;ILnet/minecraft/class_5539;Lnet/minecraft/class_3568;Lnet/minecraft/class_3193$class_3896;Lnet/minecraft/class_3193$class_3897;)Vofficial <init>Lawh;<init>(Ldug;ILdvc;Lfjd;Lawh$a;Lawh$b;)V
-
-
Method Details
-
getTickingFuture
- Mappings:
Namespace Name Mixin selector named getTickingFutureLnet/minecraft/server/world/ChunkHolder;getTickingFuture()Ljava/util/concurrent/CompletableFuture;intermediary method_16145Lnet/minecraft/class_3193;method_16145()Ljava/util/concurrent/CompletableFuture;official aLawh;a()Ljava/util/concurrent/CompletableFuture;
-
getEntityTickingFuture
- Mappings:
Namespace Name Mixin selector named getEntityTickingFutureLnet/minecraft/server/world/ChunkHolder;getEntityTickingFuture()Ljava/util/concurrent/CompletableFuture;intermediary method_14003Lnet/minecraft/class_3193;method_14003()Ljava/util/concurrent/CompletableFuture;official bLawh;b()Ljava/util/concurrent/CompletableFuture;
-
getAccessibleFuture
- Mappings:
Namespace Name Mixin selector named getAccessibleFutureLnet/minecraft/server/world/ChunkHolder;getAccessibleFuture()Ljava/util/concurrent/CompletableFuture;intermediary method_20725Lnet/minecraft/class_3193;method_20725()Ljava/util/concurrent/CompletableFuture;official cLawh;c()Ljava/util/concurrent/CompletableFuture;
-
getWorldChunk
- Mappings:
Namespace Name Mixin selector named getWorldChunkLnet/minecraft/server/world/ChunkHolder;getWorldChunk()Lnet/minecraft/world/chunk/WorldChunk;intermediary method_16144Lnet/minecraft/class_3193;method_16144()Lnet/minecraft/class_2818;official dLawh;d()Lepd;
-
getPostProcessedChunk
- Mappings:
Namespace Name Mixin selector named getPostProcessedChunkLnet/minecraft/server/world/ChunkHolder;getPostProcessedChunk()Lnet/minecraft/world/chunk/WorldChunk;intermediary method_53682Lnet/minecraft/class_3193;method_53682()Lnet/minecraft/class_2818;official eLawh;e()Lepd;
-
getPostProcessingFuture
- Mappings:
Namespace Name Mixin selector named getPostProcessingFutureLnet/minecraft/server/world/ChunkHolder;getPostProcessingFuture()Ljava/util/concurrent/CompletableFuture;intermediary method_53681Lnet/minecraft/class_3193;method_53681()Ljava/util/concurrent/CompletableFuture;official fLawh;f()Ljava/util/concurrent/CompletableFuture;
-
combinePostProcessingFuture
- Mappings:
Namespace Name Mixin selector named combinePostProcessingFutureLnet/minecraft/server/world/ChunkHolder;combinePostProcessingFuture(Ljava/util/concurrent/CompletableFuture;)Vintermediary method_53680Lnet/minecraft/class_3193;method_53680(Ljava/util/concurrent/CompletableFuture;)Vofficial aLawh;a(Ljava/util/concurrent/CompletableFuture;)V
-
getSavingFuture
- Mappings:
Namespace Name Mixin selector named getSavingFutureLnet/minecraft/server/world/ChunkHolder;getSavingFuture()Ljava/util/concurrent/CompletableFuture;intermediary method_14000Lnet/minecraft/class_3193;method_14000()Ljava/util/concurrent/CompletableFuture;official gLawh;g()Ljava/util/concurrent/CompletableFuture;
-
isSavable
public boolean isSavable()- Mappings:
Namespace Name Mixin selector named isSavableLnet/minecraft/server/world/ChunkHolder;isSavable()Zintermediary method_60436Lnet/minecraft/class_3193;method_60436()Zofficial hLawh;h()Z
-
combineSavingFuture
- Specified by:
combineSavingFuturein classAbstractChunkHolder- Mappings:
Namespace Name Mixin selector named combineSavingFutureLnet/minecraft/world/chunk/AbstractChunkHolder;combineSavingFuture(Ljava/util/concurrent/CompletableFuture;)Vintermediary method_39967Lnet/minecraft/class_9761;method_39967(Ljava/util/concurrent/CompletableFuture;)Vofficial bLaww;b(Ljava/util/concurrent/CompletableFuture;)V
-
markForBlockUpdate
- Mappings:
Namespace Name Mixin selector named markForBlockUpdateLnet/minecraft/server/world/ChunkHolder;markForBlockUpdate(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_14002Lnet/minecraft/class_3193;method_14002(Lnet/minecraft/class_2338;)Zofficial aLawh;a(Liv;)Z
-
markForLightUpdate
- Parameters:
y- chunk section y coordinate- Mappings:
Namespace Name Mixin selector named markForLightUpdateLnet/minecraft/server/world/ChunkHolder;markForLightUpdate(Lnet/minecraft/world/LightType;I)Zintermediary method_14012Lnet/minecraft/class_3193;method_14012(Lnet/minecraft/class_1944;I)Zofficial aLawh;a(Ldvj;I)Z
-
hasPendingUpdates
public boolean hasPendingUpdates()- Mappings:
Namespace Name Mixin selector named hasPendingUpdatesLnet/minecraft/server/world/ChunkHolder;hasPendingUpdates()Zintermediary method_65077Lnet/minecraft/class_3193;method_65077()Zofficial iLawh;i()Z
-
flushUpdates
- Mappings:
Namespace Name Mixin selector named flushUpdatesLnet/minecraft/server/world/ChunkHolder;flushUpdates(Lnet/minecraft/world/chunk/WorldChunk;)Vintermediary method_14006Lnet/minecraft/class_3193;method_14006(Lnet/minecraft/class_2818;)Vofficial aLawh;a(Lepd;)V
-
tryUpdateBlockEntityAt
private void tryUpdateBlockEntityAt(List<ServerPlayerEntity> players, World world, BlockPos pos, BlockState state) - Mappings:
Namespace Name Mixin selector named tryUpdateBlockEntityAtLnet/minecraft/server/world/ChunkHolder;tryUpdateBlockEntityAt(Ljava/util/List;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_30311Lnet/minecraft/class_3193;method_30311(Ljava/util/List;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial aLawh;a(Ljava/util/List;Ldva;Liv;Lemu;)V
-
sendBlockEntityUpdatePacket
private void sendBlockEntityUpdatePacket(List<ServerPlayerEntity> players, World world, BlockPos pos) - Mappings:
Namespace Name Mixin selector named sendBlockEntityUpdatePacketLnet/minecraft/server/world/ChunkHolder;sendBlockEntityUpdatePacket(Ljava/util/List;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_14009Lnet/minecraft/class_3193;method_14009(Ljava/util/List;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vofficial aLawh;a(Ljava/util/List;Ldva;Liv;)V
-
sendPacketToPlayers
- Mappings:
Namespace Name Mixin selector named sendPacketToPlayersLnet/minecraft/server/world/ChunkHolder;sendPacketToPlayers(Ljava/util/List;Lnet/minecraft/network/packet/Packet;)Vintermediary method_13992Lnet/minecraft/class_3193;method_13992(Ljava/util/List;Lnet/minecraft/class_2596;)Vofficial aLawh;a(Ljava/util/List;Laaz;)V
-
getLevel
public int getLevel()- Specified by:
getLevelin classAbstractChunkHolder- Mappings:
Namespace Name Mixin selector named getLevelLnet/minecraft/world/chunk/AbstractChunkHolder;getLevel()Iintermediary method_14005Lnet/minecraft/class_9761;method_14005()Iofficial jLaww;j()I
-
getCompletedLevel
public int getCompletedLevel()- Specified by:
getCompletedLevelin classAbstractChunkHolder- Mappings:
Namespace Name Mixin selector named getCompletedLevelLnet/minecraft/world/chunk/AbstractChunkHolder;getCompletedLevel()Iintermediary method_17208Lnet/minecraft/class_9761;method_17208()Iofficial kLaww;k()I
-
setCompletedLevel
private void setCompletedLevel(int level) - Mappings:
Namespace Name Mixin selector named setCompletedLevelLnet/minecraft/server/world/ChunkHolder;setCompletedLevel(I)Vintermediary method_17207Lnet/minecraft/class_3193;method_17207(I)Vofficial bLawh;b(I)V
-
setLevel
public void setLevel(int level) - Mappings:
Namespace Name Mixin selector named setLevelLnet/minecraft/server/world/ChunkHolder;setLevel(I)Vintermediary method_15890Lnet/minecraft/class_3193;method_15890(I)Vofficial aLawh;a(I)V
-
increaseLevel
private void increaseLevel(ServerChunkLoadingManager chunkLoadingManager, CompletableFuture<OptionalChunk<WorldChunk>> chunkFuture, Executor executor, ChunkLevelType target) - Mappings:
Namespace Name Mixin selector named increaseLevelLnet/minecraft/server/world/ChunkHolder;increaseLevel(Lnet/minecraft/server/world/ServerChunkLoadingManager;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/Executor;Lnet/minecraft/server/world/ChunkLevelType;)Vintermediary method_31409Lnet/minecraft/class_3193;method_31409(Lnet/minecraft/class_3898;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/Executor;Lnet/minecraft/class_3194;)Vofficial aLawh;a(Lawk;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/Executor;Lawu;)V
-
decreaseLevel
- Mappings:
Namespace Name Mixin selector named decreaseLevelLnet/minecraft/server/world/ChunkHolder;decreaseLevel(Lnet/minecraft/server/world/ServerChunkLoadingManager;Lnet/minecraft/server/world/ChunkLevelType;)Vintermediary method_31408Lnet/minecraft/class_3193;method_31408(Lnet/minecraft/class_3898;Lnet/minecraft/class_3194;)Vofficial aLawh;a(Lawk;Lawu;)V
-
updateFutures
UpdatesFuturesindicating the expected loading state of the underlying chunk of thisChunkHolder. Note that the method merely makes actual loading process possible, but do not perform these actions.- Mappings:
Namespace Name Mixin selector named updateFuturesLnet/minecraft/server/world/ChunkHolder;updateFutures(Lnet/minecraft/server/world/ServerChunkLoadingManager;Ljava/util/concurrent/Executor;)Vintermediary method_14007Lnet/minecraft/class_3193;method_14007(Lnet/minecraft/class_3898;Ljava/util/concurrent/Executor;)Vofficial aLawh;a(Lawk;Ljava/util/concurrent/Executor;)V
-
isAccessible
public boolean isAccessible()- Mappings:
Namespace Name Mixin selector named isAccessibleLnet/minecraft/server/world/ChunkHolder;isAccessible()Zintermediary method_20384Lnet/minecraft/class_3193;method_20384()Zofficial lLawh;l()Z
-
updateAccessibleStatus
public void updateAccessibleStatus()- Mappings:
Namespace Name Mixin selector named updateAccessibleStatusLnet/minecraft/server/world/ChunkHolder;updateAccessibleStatus()Vintermediary method_20385Lnet/minecraft/class_3193;method_20385()Vofficial mLawh;m()V
-