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/ChunkHolder
intermediary net/minecraft/class_3193
official ark
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private CompletableFuture
<OptionalChunk<WorldChunk>> private final BitSet
private 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 int
private CompletableFuture
<OptionalChunk<WorldChunk>> private int
private int
private CompletableFuture
<?> private final ChunkHolder.LevelUpdateListener
private final LightingProvider
private boolean
Indicates thatblockUpdatesBySection
contains at least one entry.private final ChunkHolder.PlayersWatchingChunkProvider
private CompletableFuture
<?> private CompletableFuture
<?> private final BitSet
private CompletableFuture
<OptionalChunk<WorldChunk>> static final OptionalChunk
<WorldChunk> private static final CompletableFuture
<OptionalChunk<WorldChunk>> private final HeightLimitView
Fields inherited from class net.minecraft.world.chunk.AbstractChunkHolder
pos, UNLOADED, UNLOADED_FUTURE
-
Constructor Summary
ConstructorDescriptionChunkHolder
(ChunkPos pos, int level, HeightLimitView world, LightingProvider lightingProvider, ChunkHolder.LevelUpdateListener levelUpdateListener, ChunkHolder.PlayersWatchingChunkProvider playersWatchingChunkProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
combinePostProcessingFuture
(CompletableFuture<?> postProcessingFuture) protected void
combineSavingFuture
(CompletableFuture<?> savingFuture) private void
decreaseLevel
(ServerChunkLoadingManager chunkLoadingManager, ChunkLevelType target) void
flushUpdates
(WorldChunk chunk) int
int
getLevel()
boolean
private void
increaseLevel
(ServerChunkLoadingManager chunkLoadingManager, CompletableFuture<OptionalChunk<WorldChunk>> chunkFuture, Executor executor, ChunkLevelType target) boolean
boolean
boolean
boolean
markForLightUpdate
(LightType lightType, int y) private void
sendBlockEntityUpdatePacket
(List<ServerPlayerEntity> players, World world, BlockPos pos) private void
sendPacketToPlayers
(List<ServerPlayerEntity> players, Packet<?> packet) private void
setCompletedLevel
(int level) void
setLevel
(int level) private void
tryUpdateBlockEntityAt
(List<ServerPlayerEntity> players, World world, BlockPos pos, BlockState state) void
protected void
updateFutures
(ServerChunkLoadingManager chunkLoadingManager, Executor executor) UpdatesFutures
indicating 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_CHUNK
Lnet/minecraft/server/world/ChunkHolder;UNLOADED_WORLD_CHUNK:Lnet/minecraft/server/world/OptionalChunk;
intermediary field_16427
Lnet/minecraft/class_3193;field_16427:Lnet/minecraft/class_9259;
official a
Lark;a:Larn;
-
UNLOADED_WORLD_CHUNK_FUTURE
- Mappings:
Namespace Name Mixin selector named UNLOADED_WORLD_CHUNK_FUTURE
Lnet/minecraft/server/world/ChunkHolder;UNLOADED_WORLD_CHUNK_FUTURE:Ljava/util/concurrent/CompletableFuture;
intermediary field_16429
Lnet/minecraft/class_3193;field_16429:Ljava/util/concurrent/CompletableFuture;
official e
Lark;e:Ljava/util/concurrent/CompletableFuture;
-
world
- Mappings:
Namespace Name Mixin selector named world
Lnet/minecraft/server/world/ChunkHolder;world:Lnet/minecraft/world/HeightLimitView;
intermediary field_26929
Lnet/minecraft/class_3193;field_26929:Lnet/minecraft/class_5539;
official f
Lark;f:Ldhj;
-
accessibleFuture
- Mappings:
Namespace Name Mixin selector named accessibleFuture
Lnet/minecraft/server/world/ChunkHolder;accessibleFuture:Ljava/util/concurrent/CompletableFuture;
intermediary field_16431
Lnet/minecraft/class_3193;field_16431:Ljava/util/concurrent/CompletableFuture;
official g
Lark;g:Ljava/util/concurrent/CompletableFuture;
-
tickingFuture
- Mappings:
Namespace Name Mixin selector named tickingFuture
Lnet/minecraft/server/world/ChunkHolder;tickingFuture:Ljava/util/concurrent/CompletableFuture;
intermediary field_19333
Lnet/minecraft/class_3193;field_19333:Ljava/util/concurrent/CompletableFuture;
official h
Lark;h:Ljava/util/concurrent/CompletableFuture;
-
entityTickingFuture
- Mappings:
Namespace Name Mixin selector named entityTickingFuture
Lnet/minecraft/server/world/ChunkHolder;entityTickingFuture:Ljava/util/concurrent/CompletableFuture;
intermediary field_13865
Lnet/minecraft/class_3193;field_13865:Ljava/util/concurrent/CompletableFuture;
official i
Lark;i:Ljava/util/concurrent/CompletableFuture;
-
lastTickLevel
private int lastTickLevel- Mappings:
Namespace Name Mixin selector named lastTickLevel
Lnet/minecraft/server/world/ChunkHolder;lastTickLevel:I
intermediary field_16432
Lnet/minecraft/class_3193;field_16432:I
official j
Lark;j:I
-
level
private int level- Mappings:
Namespace Name Mixin selector named level
Lnet/minecraft/server/world/ChunkHolder;level:I
intermediary field_13862
Lnet/minecraft/class_3193;field_13862:I
official k
Lark;k:I
-
completedLevel
private int completedLevel- Mappings:
Namespace Name Mixin selector named completedLevel
Lnet/minecraft/server/world/ChunkHolder;completedLevel:I
intermediary field_17208
Lnet/minecraft/class_3193;field_17208:I
official l
Lark;l:I
-
pendingBlockUpdates
private boolean pendingBlockUpdatesIndicates thatblockUpdatesBySection
contains at least one entry.- Mappings:
Namespace Name Mixin selector named pendingBlockUpdates
Lnet/minecraft/server/world/ChunkHolder;pendingBlockUpdates:Z
intermediary field_25803
Lnet/minecraft/class_3193;field_25803:Z
official m
Lark;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 blockUpdatesBySection
Lnet/minecraft/server/world/ChunkHolder;blockUpdatesBySection:[Lit/unimi/dsi/fastutil/shorts/ShortSet;
intermediary field_25804
Lnet/minecraft/class_3193;field_25804:[Lit/unimi/dsi/fastutil/shorts/ShortSet;
official n
Lark;n:[Lit/unimi/dsi/fastutil/shorts/ShortSet;
-
blockLightUpdateBits
- Mappings:
Namespace Name Mixin selector named blockLightUpdateBits
Lnet/minecraft/server/world/ChunkHolder;blockLightUpdateBits:Ljava/util/BitSet;
intermediary field_13871
Lnet/minecraft/class_3193;field_13871:Ljava/util/BitSet;
official o
Lark;o:Ljava/util/BitSet;
-
skyLightUpdateBits
- Mappings:
Namespace Name Mixin selector named skyLightUpdateBits
Lnet/minecraft/server/world/ChunkHolder;skyLightUpdateBits:Ljava/util/BitSet;
intermediary field_13870
Lnet/minecraft/class_3193;field_13870:Ljava/util/BitSet;
official p
Lark;p:Ljava/util/BitSet;
-
lightingProvider
- Mappings:
Namespace Name Mixin selector named lightingProvider
Lnet/minecraft/server/world/ChunkHolder;lightingProvider:Lnet/minecraft/world/chunk/light/LightingProvider;
intermediary field_13863
Lnet/minecraft/class_3193;field_13863:Lnet/minecraft/class_3568;
official q
Lark;q:Letl;
-
levelUpdateListener
- Mappings:
Namespace Name Mixin selector named levelUpdateListener
Lnet/minecraft/server/world/ChunkHolder;levelUpdateListener:Lnet/minecraft/server/world/ChunkHolder$LevelUpdateListener;
intermediary field_17209
Lnet/minecraft/class_3193;field_17209:Lnet/minecraft/class_3193$class_3896;
official r
Lark;r:Lark$a;
-
playersWatchingChunkProvider
- Mappings:
Namespace Name Mixin selector named playersWatchingChunkProvider
Lnet/minecraft/server/world/ChunkHolder;playersWatchingChunkProvider:Lnet/minecraft/server/world/ChunkHolder$PlayersWatchingChunkProvider;
intermediary field_17210
Lnet/minecraft/class_3193;field_17210:Lnet/minecraft/class_3193$class_3897;
official s
Lark;s:Lark$b;
-
accessible
private boolean accessible- Mappings:
Namespace Name Mixin selector named accessible
Lnet/minecraft/server/world/ChunkHolder;accessible:Z
intermediary field_19238
Lnet/minecraft/class_3193;field_19238:Z
official t
Lark;t:Z
-
levelIncreaseFuture
- Mappings:
Namespace Name Mixin selector named levelIncreaseFuture
Lnet/minecraft/server/world/ChunkHolder;levelIncreaseFuture:Ljava/util/concurrent/CompletableFuture;
intermediary field_26930
Lnet/minecraft/class_3193;field_26930:Ljava/util/concurrent/CompletableFuture;
official u
Lark;u:Ljava/util/concurrent/CompletableFuture;
-
postProcessingFuture
- Mappings:
Namespace Name Mixin selector named postProcessingFuture
Lnet/minecraft/server/world/ChunkHolder;postProcessingFuture:Ljava/util/concurrent/CompletableFuture;
intermediary field_46085
Lnet/minecraft/class_3193;field_46085:Ljava/util/concurrent/CompletableFuture;
official v
Lark;v:Ljava/util/concurrent/CompletableFuture;
-
savingFuture
- Mappings:
Namespace Name Mixin selector named savingFuture
Lnet/minecraft/server/world/ChunkHolder;savingFuture:Ljava/util/concurrent/CompletableFuture;
intermediary field_51858
Lnet/minecraft/class_3193;field_51858:Ljava/util/concurrent/CompletableFuture;
official w
Lark;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;)V
intermediary <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;)V
official <init>
Lark;<init>(Ldgn;ILdhj;Letl;Lark$a;Lark$b;)V
-
-
Method Details
-
getTickingFuture
- Mappings:
Namespace Name Mixin selector named getTickingFuture
Lnet/minecraft/server/world/ChunkHolder;getTickingFuture()Ljava/util/concurrent/CompletableFuture;
intermediary method_16145
Lnet/minecraft/class_3193;method_16145()Ljava/util/concurrent/CompletableFuture;
official a
Lark;a()Ljava/util/concurrent/CompletableFuture;
-
getEntityTickingFuture
- Mappings:
Namespace Name Mixin selector named getEntityTickingFuture
Lnet/minecraft/server/world/ChunkHolder;getEntityTickingFuture()Ljava/util/concurrent/CompletableFuture;
intermediary method_14003
Lnet/minecraft/class_3193;method_14003()Ljava/util/concurrent/CompletableFuture;
official b
Lark;b()Ljava/util/concurrent/CompletableFuture;
-
getAccessibleFuture
- Mappings:
Namespace Name Mixin selector named getAccessibleFuture
Lnet/minecraft/server/world/ChunkHolder;getAccessibleFuture()Ljava/util/concurrent/CompletableFuture;
intermediary method_20725
Lnet/minecraft/class_3193;method_20725()Ljava/util/concurrent/CompletableFuture;
official c
Lark;c()Ljava/util/concurrent/CompletableFuture;
-
getWorldChunk
- Mappings:
Namespace Name Mixin selector named getWorldChunk
Lnet/minecraft/server/world/ChunkHolder;getWorldChunk()Lnet/minecraft/world/chunk/WorldChunk;
intermediary method_16144
Lnet/minecraft/class_3193;method_16144()Lnet/minecraft/class_2818;
official d
Lark;d()Ldzz;
-
getPostProcessedChunk
- Mappings:
Namespace Name Mixin selector named getPostProcessedChunk
Lnet/minecraft/server/world/ChunkHolder;getPostProcessedChunk()Lnet/minecraft/world/chunk/WorldChunk;
intermediary method_53682
Lnet/minecraft/class_3193;method_53682()Lnet/minecraft/class_2818;
official e
Lark;e()Ldzz;
-
getPostProcessingFuture
- Mappings:
Namespace Name Mixin selector named getPostProcessingFuture
Lnet/minecraft/server/world/ChunkHolder;getPostProcessingFuture()Ljava/util/concurrent/CompletableFuture;
intermediary method_53681
Lnet/minecraft/class_3193;method_53681()Ljava/util/concurrent/CompletableFuture;
official f
Lark;f()Ljava/util/concurrent/CompletableFuture;
-
combinePostProcessingFuture
- Mappings:
Namespace Name Mixin selector named combinePostProcessingFuture
Lnet/minecraft/server/world/ChunkHolder;combinePostProcessingFuture(Ljava/util/concurrent/CompletableFuture;)V
intermediary method_53680
Lnet/minecraft/class_3193;method_53680(Ljava/util/concurrent/CompletableFuture;)V
official a
Lark;a(Ljava/util/concurrent/CompletableFuture;)V
-
getSavingFuture
- Mappings:
Namespace Name Mixin selector named getSavingFuture
Lnet/minecraft/server/world/ChunkHolder;getSavingFuture()Ljava/util/concurrent/CompletableFuture;
intermediary method_14000
Lnet/minecraft/class_3193;method_14000()Ljava/util/concurrent/CompletableFuture;
official g
Lark;g()Ljava/util/concurrent/CompletableFuture;
-
isSavable
public boolean isSavable()- Mappings:
Namespace Name Mixin selector named isSavable
Lnet/minecraft/server/world/ChunkHolder;isSavable()Z
intermediary method_60436
Lnet/minecraft/class_3193;method_60436()Z
official h
Lark;h()Z
-
combineSavingFuture
- Specified by:
combineSavingFuture
in classAbstractChunkHolder
- Mappings:
Namespace Name Mixin selector named combineSavingFuture
Lnet/minecraft/world/chunk/AbstractChunkHolder;combineSavingFuture(Ljava/util/concurrent/CompletableFuture;)V
intermediary method_39967
Lnet/minecraft/class_9761;method_39967(Ljava/util/concurrent/CompletableFuture;)V
official b
Lary;b(Ljava/util/concurrent/CompletableFuture;)V
-
markForBlockUpdate
- Mappings:
Namespace Name Mixin selector named markForBlockUpdate
Lnet/minecraft/server/world/ChunkHolder;markForBlockUpdate(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_14002
Lnet/minecraft/class_3193;method_14002(Lnet/minecraft/class_2338;)Z
official a
Lark;a(Ljh;)Z
-
markForLightUpdate
- Parameters:
y
- chunk section y coordinate- Mappings:
Namespace Name Mixin selector named markForLightUpdate
Lnet/minecraft/server/world/ChunkHolder;markForLightUpdate(Lnet/minecraft/world/LightType;I)Z
intermediary method_14012
Lnet/minecraft/class_3193;method_14012(Lnet/minecraft/class_1944;I)Z
official a
Lark;a(Ldhq;I)Z
-
hasPendingUpdates
public boolean hasPendingUpdates()- Mappings:
Namespace Name Mixin selector named hasPendingUpdates
Lnet/minecraft/server/world/ChunkHolder;hasPendingUpdates()Z
intermediary method_65077
Lnet/minecraft/class_3193;method_65077()Z
official i
Lark;i()Z
-
flushUpdates
- Mappings:
Namespace Name Mixin selector named flushUpdates
Lnet/minecraft/server/world/ChunkHolder;flushUpdates(Lnet/minecraft/world/chunk/WorldChunk;)V
intermediary method_14006
Lnet/minecraft/class_3193;method_14006(Lnet/minecraft/class_2818;)V
official a
Lark;a(Ldzz;)V
-
tryUpdateBlockEntityAt
private void tryUpdateBlockEntityAt(List<ServerPlayerEntity> players, World world, BlockPos pos, BlockState state) - Mappings:
Namespace Name Mixin selector named tryUpdateBlockEntityAt
Lnet/minecraft/server/world/ChunkHolder;tryUpdateBlockEntityAt(Ljava/util/List;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary method_30311
Lnet/minecraft/class_3193;method_30311(Ljava/util/List;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official a
Lark;a(Ljava/util/List;Ldhh;Ljh;Ldxu;)V
-
sendBlockEntityUpdatePacket
private void sendBlockEntityUpdatePacket(List<ServerPlayerEntity> players, World world, BlockPos pos) - Mappings:
Namespace Name Mixin selector named sendBlockEntityUpdatePacket
Lnet/minecraft/server/world/ChunkHolder;sendBlockEntityUpdatePacket(Ljava/util/List;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_14009
Lnet/minecraft/class_3193;method_14009(Ljava/util/List;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
official a
Lark;a(Ljava/util/List;Ldhh;Ljh;)V
-
sendPacketToPlayers
- Mappings:
Namespace Name Mixin selector named sendPacketToPlayers
Lnet/minecraft/server/world/ChunkHolder;sendPacketToPlayers(Ljava/util/List;Lnet/minecraft/network/packet/Packet;)V
intermediary method_13992
Lnet/minecraft/class_3193;method_13992(Ljava/util/List;Lnet/minecraft/class_2596;)V
official a
Lark;a(Ljava/util/List;Laac;)V
-
getLevel
public int getLevel()- Specified by:
getLevel
in classAbstractChunkHolder
- Mappings:
Namespace Name Mixin selector named getLevel
Lnet/minecraft/world/chunk/AbstractChunkHolder;getLevel()I
intermediary method_14005
Lnet/minecraft/class_9761;method_14005()I
official j
Lary;j()I
-
getCompletedLevel
public int getCompletedLevel()- Specified by:
getCompletedLevel
in classAbstractChunkHolder
- Mappings:
Namespace Name Mixin selector named getCompletedLevel
Lnet/minecraft/world/chunk/AbstractChunkHolder;getCompletedLevel()I
intermediary method_17208
Lnet/minecraft/class_9761;method_17208()I
official k
Lary;k()I
-
setCompletedLevel
private void setCompletedLevel(int level) - Mappings:
Namespace Name Mixin selector named setCompletedLevel
Lnet/minecraft/server/world/ChunkHolder;setCompletedLevel(I)V
intermediary method_17207
Lnet/minecraft/class_3193;method_17207(I)V
official b
Lark;b(I)V
-
setLevel
public void setLevel(int level) - Mappings:
Namespace Name Mixin selector named setLevel
Lnet/minecraft/server/world/ChunkHolder;setLevel(I)V
intermediary method_15890
Lnet/minecraft/class_3193;method_15890(I)V
official a
Lark;a(I)V
-
increaseLevel
private void increaseLevel(ServerChunkLoadingManager chunkLoadingManager, CompletableFuture<OptionalChunk<WorldChunk>> chunkFuture, Executor executor, ChunkLevelType target) - Mappings:
Namespace Name Mixin selector named increaseLevel
Lnet/minecraft/server/world/ChunkHolder;increaseLevel(Lnet/minecraft/server/world/ServerChunkLoadingManager;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/Executor;Lnet/minecraft/server/world/ChunkLevelType;)V
intermediary method_31409
Lnet/minecraft/class_3193;method_31409(Lnet/minecraft/class_3898;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/Executor;Lnet/minecraft/class_3194;)V
official a
Lark;a(Larm;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/Executor;Larw;)V
-
decreaseLevel
- Mappings:
Namespace Name Mixin selector named decreaseLevel
Lnet/minecraft/server/world/ChunkHolder;decreaseLevel(Lnet/minecraft/server/world/ServerChunkLoadingManager;Lnet/minecraft/server/world/ChunkLevelType;)V
intermediary method_31408
Lnet/minecraft/class_3193;method_31408(Lnet/minecraft/class_3898;Lnet/minecraft/class_3194;)V
official a
Lark;a(Larm;Larw;)V
-
updateFutures
UpdatesFutures
indicating 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 updateFutures
Lnet/minecraft/server/world/ChunkHolder;updateFutures(Lnet/minecraft/server/world/ServerChunkLoadingManager;Ljava/util/concurrent/Executor;)V
intermediary method_14007
Lnet/minecraft/class_3193;method_14007(Lnet/minecraft/class_3898;Ljava/util/concurrent/Executor;)V
official a
Lark;a(Larm;Ljava/util/concurrent/Executor;)V
-
isAccessible
public boolean isAccessible()- Mappings:
Namespace Name Mixin selector named isAccessible
Lnet/minecraft/server/world/ChunkHolder;isAccessible()Z
intermediary method_20384
Lnet/minecraft/class_3193;method_20384()Z
official l
Lark;l()Z
-
updateAccessibleStatus
public void updateAccessibleStatus()- Mappings:
Namespace Name Mixin selector named updateAccessibleStatus
Lnet/minecraft/server/world/ChunkHolder;updateAccessibleStatus()V
intermediary method_20385
Lnet/minecraft/class_3193;method_20385()V
official m
Lark;m()V
-