net.minecraft.client.multiplayer

public class ClientLevel

extends Level

All mapped superinterfaces:

LevelAccessor, CommonLevelAccessor, EntityGetter, LevelReader, BlockAndTintGetter, BlockGetter, LevelHeightAccessor, CollisionGetter, BiomeManager$NoiseBiomeSource, LevelSimulatedRW, LevelSimulatedReader, LevelWriter, LevelTimeAccess

ems
net.minecraft.client.multiplayer.ClientLevel
net.minecraft.class_638
net.minecraft.client.world.ClientWorld
net.minecraft.src.C_3899_

Field summary

Modifier and TypeField
private static final double
a
FLUID_PARTICLE_SPAWN_OFFSET
field_32641
PARTICLE_Y_OFFSET
f_171629_
private static final int
b
NORMAL_LIGHT_UPDATES_PER_FRAME
field_34805
field_34805
f_194125_
private static final int
c
LIGHT_UPDATE_QUEUE_SIZE_THRESHOLD
field_34806
field_34806
f_194126_
final EntityTickList
y
tickingEntities
field_27733
entityList
f_171630_
private final TransientEntitySectionManager<Entity>
z
entityStorage
field_27734
entityManager
f_171631_
private final ClientPacketListener
A
connection
field_3727
networkHandler
f_104561_
private final LevelRenderer
B
levelRenderer
field_17780
worldRenderer
f_104562_
private final ClientLevel$ClientLevelData
C
clientLevelData
field_24430
clientWorldProperties
f_104563_
private final DimensionSpecialEffects
D
effects
field_24606
dimensionEffects
f_104564_
private final Minecraft
E
minecraft
field_3729
client
f_104565_
final List<AbstractClientPlayer>
F
players
field_18226
players
f_104566_
private Scoreboard
G
scoreboard
field_3733
scoreboard
f_104555_
private final Map<String, MapItemSavedData>
H
mapData
field_17675
mapStates
f_104556_
private static final long
I
CLOUD_COLOR
field_32640
field_32640
f_171628_
private int
J
skyFlashTime
field_21526
lightningTicksLeft
f_104557_
private final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver, BlockTintCache>
K
tintCaches
field_21527
colorCache
f_104558_
private final ClientChunkCache
L
chunkSource
field_24605
chunkManager
f_104559_
private final Deque<Runnable>
M
lightUpdateQueue
field_34804
chunkUpdaters
f_194122_
private int
N
serverSimulationDistance
field_35163
simulationDistance
f_194123_
private static final Set<Item>
O
MARKER_PARTICLE_ITEMS
field_35432
BLOCK_MARKER_ITEMS
f_194124_

Constructor summary

ModifierConstructor
public (ClientPacketListener netHandler, ClientLevel$ClientLevelData properties, ResourceKey<Level> registryRef, Holder<DimensionType> p_205509_, int loadDistance, int simulationDistance, Supplier<ProfilerFiller> profiler, LevelRenderer worldRenderer, boolean debugWorld, long seed)

Method summary

Modifier and TypeMethod
public void
a(Runnable arg0)
queueLightUpdate(Runnable arg0)
method_38536(Runnable arg0)
enqueueChunkUpdate(Runnable updater)
m_194171_(Runnable arg0)
public void
a()
pollLightUpdates()
method_38534()
runQueuedChunkUpdates()
m_194141_()
public boolean
b()
isLightUpdateQueueEmpty()
method_38743()
hasNoChunkUpdaters()
m_194173_()
public DimensionSpecialEffects
c()
effects()
method_28103()
getDimensionEffects()
m_104583_()
public void
a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
method_8441(BooleanSupplier arg0)
tick(BooleanSupplier shouldKeepTicking)
m_104726_(BooleanSupplier arg0)
private void
p()
tickTime()
method_29090()
tickTime()
m_104826_()
public void
b(long arg0)
setGameTime(long arg0)
method_29089(long arg0)
setTime(long time)
m_104637_(long arg0)
public void
c(long arg0)
setDayTime(long arg0)
method_8435(long arg0)
setTimeOfDay(long timeOfDay)
m_104746_(long arg0)
public Iterable<Entity>
d()
entitiesForRendering()
method_18112()
getEntities()
m_104735_()
public void
e()
tickEntities()
method_18116()
tickEntities()
m_104804_()
public boolean
h(axk arg0)
shouldTickDeath(Entity arg0)
method_38989(class_1297 arg0)
shouldUpdatePostDeath(Entity arg0)
m_183599_(C_507_ arg0)
public void
a(axk arg0)
tickNonPassenger(Entity arg0)
method_18646(class_1297 arg0)
tickEntity(Entity entity)
m_104639_(C_507_ arg0)
private void
a(axk arg0, axk arg1)
tickPassenger(Entity arg0, Entity arg1)
method_18647(class_1297 arg0, class_1297 arg1)
tickPassenger(Entity entity, Entity passenger)
m_104641_(C_507_ p_104643_, C_507_ arg1)
public void
a(cra arg0)
unload(LevelChunk arg0)
method_18110(class_2818 arg0)
unloadBlockEntities(WorldChunk chunk)
m_104665_(C_2137_ arg0)
public void
a(cac arg0)
onChunkLoaded(ChunkPos arg0)
method_23782(class_1923 arg0)
resetChunkColor(ChunkPos chunkPos)
m_171649_(C_1560_ arg0)
public void
f()
clearTintCaches()
method_23784()
reloadColor()
m_104810_()
public boolean
b(int arg0, int arg1)
hasChunk(int arg0, int arg1)
method_8393(int arg0, int arg1)
isChunkLoaded(int arg0, int arg1)
m_7232_(int p_104738_, int arg1)
public int
g()
getEntityCount()
method_18120()
getRegularEntityCount()
m_104813_()
public void
a(int arg0, ept arg1)
addPlayer(int arg0, AbstractClientPlayer arg1)
method_18107(int arg0, class_742 arg1)
addPlayer(int id, AbstractClientPlayerEntity player)
m_104630_(int p_104632_, C_4102_ arg1)
public void
a(int arg0, axk arg1)
putNonPlayerEntity(int arg0, Entity arg1)
method_2942(int arg0, class_1297 arg1)
addEntity(int id, Entity entity)
m_104627_(int p_104629_, C_507_ arg1)
private void
b(int arg0, axk arg1)
addEntity(int arg0, Entity arg1)
method_18114(int arg0, class_1297 arg1)
addEntityPrivate(int id, Entity entity)
m_104739_(int p_104741_, C_507_ arg1)
public void
a(int arg0, axk$c arg1)
removeEntity(int arg0, Entity$RemovalReason arg1)
method_2945(int arg0, class_1297$class_5529 arg1)
removeEntity(int entityId, Entity$RemovalReason removalReason)
m_171642_(int p_171644_, C_507_$C_141065_ arg1)
public Entity
a(int arg0)
getEntity(int arg0)
method_8469(int arg0)
getEntityById(int arg0)
m_6815_(int arg0)
public void
c(gj arg0, cov arg1)
setKnownState(BlockPos arg0, BlockState arg1)
method_2937(class_2338 arg0, class_2680 arg1)
setBlockStateWithoutNeighborUpdates(BlockPos pos, BlockState state)
m_104755_(C_4675_ p_104757_, C_2064_ arg1)
public void
T()
disconnect()
method_8525()
disconnect()
m_7462_()
public void
b(int arg0, int arg1, int arg2)
animateTick(int arg0, int arg1, int arg2)
method_2941(int arg0, int arg1, int arg2)
doRandomBlockDisplayTicks(int centerX, int centerY, int centerZ)
m_104784_(int p_104786_, int p_104787_, int arg2)
private Block
t()
getMarkerParticleTarget()
method_35752()
getBlockParticle()
m_194187_()
public void
a(int arg0, int arg1, int arg2, int arg3, Random arg4, cdq arg5, gj$a arg6)
doAnimateTick(int arg0, int arg1, int arg2, int arg3, Random arg4, Block arg5, BlockPos$MutableBlockPos arg6)
method_2943(int arg0, int arg1, int arg2, int arg3, Random arg4, class_2248 arg5, class_2338$class_2339 arg6)
randomBlockDisplayTick(int centerX, int centerY, int centerZ, int radius, Random random, Block block, BlockPos$Mutable pos)
m_194142_(int p_194144_, int p_194145_, int p_194146_, int p_194147_, Random p_194148_, C_1706_ p_194149_, C_4675_$C_4681_ arg6)
private void
a(gj arg0, cov arg1, ia arg2, boolean arg3)
trySpawnDripParticles(BlockPos arg0, BlockState arg1, ParticleOptions arg2, boolean arg3)
method_2938(class_2338 arg0, class_2680 arg1, class_2394 arg2, boolean arg3)
addParticle(BlockPos pos, BlockState state, ParticleEffect parameters, boolean arg3)
m_104689_(C_4675_ p_104691_, C_2064_ p_104692_, C_4756_ p_104693_, boolean arg3)
private void
a(gj arg0, ia arg1, dqh arg2, double arg3)
spawnParticle(BlockPos arg0, ParticleOptions arg1, VoxelShape arg2, double arg3)
method_2948(class_2338 arg0, class_2394 arg1, class_265 arg2, double arg3)
addParticle(BlockPos pos, ParticleEffect parameters, VoxelShape shape, double y)
m_104694_(C_4675_ p_104696_, C_4756_ p_104697_, C_3072_ p_104698_, double arg3)
private void
a(double arg0, double arg1, double arg2, double arg3, double arg4, ia arg5)
spawnFluidParticle(double arg0, double arg1, double arg2, double arg3, double arg4, ParticleOptions arg5)
method_2932(double arg0, double arg1, double arg2, double arg3, double arg4, class_2394 arg5)
addParticle(double minX, double maxX, double minZ, double maxZ, double y, ParticleEffect parameters)
m_104592_(double p_104594_, double p_104596_, double p_104598_, double arg3, double arg4, C_4756_ arg5)
public CrashReportCategory
a(q arg0)
fillReportDetails(CrashReport arg0)
method_8538(class_128 arg0)
addDetailsToCrashReport(CrashReport arg0)
m_6026_(C_4883_ arg0)
public void
a(boj arg0, double arg1, double arg2, double arg3, ahj arg4, ahl arg5, float arg6, float arg7)
playSound(Player arg0, double arg1, double arg2, double arg3, SoundEvent arg4, SoundSource arg5, float arg6, float arg7)
method_8465(class_1657 arg0, double arg1, double arg2, double arg3, class_3414 arg4, class_3419 arg5, float arg6, float arg7)
playSound(PlayerEntity arg0, double arg1, double arg2, double arg3, SoundEvent arg4, SoundCategory arg5, float arg6, float arg7)
m_6263_(C_1141_ p_104646_, double p_104647_, double p_104649_, double p_104651_, C_123_ arg4, C_125_ arg5, float arg6, float arg7)
public void
a(boj arg0, axk arg1, ahj arg2, ahl arg3, float arg4, float arg5)
playSound(Player arg0, Entity arg1, SoundEvent arg2, SoundSource arg3, float arg4, float arg5)
method_8449(class_1657 arg0, class_1297 arg1, class_3414 arg2, class_3419 arg3, float arg4, float arg5)
playSoundFromEntity(PlayerEntity arg0, Entity arg1, SoundEvent arg2, SoundCategory arg3, float arg4, float arg5)
m_6269_(C_1141_ p_104660_, C_507_ p_104661_, C_123_ p_104662_, C_125_ p_104663_, float p_104664_, float arg5)
public void
a(gj arg0, ahj arg1, ahl arg2, float arg3, float arg4, boolean arg5)
playLocalSound(BlockPos arg0, SoundEvent arg1, SoundSource arg2, float arg3, float arg4, boolean arg5)
method_2947(class_2338 arg0, class_3414 arg1, class_3419 arg2, float arg3, float arg4, boolean arg5)
playSound(BlockPos pos, SoundEvent sound, SoundCategory category, float volume, float pitch, boolean useDistance)
m_104677_(C_4675_ p_104679_, C_123_ p_104680_, C_125_ p_104681_, float p_104682_, float p_104683_, boolean arg5)
public void
a(double arg0, double arg1, double arg2, ahj arg3, ahl arg4, float arg5, float arg6, boolean arg7)
playLocalSound(double arg0, double arg1, double arg2, SoundEvent arg3, SoundSource arg4, float arg5, float arg6, boolean arg7)
method_8486(double arg0, double arg1, double arg2, class_3414 arg3, class_3419 arg4, float arg5, float arg6, boolean arg7)
playSound(double arg0, double arg1, double arg2, SoundEvent arg3, SoundCategory arg4, float arg5, float arg6, boolean arg7)
m_7785_(double p_104601_, double p_104603_, double p_104605_, C_123_ p_104607_, C_125_ arg4, float arg5, float arg6, boolean arg7)
public void
a(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, ok arg6)
createFireworks(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, CompoundTag arg6)
method_8547(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, class_2487 arg6)
addFireworkParticle(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, NbtCompound arg6)
m_7228_(double p_104586_, double p_104588_, double p_104590_, double arg3, double arg4, double arg5, C_4917_ arg6)
public void
a(rc<?> arg0)
sendPacketToServer(Packet<?> arg0)
method_8522(class_2596<?> arg0)
sendPacket(Packet<?> arg0)
m_5503_(C_5028_<?> arg0)
public RecipeManager
q()
getRecipeManager()
method_8433()
getRecipeManager()
m_7465_()
public void
a(dqm arg0)
setScoreboard(Scoreboard arg0)
method_2944(class_269 arg0)
setScoreboard(Scoreboard scoreboard)
m_104669_(C_3076_ arg0)
public LevelTickAccess<Block>
M()
getBlockTicks()
method_8397()
getBlockTickScheduler()
m_183326_()
public LevelTickAccess<Fluid>
L()
getFluidTicks()
method_8405()
getFluidTickScheduler()
m_183324_()
public ClientChunkCache
h()
getChunkSource()
method_2935()
getChunkManager()
m_7726_()
public MapItemSavedData
a(String arg0)
getMapData(String arg0)
method_17891(String arg0)
getMapState(String arg0)
m_7489_(String arg0)
public void
a(String arg0, dkf arg1)
setMapData(String arg0, MapItemSavedData arg1)
method_17890(String arg0, class_22 arg1)
putMapState(String arg0, MapState arg1)
m_142325_(String p_171671_, C_2771_ arg1)
public int
u()
getFreeMapId()
method_17889()
getNextMapId()
m_7354_()
public Scoreboard
J()
getScoreboard()
method_8428()
getScoreboard()
m_6188_()
public RegistryAccess
s()
registryAccess()
method_30349()
getRegistryManager()
m_5962_()
public void
a(gj arg0, cov arg1, cov arg2, int arg3)
sendBlockUpdated(BlockPos arg0, BlockState arg1, BlockState arg2, int arg3)
method_8413(class_2338 arg0, class_2680 arg1, class_2680 arg2, int arg3)
updateListeners(BlockPos arg0, BlockState arg1, BlockState arg2, int arg3)
m_7260_(C_4675_ p_104686_, C_2064_ p_104687_, C_2064_ p_104688_, int arg3)
public void
b(gj arg0, cov arg1, cov arg2)
setBlocksDirty(BlockPos arg0, BlockState arg1, BlockState arg2)
method_16109(class_2338 arg0, class_2680 arg1, class_2680 arg2)
scheduleBlockRerenderIfNeeded(BlockPos arg0, BlockState arg1, BlockState arg2)
m_6550_(C_4675_ p_104760_, C_2064_ p_104761_, C_2064_ arg2)
public void
c(int arg0, int arg1, int arg2)
setSectionDirtyWithNeighbors(int arg0, int arg1, int arg2)
method_18113(int arg0, int arg1, int arg2)
scheduleBlockRenders(int x, int y, int z)
m_104793_(int p_104795_, int p_104796_, int arg2)
public void
g(int arg0, int arg1)
setLightReady(int arg0, int arg1)
method_39849(int arg0, int arg1)
markChunkRenderability(int chunkX, int chunkZ)
m_197405_(int p_197407_, int arg1)
public void
a(int arg0, gj arg1, int arg2)
destroyBlockProgress(int arg0, BlockPos arg1, int arg2)
method_8517(int arg0, class_2338 arg1, int arg2)
setBlockBreakingInfo(int arg0, BlockPos arg1, int arg2)
m_6801_(int p_104635_, C_4675_ p_104636_, int arg2)
public void
b(int arg0, gj arg1, int arg2)
globalLevelEvent(int arg0, BlockPos arg1, int arg2)
method_8474(int arg0, class_2338 arg1, int arg2)
syncGlobalEvent(int arg0, BlockPos arg1, int arg2)
m_6798_(int p_104744_, C_4675_ p_104745_, int arg2)
public void
a(boj arg0, int arg1, gj arg2, int arg3)
levelEvent(Player arg0, int arg1, BlockPos arg2, int arg3)
method_8444(class_1657 arg0, int arg1, class_2338 arg2, int arg3)
syncWorldEvent(PlayerEntity arg0, int arg1, BlockPos arg2, int arg3)
m_5898_(C_1141_ p_104655_, int p_104656_, C_4675_ p_104657_, int arg3)
public void
a(ia arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6)
addParticle(ParticleOptions arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6)
method_8406(class_2394 arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6)
addParticle(ParticleEffect arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6)
m_7106_(C_4756_ p_104707_, double p_104708_, double p_104710_, double p_104712_, double arg4, double arg5, double arg6)
public void
a(ia arg0, boolean arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7)
addParticle(ParticleOptions arg0, boolean arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7)
method_8466(class_2394 arg0, boolean arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7)
addParticle(ParticleEffect arg0, boolean arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7)
m_6493_(C_4756_ p_104715_, boolean p_104716_, double p_104717_, double p_104719_, double p_104721_, double arg5, double arg6, double arg7)
public void
b(ia arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6)
addAlwaysVisibleParticle(ParticleOptions arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6)
method_8494(class_2394 arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6)
addImportantParticle(ParticleEffect arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6)
m_7107_(C_4756_ p_104767_, double p_104768_, double p_104770_, double p_104772_, double arg4, double arg5, double arg6)
public void
b(ia arg0, boolean arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7)
addAlwaysVisibleParticle(ParticleOptions arg0, boolean arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7)
method_17452(class_2394 arg0, boolean arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7)
addImportantParticle(ParticleEffect arg0, boolean arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7)
m_6485_(C_4756_ p_104775_, boolean p_104776_, double p_104777_, double p_104779_, double p_104781_, double arg5, double arg6, double arg7)
public List<AbstractClientPlayer>
y()
players()
method_18456()
getPlayers()
m_6907_()
public Holder<Biome>
a(int arg0, int arg1, int arg2)
getUncachedNoiseBiome(int arg0, int arg1, int arg2)
method_22387(int arg0, int arg1, int arg2)
getGeneratorStoredBiome(int arg0, int arg1, int arg2)
m_203675_(int p_205517_, int p_205518_, int arg2)
public float
g(float arg0)
getSkyDarken(float arg0)
method_23783(float arg0)
getStarBrightness(float tickDelta)
m_104805_(float arg0)
public Vec3
a(dpo arg0, float arg1)
getSkyColor(Vec3 arg0, float arg1)
method_23777(class_243 arg0, float arg1)
getSkyColor(Vec3d cameraPos, float tickDelta)
m_171660_(C_3046_ p_171662_, float arg1)
public Vec3
h(float arg0)
getCloudColor(float arg0)
method_23785(float arg0)
getCloudsColor(float tickDelta)
m_104808_(float arg0)
public float
i(float arg0)
getStarBrightness(float arg0)
method_23787(float arg0)
method_23787(float arg0)
m_104811_(float arg0)
public int
i()
getSkyFlashTime()
method_23789()
getLightningTicksLeft()
m_104819_()
public void
c(int arg0)
setSkyFlashTime(int arg0)
method_8509(int arg0)
setLightningTicksLeft(int arg0)
m_6580_(int arg0)
public float
a(go arg0, boolean arg1)
getShade(Direction arg0, boolean arg1)
method_24852(class_2350 arg0, boolean arg1)
getBrightness(Direction arg0, boolean arg1)
m_7717_(C_4687_ p_104704_, boolean arg1)
public int
a(gj arg0, cag arg1)
getBlockTint(BlockPos arg0, ColorResolver arg1)
method_23752(class_2338 arg0, class_6539 arg1)
getColor(BlockPos arg0, ColorResolver arg1)
m_6171_(C_4675_ p_104701_, C_4982_ arg1)
public int
b(gj arg0, cag arg1)
calculateBlockTint(BlockPos arg0, ColorResolver arg1)
method_23780(class_2338 arg0, class_6539 arg1)
calculateColor(BlockPos pos, ColorResolver colorResolver)
m_104762_(C_4675_ p_104764_, C_4982_ arg1)
public BlockPos
j()
getSharedSpawnPos()
method_27874()
getSpawnPos()
m_104822_()
public float
k()
getSharedSpawnAngle()
method_30671()
getSpawnAngle()
m_104823_()
public void
a(gj arg0, float arg1)
setDefaultSpawnPos(BlockPos arg0, float arg1)
method_27873(class_2338 arg0, float arg1)
setSpawnPos(BlockPos pos, float angle)
m_104752_(C_4675_ p_104754_, float arg1)
public ClientLevel$ClientLevelData
l()
getLevelData()
method_28104()
getLevelProperties()
m_6106_()
public void
a(axk arg0, csy arg1, gj arg2)
gameEvent(Entity arg0, GameEvent arg1, BlockPos arg2)
method_32888(class_1297 arg0, class_5712 arg1, class_2338 arg2)
emitGameEvent(Entity arg0, GameEvent arg1, BlockPos arg2)
m_142346_(C_507_ p_171647_, C_141307_ p_171648_, C_4675_ arg2)
protected Map<String, MapItemSavedData>
m()
getAllMapData()
method_35754()
getMapStates()
m_171684_()
protected void
a(Map<String, dkf> arg0)
addMapData(Map<String, MapItemSavedData> arg0)
method_35753(Map<String, class_22> arg0)
putMapStates(Map<String, MapState> mapStates)
m_171672_(Map<String, C_2771_> arg0)
protected LevelEntityGetter<Entity>
H()
getEntities()
method_31592()
getEntityLookup()
m_142646_()
public String
I()
gatherChunkSourceStats()
method_31419()
asString()
m_46464_()
public void
a(gj arg0, cov arg1)
addDestroyBlockEffect(BlockPos arg0, BlockState arg1)
method_31595(class_2338 arg0, class_2680 arg1)
addBlockBreakParticles(BlockPos arg0, BlockState arg1)
m_142052_(C_4675_ p_171668_, C_2064_ arg1)
public void
b(int arg0)
setServerSimulationDistance(int arg0)
method_39023(int arg0)
setSimulationDistance(int simulationDistance)
m_194174_(int arg0)
public int
o()
getServerSimulationDistance()
method_39024()
getSimulationDistance()
m_194186_()