Package net.minecraft.world.chunk.light
Class LevelPropagator
java.lang.Object
net.minecraft.world.chunk.light.LevelPropagator
- Direct Known Subclasses:
ChunkPosDistanceLevelPropagator
,SectionDistanceLevelPropagator
- Mappings:
Namespace Name named net/minecraft/world/chunk/light/LevelPropagator
intermediary net/minecraft/class_3554
official eti
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
private boolean
protected final int
private static final int
private final PendingUpdateQueue
private final Long2ByteMap
-
Constructor Summary
ModifierConstructorDescriptionprotected
LevelPropagator
(int levelCount, int expectedLevelSize, int expectedTotalSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected final int
applyPendingUpdates
(int maxSteps) private int
calculateLevel
(int a, int b) protected abstract int
getLevel
(long id) int
protected abstract int
getPropagatedLevel
(long sourceId, long targetId, int level) protected final boolean
protected boolean
isMarker
(long id) protected abstract void
propagateLevel
(long id, int level, boolean decrease) protected final void
propagateLevel
(long sourceId, long targetId, int level, boolean decrease) protected abstract int
recalculateLevel
(long id, long excludedId, int maxLevel) protected void
removePendingUpdate
(long id) void
removePendingUpdateIf
(LongPredicate predicate) protected void
resetLevel
(long id) protected abstract void
setLevel
(long id, int level) protected void
updateLevel
(long sourceId, long id, int level, boolean decrease) private void
updateLevel
(long sourceId, long id, int level, int currentLevel, int int2, boolean decrease)
-
Field Details
-
field_43397
public static final long field_43397- See Also:
- Mappings:
Namespace Name Mixin selector named field_43397
Lnet/minecraft/world/chunk/light/LevelPropagator;field_43397:J
intermediary field_43397
Lnet/minecraft/class_3554;field_43397:J
official e
Leti;e:J
-
MAX_LEVEL
private static final int MAX_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LEVEL
Lnet/minecraft/world/chunk/light/LevelPropagator;MAX_LEVEL:I
intermediary field_31706
Lnet/minecraft/class_3554;field_31706:I
official a
Leti;a:I
-
levelCount
protected final int levelCount- Mappings:
Namespace Name Mixin selector named levelCount
Lnet/minecraft/world/chunk/light/LevelPropagator;levelCount:I
intermediary field_15783
Lnet/minecraft/class_3554;field_15783:I
official f
Leti;f:I
-
pendingUpdateQueue
- Mappings:
Namespace Name Mixin selector named pendingUpdateQueue
Lnet/minecraft/world/chunk/light/LevelPropagator;pendingUpdateQueue:Lnet/minecraft/world/chunk/light/PendingUpdateQueue;
intermediary field_43396
Lnet/minecraft/class_3554;field_43396:Lnet/minecraft/class_8257;
official b
Leti;b:Letm;
-
pendingUpdates
- Mappings:
Namespace Name Mixin selector named pendingUpdates
Lnet/minecraft/world/chunk/light/LevelPropagator;pendingUpdates:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
intermediary field_15784
Lnet/minecraft/class_3554;field_15784:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
official c
Leti;c:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
-
hasPendingUpdates
private volatile boolean hasPendingUpdates- Mappings:
Namespace Name Mixin selector named hasPendingUpdates
Lnet/minecraft/world/chunk/light/LevelPropagator;hasPendingUpdates:Z
intermediary field_15782
Lnet/minecraft/class_3554;field_15782:Z
official d
Leti;d:Z
-
-
Constructor Details
-
LevelPropagator
protected LevelPropagator(int levelCount, int expectedLevelSize, int expectedTotalSize) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/chunk/light/LevelPropagator;<init>(III)V
intermediary <init>
Lnet/minecraft/class_3554;<init>(III)V
official <init>
Leti;<init>(III)V
-
-
Method Details
-
removePendingUpdate
protected void removePendingUpdate(long id) - Mappings:
Namespace Name Mixin selector named removePendingUpdate
Lnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdate(J)V
intermediary method_15483
Lnet/minecraft/class_3554;method_15483(J)V
official e
Leti;e(J)V
-
removePendingUpdateIf
- Mappings:
Namespace Name Mixin selector named removePendingUpdateIf
Lnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdateIf(Ljava/util/function/LongPredicate;)V
intermediary method_24206
Lnet/minecraft/class_3554;method_24206(Ljava/util/function/LongPredicate;)V
official a
Leti;a(Ljava/util/function/LongPredicate;)V
-
calculateLevel
private int calculateLevel(int a, int b) - Mappings:
Namespace Name Mixin selector named calculateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;calculateLevel(II)I
intermediary method_50014
Lnet/minecraft/class_3554;method_50014(II)I
official a
Leti;a(II)I
-
resetLevel
protected void resetLevel(long id) - Mappings:
Namespace Name Mixin selector named resetLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;resetLevel(J)V
intermediary method_15491
Lnet/minecraft/class_3554;method_15491(J)V
official f
Leti;f(J)V
-
updateLevel
protected void updateLevel(long sourceId, long id, int level, boolean decrease) - Mappings:
Namespace Name Mixin selector named updateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;updateLevel(JJIZ)V
intermediary method_15478
Lnet/minecraft/class_3554;method_15478(JJIZ)V
official a
Leti;a(JJIZ)V
-
updateLevel
private void updateLevel(long sourceId, long id, int level, int currentLevel, int int2, boolean decrease) - Mappings:
Namespace Name Mixin selector named updateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;updateLevel(JJIIIZ)V
intermediary method_15482
Lnet/minecraft/class_3554;method_15482(JJIIIZ)V
official a
Leti;a(JJIIIZ)V
-
propagateLevel
protected final void propagateLevel(long sourceId, long targetId, int level, boolean decrease) - Mappings:
Namespace Name Mixin selector named propagateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JJIZ)V
intermediary method_15484
Lnet/minecraft/class_3554;method_15484(JJIZ)V
official b
Leti;b(JJIZ)V
-
hasPendingUpdates
protected final boolean hasPendingUpdates()- Mappings:
Namespace Name Mixin selector named hasPendingUpdates
Lnet/minecraft/world/chunk/light/LevelPropagator;hasPendingUpdates()Z
intermediary method_15489
Lnet/minecraft/class_3554;method_15489()Z
official c
Leti;c()Z
-
applyPendingUpdates
protected final int applyPendingUpdates(int maxSteps) - Mappings:
Namespace Name Mixin selector named applyPendingUpdates
Lnet/minecraft/world/chunk/light/LevelPropagator;applyPendingUpdates(I)I
intermediary method_15492
Lnet/minecraft/class_3554;method_15492(I)I
official b
Leti;b(I)I
-
getPendingUpdateCount
public int getPendingUpdateCount()- Mappings:
Namespace Name Mixin selector named getPendingUpdateCount
Lnet/minecraft/world/chunk/light/LevelPropagator;getPendingUpdateCount()I
intermediary method_24208
Lnet/minecraft/class_3554;method_24208()I
official d
Leti;d()I
-
isMarker
protected boolean isMarker(long id) - Mappings:
Namespace Name Mixin selector named isMarker
Lnet/minecraft/world/chunk/light/LevelPropagator;isMarker(J)Z
intermediary method_15494
Lnet/minecraft/class_3554;method_15494(J)Z
official a
Leti;a(J)Z
-
recalculateLevel
protected abstract int recalculateLevel(long id, long excludedId, int maxLevel) - Mappings:
Namespace Name Mixin selector named recalculateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;recalculateLevel(JJI)I
intermediary method_15486
Lnet/minecraft/class_3554;method_15486(JJI)I
official a
Leti;a(JJI)I
-
propagateLevel
protected abstract void propagateLevel(long id, int level, boolean decrease) - Mappings:
Namespace Name Mixin selector named propagateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JIZ)V
intermediary method_15487
Lnet/minecraft/class_3554;method_15487(JIZ)V
official a
Leti;a(JIZ)V
-
getLevel
protected abstract int getLevel(long id) - Mappings:
Namespace Name Mixin selector named getLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;getLevel(J)I
intermediary method_15480
Lnet/minecraft/class_3554;method_15480(J)I
official c
Leti;c(J)I
-
setLevel
protected abstract void setLevel(long id, int level) - Mappings:
Namespace Name Mixin selector named setLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;setLevel(JI)V
intermediary method_15485
Lnet/minecraft/class_3554;method_15485(JI)V
official a
Leti;a(JI)V
-
getPropagatedLevel
protected abstract int getPropagatedLevel(long sourceId, long targetId, int level) - Mappings:
Namespace Name Mixin selector named getPropagatedLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;getPropagatedLevel(JJI)I
intermediary method_15488
Lnet/minecraft/class_3554;method_15488(JJI)I
official b
Leti;b(JJI)I
-