public class ClientChunkProvider extends AbstractChunkProvider
Modifier and Type | Class and Description |
---|---|
(package private) class |
ClientChunkProvider.ChunkArray |
Modifier and Type | Field and Description |
---|---|
private ClientChunkProvider.ChunkArray |
array |
private Chunk |
empty |
private WorldLightManager |
lightManager |
private static org.apache.logging.log4j.Logger |
LOGGER |
private ClientWorld |
world |
Constructor and Description |
---|
ClientChunkProvider(ClientWorld clientWorldIn,
int viewDistance) |
Modifier and Type | Method and Description |
---|---|
private static int |
adjustViewDistance(int p_217254_0_) |
boolean |
canTick(BlockPos pos) |
Chunk |
getChunk(int chunkX,
int chunkZ,
ChunkStatus requiredStatus,
boolean load) |
WorldLightManager |
getLightManager() |
int |
getLoadedChunksCount() |
IBlockReader |
getWorld() |
boolean |
isChunkLoaded(ChunkPos pos) |
boolean |
isChunkLoaded(Entity entityIn) |
private static boolean |
isValid(Chunk chunkIn,
int x,
int z) |
Chunk |
loadChunk(int chunkX,
int chunkZ,
BiomeContainer biomeContainerIn,
PacketBuffer packetIn,
CompoundNBT nbtTagIn,
int sizeIn) |
java.lang.String |
makeString() |
void |
markLightChanged(LightType type,
SectionPos pos) |
void |
setCenter(int x,
int z) |
void |
setViewDistance(int viewDistance) |
void |
tick(java.util.function.BooleanSupplier hasTimeLeft) |
void |
unloadChunk(int x,
int z) |
chunkExists, close, forceChunk, getChunk, getChunkForLight, getChunkWithoutLoading, setAllowedSpawnTypes
private static final org.apache.logging.log4j.Logger LOGGER
private final Chunk empty
private final WorldLightManager lightManager
private volatile ClientChunkProvider.ChunkArray array
private final ClientWorld world
public ClientChunkProvider(ClientWorld clientWorldIn, int viewDistance)
public WorldLightManager getLightManager()
getLightManager
in class AbstractChunkProvider
private static boolean isValid(@Nullable Chunk chunkIn, int x, int z)
public void unloadChunk(int x, int z)
@Nullable public Chunk getChunk(int chunkX, int chunkZ, ChunkStatus requiredStatus, boolean load)
getChunk
in class AbstractChunkProvider
public IBlockReader getWorld()
@Nullable public Chunk loadChunk(int chunkX, int chunkZ, @Nullable BiomeContainer biomeContainerIn, PacketBuffer packetIn, CompoundNBT nbtTagIn, int sizeIn)
public void tick(java.util.function.BooleanSupplier hasTimeLeft)
tick
in class AbstractChunkProvider
public void setCenter(int x, int z)
public void setViewDistance(int viewDistance)
private static int adjustViewDistance(int p_217254_0_)
public java.lang.String makeString()
makeString
in class AbstractChunkProvider
public int getLoadedChunksCount()
public void markLightChanged(LightType type, SectionPos pos)
public boolean canTick(BlockPos pos)
canTick
in class AbstractChunkProvider
public boolean isChunkLoaded(ChunkPos pos)
isChunkLoaded
in class AbstractChunkProvider
public boolean isChunkLoaded(Entity entityIn)
isChunkLoaded
in class AbstractChunkProvider