public class ChunkHolder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ChunkHolder.IChunkLoadingError |
static interface |
ChunkHolder.IListener |
static interface |
ChunkHolder.IPlayerProvider |
static class |
ChunkHolder.LocationType |
Modifier and Type | Field and Description |
---|---|
private boolean |
accessible |
private int |
blockChangeMask |
private int |
blockLightChangeMask |
private java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> |
borderFuture |
private int |
boundaryMask |
private short[] |
changedBlockPositions |
private int |
changedBlocks |
private static java.util.List<ChunkStatus> |
CHUNK_STATUS_LIST |
private int |
chunkLevel |
private java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> |
entityTickingFuture |
private java.util.concurrent.atomic.AtomicReferenceArray<java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>> |
field_219312_g |
private java.util.concurrent.CompletableFuture<IChunk> |
field_219315_j |
private int |
field_219318_m |
private ChunkHolder.IListener |
field_219327_v |
private WorldLightManager |
lightManager |
private static ChunkHolder.LocationType[] |
LOCATION_TYPES |
static com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError> |
MISSING_CHUNK |
static java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> |
MISSING_CHUNK_FUTURE |
private ChunkHolder.IPlayerProvider |
playerProvider |
private ChunkPos |
pos |
private int |
prevChunkLevel |
private int |
skyLightChangeMask |
private java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> |
tickingFuture |
static com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError> |
UNLOADED_CHUNK |
private static java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> |
UNLOADED_CHUNK_FUTURE |
Constructor and Description |
---|
ChunkHolder(ChunkPos p_i50716_1_,
int p_i50716_2_,
WorldLightManager p_i50716_3_,
ChunkHolder.IListener p_i50716_4_,
ChunkHolder.IPlayerProvider p_i50716_5_) |
Modifier and Type | Method and Description |
---|---|
private void |
chain(java.util.concurrent.CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends IChunk,ChunkHolder.IChunkLoadingError>> eitherChunk) |
private void |
func_219275_d(int p_219275_1_) |
java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> |
func_219276_a(ChunkStatus p_219276_1_,
ChunkManager p_219276_2_) |
int |
func_219281_j() |
ChunkStatus |
func_219285_d() |
IChunk |
func_219287_e() |
void |
func_219294_a(ChunkPrimerWrapper p_219294_1_) |
ChunkHolder.LocationType |
func_219300_g() |
java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> |
func_219301_a(ChunkStatus p_219301_1_) |
java.util.concurrent.CompletableFuture<IChunk> |
func_219302_f() |
java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> |
func_225410_b(ChunkStatus p_225410_1_) |
java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> |
getBorderFuture() |
Chunk |
getChunkIfComplete() |
int |
getChunkLevel() |
static ChunkStatus |
getChunkStatusFromLevel(int level) |
java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> |
getEntityTickingFuture() |
static ChunkHolder.LocationType |
getLocationTypeFromLevel(int level) |
ChunkPos |
getPosition() |
java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> |
getTickingFuture() |
boolean |
isAccessible() |
void |
markBlockChanged(int x,
int y,
int z) |
void |
markLightChanged(LightType type,
int sectionY) |
protected void |
processUpdates(ChunkManager chunkManagerIn) |
void |
sendChanges(Chunk chunkIn) |
private void |
sendTileEntity(World worldIn,
BlockPos posIn) |
private void |
sendToTracking(IPacket<?> packetIn,
boolean boundaryOnly) |
void |
setChunkLevel(int level) |
void |
updateAccessible() |
public static final com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError> MISSING_CHUNK
public static final java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> MISSING_CHUNK_FUTURE
public static final com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError> UNLOADED_CHUNK
private static final java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> UNLOADED_CHUNK_FUTURE
private static final java.util.List<ChunkStatus> CHUNK_STATUS_LIST
private static final ChunkHolder.LocationType[] LOCATION_TYPES
private final java.util.concurrent.atomic.AtomicReferenceArray<java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>> field_219312_g
private volatile java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> borderFuture
private volatile java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> tickingFuture
private volatile java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> entityTickingFuture
private java.util.concurrent.CompletableFuture<IChunk> field_219315_j
private int prevChunkLevel
private int chunkLevel
private int field_219318_m
private final ChunkPos pos
private short[] changedBlockPositions
private int changedBlocks
private int blockChangeMask
private int boundaryMask
private int blockLightChangeMask
private int skyLightChangeMask
private final WorldLightManager lightManager
private final ChunkHolder.IListener field_219327_v
private final ChunkHolder.IPlayerProvider playerProvider
private boolean accessible
public ChunkHolder(ChunkPos p_i50716_1_, int p_i50716_2_, WorldLightManager p_i50716_3_, ChunkHolder.IListener p_i50716_4_, ChunkHolder.IPlayerProvider p_i50716_5_)
public java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> func_219301_a(ChunkStatus p_219301_1_)
public java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> func_225410_b(ChunkStatus p_225410_1_)
public java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> getTickingFuture()
public java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> getEntityTickingFuture()
public java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> getBorderFuture()
@Nullable public Chunk getChunkIfComplete()
@Nullable public ChunkStatus func_219285_d()
@Nullable public IChunk func_219287_e()
public java.util.concurrent.CompletableFuture<IChunk> func_219302_f()
public void markBlockChanged(int x, int y, int z)
public void markLightChanged(LightType type, int sectionY)
public void sendChanges(Chunk chunkIn)
private void sendToTracking(IPacket<?> packetIn, boolean boundaryOnly)
public java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> func_219276_a(ChunkStatus p_219276_1_, ChunkManager p_219276_2_)
private void chain(java.util.concurrent.CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends IChunk,ChunkHolder.IChunkLoadingError>> eitherChunk)
public ChunkHolder.LocationType func_219300_g()
public ChunkPos getPosition()
public int getChunkLevel()
public int func_219281_j()
private void func_219275_d(int p_219275_1_)
public void setChunkLevel(int level)
protected void processUpdates(ChunkManager chunkManagerIn)
public static ChunkStatus getChunkStatusFromLevel(int level)
public static ChunkHolder.LocationType getLocationTypeFromLevel(int level)
public boolean isAccessible()
public void updateAccessible()
public void func_219294_a(ChunkPrimerWrapper p_219294_1_)