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 apr
-
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) private void
combineSavingFuture
(CompletableFuture<?> savingFuture) private void
decreaseLevel
(ServerChunkLoadingManager chunkLoadingManager, ChunkLevelType target) void
flushUpdates
(WorldChunk chunk) int
int
getLevel()
private void
increaseLevel
(ServerChunkLoadingManager chunkLoadingManager, CompletableFuture<OptionalChunk<WorldChunk>> chunkFuture, Executor executor, ChunkLevelType target) boolean
boolean
void
void
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, getRefCount, 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
Lapr;a:Lapu;
-
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
Lapr;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
Lapr;f:Ldci;
-
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
Lapr;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
Lapr;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
Lapr;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
Lapr;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
Lapr;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
Lapr;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
Lapr;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
Lapr;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
Lapr;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
Lapr;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
Lapr;q:Leny;
-
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
Lapr;r:Lapr$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
Lapr;s:Lapr$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
Lapr;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
Lapr;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
Lapr;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
Lapr;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>
Lapr;<init>(Ldbn;ILdci;Leny;Lapr$a;Lapr$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
Lapr;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
Lapr;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
Lapr;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
Lapr;d()Ldur;
-
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
Lapr;e()Ldur;
-
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
Lapr;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
Lapr;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
Lapr;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
Lapr;h()Z
-
combineSavingFuture
- Mappings:
Namespace Name Mixin selector named combineSavingFuture
Lnet/minecraft/server/world/ChunkHolder;combineSavingFuture(Ljava/util/concurrent/CompletableFuture;)V
intermediary method_39967
Lnet/minecraft/class_3193;method_39967(Ljava/util/concurrent/CompletableFuture;)V
official b
Lapr;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;)V
intermediary method_14002
Lnet/minecraft/class_3193;method_14002(Lnet/minecraft/class_2338;)V
official a
Lapr;a(Lja;)V
-
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)V
intermediary method_14012
Lnet/minecraft/class_3193;method_14012(Lnet/minecraft/class_1944;I)V
official a
Lapr;a(Ldcp;I)V
-
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
Lapr;a(Ldur;)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
Lapr;a(Ljava/util/List;Ldcg;Lja;Ldsl;)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
Lapr;a(Ljava/util/List;Ldcg;Lja;)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
Lapr;a(Ljava/util/List;Lzb;)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 i
Laqf;i()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 j
Laqf;j()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
Lapr;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
Lapr;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
Lapr;a(Lapt;Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/Executor;Laqd;)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
Lapr;a(Lapt;Laqd;)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
Lapr;a(Lapt;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 k
Lapr;k()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 l
Lapr;l()V
-