Package net.minecraft.world.chunk.light
Class LevelPropagator
java.lang.Object
net.minecraft.world.chunk.light.LevelPropagator
- Direct Known Subclasses:
ChunkLightProvider
,ChunkPosDistanceLevelPropagator
,SectionDistanceLevelPropagator
- Mappings:
Namespace Name official dvw
intermediary net/minecraft/class_3554
named net/minecraft/world/chunk/light/LevelPropagator
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final int
private static final int
private int
private final LongLinkedOpenHashSet[]
private final Long2ByteMap
-
Constructor Summary
ModifierConstructorDescriptionprotected
LevelPropagator
(int levelCount, int expectedLevelSize, int expectedTotalSize) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addPendingUpdate
(long id, int level, int targetLevel) protected final int
applyPendingUpdates
(int maxSteps) protected abstract int
getLevel
(long id) int
protected abstract int
getPropagatedLevel
(long sourceId, long targetId, int level) protected final boolean
private void
increaseMinPendingLevel
(int maxLevel) protected abstract boolean
isMarker
(long id) private int
minLevel
(int a, int b) 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) private void
removePendingUpdate
(long id, int level, int levelCount, boolean removeFully) 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 pendingLevel, boolean decrease)
-
Field Details
-
MAX_LEVEL
private static final int MAX_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ldvw;a:I
intermediary field_31706
Lnet/minecraft/class_3554;field_31706:I
named MAX_LEVEL
Lnet/minecraft/world/chunk/light/LevelPropagator;MAX_LEVEL:I
-
levelCount
private final int levelCount- Mappings:
Namespace Name Mixin selector official b
Ldvw;b:I
intermediary field_15783
Lnet/minecraft/class_3554;field_15783:I
named levelCount
Lnet/minecraft/world/chunk/light/LevelPropagator;levelCount:I
-
pendingIdUpdatesByLevel
- Mappings:
Namespace Name Mixin selector official c
Ldvw;c:[Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
intermediary field_15785
Lnet/minecraft/class_3554;field_15785:[Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
named pendingIdUpdatesByLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;pendingIdUpdatesByLevel:[Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
-
pendingUpdates
- Mappings:
Namespace Name Mixin selector official d
Ldvw;d:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
intermediary field_15784
Lnet/minecraft/class_3554;field_15784:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
named pendingUpdates
Lnet/minecraft/world/chunk/light/LevelPropagator;pendingUpdates:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
-
minPendingLevel
private int minPendingLevel- Mappings:
Namespace Name Mixin selector official e
Ldvw;e:I
intermediary field_15781
Lnet/minecraft/class_3554;field_15781:I
named minPendingLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;minPendingLevel:I
-
hasPendingUpdates
private volatile boolean hasPendingUpdates- Mappings:
Namespace Name Mixin selector official f
Ldvw;f:Z
intermediary field_15782
Lnet/minecraft/class_3554;field_15782:Z
named hasPendingUpdates
Lnet/minecraft/world/chunk/light/LevelPropagator;hasPendingUpdates:Z
-
-
Constructor Details
-
LevelPropagator
protected LevelPropagator(int levelCount, int expectedLevelSize, int expectedTotalSize) - Mappings:
Namespace Name Mixin selector official <init>
Ldvw;<init>(III)V
intermediary <init>
Lnet/minecraft/class_3554;<init>(III)V
named <init>
Lnet/minecraft/world/chunk/light/LevelPropagator;<init>(III)V
-
-
Method Details
-
minLevel
private int minLevel(int a, int b) - Mappings:
Namespace Name Mixin selector official a
Ldvw;a(II)I
intermediary method_15490
Lnet/minecraft/class_3554;method_15490(II)I
named minLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;minLevel(II)I
-
increaseMinPendingLevel
private void increaseMinPendingLevel(int maxLevel) - Mappings:
Namespace Name Mixin selector official a
Ldvw;a(I)V
intermediary method_15481
Lnet/minecraft/class_3554;method_15481(I)V
named increaseMinPendingLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;increaseMinPendingLevel(I)V
-
removePendingUpdate
protected void removePendingUpdate(long id) - Mappings:
Namespace Name Mixin selector official e
Ldvw;e(J)V
intermediary method_15483
Lnet/minecraft/class_3554;method_15483(J)V
named removePendingUpdate
Lnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdate(J)V
-
removePendingUpdateIf
- Mappings:
Namespace Name Mixin selector official a
Ldvw;a(Ljava/util/function/LongPredicate;)V
intermediary method_24206
Lnet/minecraft/class_3554;method_24206(Ljava/util/function/LongPredicate;)V
named removePendingUpdateIf
Lnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdateIf(Ljava/util/function/LongPredicate;)V
-
removePendingUpdate
private void removePendingUpdate(long id, int level, int levelCount, boolean removeFully) - Mappings:
Namespace Name Mixin selector official a
Ldvw;a(JIIZ)V
intermediary method_15493
Lnet/minecraft/class_3554;method_15493(JIIZ)V
named removePendingUpdate
Lnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdate(JIIZ)V
-
addPendingUpdate
private void addPendingUpdate(long id, int level, int targetLevel) - Mappings:
Namespace Name Mixin selector official a
Ldvw;a(JII)V
intermediary method_15479
Lnet/minecraft/class_3554;method_15479(JII)V
named addPendingUpdate
Lnet/minecraft/world/chunk/light/LevelPropagator;addPendingUpdate(JII)V
-
resetLevel
protected void resetLevel(long id) - Mappings:
Namespace Name Mixin selector official f
Ldvw;f(J)V
intermediary method_15491
Lnet/minecraft/class_3554;method_15491(J)V
named resetLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;resetLevel(J)V
-
updateLevel
protected void updateLevel(long sourceId, long id, int level, boolean decrease) - Mappings:
Namespace Name Mixin selector official a
Ldvw;a(JJIZ)V
intermediary method_15478
Lnet/minecraft/class_3554;method_15478(JJIZ)V
named updateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;updateLevel(JJIZ)V
-
updateLevel
private void updateLevel(long sourceId, long id, int level, int currentLevel, int pendingLevel, boolean decrease) - Mappings:
Namespace Name Mixin selector official a
Ldvw;a(JJIIIZ)V
intermediary method_15482
Lnet/minecraft/class_3554;method_15482(JJIIIZ)V
named updateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;updateLevel(JJIIIZ)V
-
propagateLevel
protected final void propagateLevel(long sourceId, long targetId, int level, boolean decrease) - Mappings:
Namespace Name Mixin selector official b
Ldvw;b(JJIZ)V
intermediary method_15484
Lnet/minecraft/class_3554;method_15484(JJIZ)V
named propagateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JJIZ)V
-
hasPendingUpdates
protected final boolean hasPendingUpdates()- Mappings:
Namespace Name Mixin selector official b
Ldvw;b()Z
intermediary method_15489
Lnet/minecraft/class_3554;method_15489()Z
named hasPendingUpdates
Lnet/minecraft/world/chunk/light/LevelPropagator;hasPendingUpdates()Z
-
applyPendingUpdates
protected final int applyPendingUpdates(int maxSteps) - Mappings:
Namespace Name Mixin selector official b
Ldvw;b(I)I
intermediary method_15492
Lnet/minecraft/class_3554;method_15492(I)I
named applyPendingUpdates
Lnet/minecraft/world/chunk/light/LevelPropagator;applyPendingUpdates(I)I
-
getPendingUpdateCount
public int getPendingUpdateCount()- Mappings:
Namespace Name Mixin selector official c
Ldvw;c()I
intermediary method_24208
Lnet/minecraft/class_3554;method_24208()I
named getPendingUpdateCount
Lnet/minecraft/world/chunk/light/LevelPropagator;getPendingUpdateCount()I
-
isMarker
protected abstract boolean isMarker(long id) - Mappings:
Namespace Name Mixin selector official a
Ldvw;a(J)Z
intermediary method_15494
Lnet/minecraft/class_3554;method_15494(J)Z
named isMarker
Lnet/minecraft/world/chunk/light/LevelPropagator;isMarker(J)Z
-
recalculateLevel
protected abstract int recalculateLevel(long id, long excludedId, int maxLevel) - Mappings:
Namespace Name Mixin selector official a
Ldvw;a(JJI)I
intermediary method_15486
Lnet/minecraft/class_3554;method_15486(JJI)I
named recalculateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;recalculateLevel(JJI)I
-
propagateLevel
protected abstract void propagateLevel(long id, int level, boolean decrease) - Mappings:
Namespace Name Mixin selector official a
Ldvw;a(JIZ)V
intermediary method_15487
Lnet/minecraft/class_3554;method_15487(JIZ)V
named propagateLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JIZ)V
-
getLevel
protected abstract int getLevel(long id) - Mappings:
Namespace Name Mixin selector official c
Ldvw;c(J)I
intermediary method_15480
Lnet/minecraft/class_3554;method_15480(J)I
named getLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;getLevel(J)I
-
setLevel
protected abstract void setLevel(long id, int level) - Mappings:
Namespace Name Mixin selector official a
Ldvw;a(JI)V
intermediary method_15485
Lnet/minecraft/class_3554;method_15485(JI)V
named setLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;setLevel(JI)V
-
getPropagatedLevel
protected abstract int getPropagatedLevel(long sourceId, long targetId, int level) - Mappings:
Namespace Name Mixin selector official b
Ldvw;b(JJI)I
intermediary method_15488
Lnet/minecraft/class_3554;method_15488(JJI)I
named getPropagatedLevel
Lnet/minecraft/world/chunk/light/LevelPropagator;getPropagatedLevel(JJI)I
-