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 dolintermediary net/minecraft/class_3554named net/minecraft/world/chunk/light/LevelPropagator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final intprivate static final intprivate intprivate final LongLinkedOpenHashSet[]private final Long2ByteMap -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLevelPropagator(int levelCount, int expectedLevelSize, int expectedTotalSize) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddPendingUpdate(long id, int level, int targetLevel) protected final intapplyPendingUpdates(int maxSteps) protected abstract intgetLevel(long id) intprotected abstract intgetPropagatedLevel(long sourceId, long targetId, int level) protected final booleanprivate voidincreaseMinPendingLevel(int maxLevel) protected abstract booleanisMarker(long id) private intminLevel(int a, int b) protected abstract voidpropagateLevel(long id, int level, boolean decrease) protected final voidpropagateLevel(long sourceId, long targetId, int level, boolean decrease) protected abstract intrecalculateLevel(long id, long excludedId, int maxLevel) protected voidremovePendingUpdate(long id) private voidremovePendingUpdate(long id, int level, int levelCount, boolean removeFully) voidremovePendingUpdateIf(LongPredicate predicate) protected voidresetLevel(long id) protected abstract voidsetLevel(long id, int level) protected voidupdateLevel(long sourceId, long id, int level, boolean decrease) private voidupdateLevel(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 aLdol;a:Iintermediary field_31706Lnet/minecraft/class_3554;field_31706:Inamed MAX_LEVELLnet/minecraft/world/chunk/light/LevelPropagator;MAX_LEVEL:I
-
levelCount
private final int levelCount- Mappings:
Namespace Name Mixin selector official bLdol;b:Iintermediary field_15783Lnet/minecraft/class_3554;field_15783:Inamed levelCountLnet/minecraft/world/chunk/light/LevelPropagator;levelCount:I
-
pendingIdUpdatesByLevel
- Mappings:
Namespace Name Mixin selector official cLdol;c:[Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;intermediary field_15785Lnet/minecraft/class_3554;field_15785:[Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;named pendingIdUpdatesByLevelLnet/minecraft/world/chunk/light/LevelPropagator;pendingIdUpdatesByLevel:[Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
-
pendingUpdates
- Mappings:
Namespace Name Mixin selector official dLdol;d:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;intermediary field_15784Lnet/minecraft/class_3554;field_15784:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;named pendingUpdatesLnet/minecraft/world/chunk/light/LevelPropagator;pendingUpdates:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
-
minPendingLevel
private int minPendingLevel- Mappings:
Namespace Name Mixin selector official eLdol;e:Iintermediary field_15781Lnet/minecraft/class_3554;field_15781:Inamed minPendingLevelLnet/minecraft/world/chunk/light/LevelPropagator;minPendingLevel:I
-
hasPendingUpdates
private volatile boolean hasPendingUpdates- Mappings:
Namespace Name Mixin selector official fLdol;f:Zintermediary field_15782Lnet/minecraft/class_3554;field_15782:Znamed hasPendingUpdatesLnet/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>Ldol;<init>(III)Vintermediary <init>Lnet/minecraft/class_3554;<init>(III)Vnamed <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 aLdol;a(II)Iintermediary method_15490Lnet/minecraft/class_3554;method_15490(II)Inamed minLevelLnet/minecraft/world/chunk/light/LevelPropagator;minLevel(II)I
-
increaseMinPendingLevel
private void increaseMinPendingLevel(int maxLevel) - Mappings:
Namespace Name Mixin selector official aLdol;a(I)Vintermediary method_15481Lnet/minecraft/class_3554;method_15481(I)Vnamed increaseMinPendingLevelLnet/minecraft/world/chunk/light/LevelPropagator;increaseMinPendingLevel(I)V
-
removePendingUpdate
protected void removePendingUpdate(long id) - Mappings:
Namespace Name Mixin selector official eLdol;e(J)Vintermediary method_15483Lnet/minecraft/class_3554;method_15483(J)Vnamed removePendingUpdateLnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdate(J)V
-
removePendingUpdateIf
- Mappings:
Namespace Name Mixin selector official aLdol;a(Ljava/util/function/LongPredicate;)Vintermediary method_24206Lnet/minecraft/class_3554;method_24206(Ljava/util/function/LongPredicate;)Vnamed removePendingUpdateIfLnet/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 aLdol;a(JIIZ)Vintermediary method_15493Lnet/minecraft/class_3554;method_15493(JIIZ)Vnamed removePendingUpdateLnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdate(JIIZ)V
-
addPendingUpdate
private void addPendingUpdate(long id, int level, int targetLevel) - Mappings:
Namespace Name Mixin selector official aLdol;a(JII)Vintermediary method_15479Lnet/minecraft/class_3554;method_15479(JII)Vnamed addPendingUpdateLnet/minecraft/world/chunk/light/LevelPropagator;addPendingUpdate(JII)V
-
resetLevel
protected void resetLevel(long id) - Mappings:
Namespace Name Mixin selector official fLdol;f(J)Vintermediary method_15491Lnet/minecraft/class_3554;method_15491(J)Vnamed resetLevelLnet/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 aLdol;a(JJIZ)Vintermediary method_15478Lnet/minecraft/class_3554;method_15478(JJIZ)Vnamed updateLevelLnet/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 aLdol;a(JJIIIZ)Vintermediary method_15482Lnet/minecraft/class_3554;method_15482(JJIIIZ)Vnamed updateLevelLnet/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 bLdol;b(JJIZ)Vintermediary method_15484Lnet/minecraft/class_3554;method_15484(JJIZ)Vnamed propagateLevelLnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JJIZ)V
-
hasPendingUpdates
protected final boolean hasPendingUpdates()- Mappings:
Namespace Name Mixin selector official bLdol;b()Zintermediary method_15489Lnet/minecraft/class_3554;method_15489()Znamed hasPendingUpdatesLnet/minecraft/world/chunk/light/LevelPropagator;hasPendingUpdates()Z
-
applyPendingUpdates
protected final int applyPendingUpdates(int maxSteps) - Mappings:
Namespace Name Mixin selector official bLdol;b(I)Iintermediary method_15492Lnet/minecraft/class_3554;method_15492(I)Inamed applyPendingUpdatesLnet/minecraft/world/chunk/light/LevelPropagator;applyPendingUpdates(I)I
-
getPendingUpdateCount
public int getPendingUpdateCount()- Mappings:
Namespace Name Mixin selector official cLdol;c()Iintermediary method_24208Lnet/minecraft/class_3554;method_24208()Inamed getPendingUpdateCountLnet/minecraft/world/chunk/light/LevelPropagator;getPendingUpdateCount()I
-
isMarker
protected abstract boolean isMarker(long id) - Mappings:
Namespace Name Mixin selector official aLdol;a(J)Zintermediary method_15494Lnet/minecraft/class_3554;method_15494(J)Znamed isMarkerLnet/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 aLdol;a(JJI)Iintermediary method_15486Lnet/minecraft/class_3554;method_15486(JJI)Inamed recalculateLevelLnet/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 aLdol;a(JIZ)Vintermediary method_15487Lnet/minecraft/class_3554;method_15487(JIZ)Vnamed propagateLevelLnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JIZ)V
-
getLevel
protected abstract int getLevel(long id) - Mappings:
Namespace Name Mixin selector official cLdol;c(J)Iintermediary method_15480Lnet/minecraft/class_3554;method_15480(J)Inamed getLevelLnet/minecraft/world/chunk/light/LevelPropagator;getLevel(J)I
-
setLevel
protected abstract void setLevel(long id, int level) - Mappings:
Namespace Name Mixin selector official aLdol;a(JI)Vintermediary method_15485Lnet/minecraft/class_3554;method_15485(JI)Vnamed setLevelLnet/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 bLdol;b(JJI)Iintermediary method_15488Lnet/minecraft/class_3554;method_15488(JJI)Inamed getPropagatedLevelLnet/minecraft/world/chunk/light/LevelPropagator;getPropagatedLevel(JJI)I
-