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

eji
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_
final EntityTickList
b
tickingEntities
field_27733
entityList
f_171630_
private final TransientEntitySectionManager<Entity>
c
entityStorage
field_27734
entityManager
f_171631_
private final ClientPacketListener
z
connection
field_3727
netHandler
f_104561_
private final LevelRenderer
A
levelRenderer
field_17780
worldRenderer
f_104562_
private final ClientLevel$ClientLevelData
B
clientLevelData
field_24430
clientWorldProperties
f_104563_
private final DimensionSpecialEffects
C
effects
field_24606
dimensionEffects
f_104564_
private final Minecraft
D
minecraft
field_3729
client
f_104565_
final List<AbstractClientPlayer>
E
players
field_18226
players
f_104566_
private Scoreboard
F
scoreboard
field_3733
scoreboard
f_104555_
private final Map<String, MapItemSavedData>
G
mapData
field_17675
mapStates
f_104556_
private static final long
H
CLOUD_COLOR
field_32640
field_32640
f_171628_
private int
I
skyFlashTime
field_21526
lightningTicksLeft
f_104557_
private final it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap<ColorResolver, BlockTintCache>
J
tintCaches
field_21527
colorCache
f_104558_
private final ClientChunkCache
K
chunkSource
field_24605
chunkManager
f_104559_

Constructor summary

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

Method summary

Modifier and TypeMethod
public DimensionSpecialEffects
a()
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
m()
tickTime()
method_29090()
tickTime()
m_104826_()
public void
a(long arg0)
setGameTime(long arg0)
method_29089(long arg0)
setTime(long time)
m_104637_(long arg0)
public void
b(long arg0)
setDayTime(long arg0)
method_8435(long arg0)
setTimeOfDay(long timeOfDay)
m_104746_(long arg0)
public Iterable<Entity>
b()
entitiesForRendering()
method_18112()
getEntities()
m_104735_()
public void
c()
tickEntities()
method_18116()
tickEntities()
m_104804_()
public void
a(atg arg0)
tickNonPassenger(Entity arg0)
method_18646(class_1297 arg0)
tickEntity(Entity entity)
m_104639_(C_507_ arg0)
private void
a(atg arg0, atg 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(cmx arg0)
unload(LevelChunk arg0)
method_18110(class_2818 arg0)
unloadBlockEntities(WorldChunk chunk)
m_104665_(C_2137_ arg0)
public void
a(bvv arg0)
onChunkLoaded(ChunkPos arg0)
method_23782(class_1923 arg0)
resetChunkColor(ChunkPos chunkPos)
m_171649_(C_1560_ arg0)
public void
d()
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)
isChunkLoaded(int arg0, int arg1)
public int
e()
getEntityCount()
method_18120()
getRegularEntityCount()
m_104813_()
public void
a(int arg0, emj 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, atg 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, atg 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, atg$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)
getEntity(int arg0)
public void
c(gg arg0, ckt 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
U()
disconnect()
method_8525()
disconnect()
m_7462_()
public void
c(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 ClientLevel$MarkerParticleStatus
o()
getMarkerParticleStatus()
method_35752()
getBlockParticle()
m_171685_()
public void
a(int arg0, int arg1, int arg2, int arg3, Random arg4, eji$c arg5, gg$a arg6)
doAnimateTick(int arg0, int arg1, int arg2, int arg3, Random arg4, ClientLevel$MarkerParticleStatus arg5, BlockPos$MutableBlockPos arg6)
method_2943(int arg0, int arg1, int arg2, int arg3, Random arg4, class_638$class_6234 arg5, class_2338$class_2339 arg6)
randomBlockDisplayTick(int centerX, int centerY, int centerZ, int radius, Random random, ClientWorld$BlockParticle blockParticle, BlockPos$Mutable pos)
m_171634_(int p_171636_, int p_171637_, int p_171638_, int p_171639_, Random p_171640_, C_3899_$C_141672_ p_171641_, C_4675_$C_4681_ arg6)
private void
a(gg arg0, ckt arg1, ht 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(gg arg0, ht arg1, dnt 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, ht 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(bke arg0, double arg1, double arg2, double arg3, afd arg4, aff 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)
playSound(EntityHuman arg0, double arg1, double arg2, double arg3, SoundEffect arg4, SoundCategory arg5, float arg6, float arg7)
public void
a(bke arg0, atg arg1, afd arg2, aff 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)
playSound(EntityHuman arg0, Entity arg1, SoundEffect arg2, SoundCategory arg3, float arg4, float arg5)
public void
a(gg arg0, afd arg1, aff 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, afd arg3, aff 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, na 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(pk<?> 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_()
getCraftingManager()
public void
a(dny arg0)
setScoreboard(Scoreboard arg0)
method_2944(class_269 arg0)
setScoreboard(Scoreboard scoreboard)
m_104669_(C_3076_ arg0)
public TickList<Block>
N()
getBlockTicks()
method_8397()
getBlockTickScheduler()
m_6219_()
getBlockTickList()
public TickList<Fluid>
M()
getLiquidTicks()
method_8405()
getFluidTickScheduler()
m_6217_()
getFluidTickList()
public ClientChunkCache
f()
getChunkSource()
method_2935()
getChunkManager()
m_7726_()
getChunkProvider()
public MapItemSavedData
a(String arg0)
getMapData(String arg0)
method_17891(String arg0)
getMapState(String arg0)
m_7489_(String arg0)
public void
a(String arg0, dhs 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
v()
getFreeMapId()
method_17889()
getNextMapId()
m_7354_()
getWorldMapCount()
public Scoreboard
K()
getScoreboard()
method_8428()
getScoreboard()
m_6188_()
getScoreboard()
public TagContainer
r()
getTagManager()
method_8514()
getTagManager()
m_5999_()
public RegistryAccess
t()
registryAccess()
method_30349()
getRegistryManager()
m_5962_()
public void
a(gg arg0, ckt arg1, ckt 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)
notify(BlockPosition arg0, IBlockData arg1, IBlockData arg2, int arg3)
public void
b(gg arg0, ckt arg1, ckt 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
d(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
a(int arg0, gg 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, gg 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(bke arg0, int arg1, gg 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(ht 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)
addParticle(ParticleParam arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6)
public void
a(ht 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(ht 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(ht 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>
z()
players()
method_18456()
getPlayers()
m_6907_()
getPlayers()
public 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_6159_(int p_104612_, int p_104613_, int arg2)
public float
g(float arg0)
getSkyDarken(float arg0)
method_23783(float arg0)
method_23783(float arg0)
m_104805_(float arg0)
public Vec3
a(dna arg0, float arg1)
getSkyColor(Vec3 arg0, float arg1)
method_23777(class_243 arg0, float arg1)
getSkyColor(Vec3d arg0, float arg1)
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
g()
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(gl 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(gg arg0, ColorResolver arg1)
getBlockTint(BlockPos arg0, ColorResolver arg1)
method_23752(class_2338 arg0, ColorResolver arg1)
getColor(BlockPos arg0, ColorResolver arg1)
m_6171_(C_4675_ p_104701_, C_4982_ arg1)
public int
b(gg arg0, ColorResolver arg1)
calculateBlockTint(BlockPos arg0, ColorResolver arg1)
method_23780(class_2338 arg0, ColorResolver arg1)
calculateColor(BlockPos pos, ColorResolver colorResolver)
m_104762_(C_4675_ p_104764_, C_4982_ arg1)
public BlockPos
h()
getSharedSpawnPos()
method_27874()
getSpawnPos()
m_104822_()
public float
i()
getSharedSpawnAngle()
method_30671()
getSpawnAngle()
m_104823_()
public void
a(gg 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
k()
getLevelData()
method_28104()
getLevelProperties()
m_6106_()
getWorldData()
public void
a(atg arg0, cow arg1, gg 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>
l()
getAllMapData()
method_35754()
getMapStates()
m_171684_()
protected void
a(Map<String, dhs> 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>
I()
getEntities()
method_31592()
getEntityLookup()
m_142646_()
getEntities()
public String
J()
gatherChunkSourceStats()
method_31419()
asString()
m_46464_()
public void
a(gg arg0, ckt 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)