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 intermediary net/minecraft/class_3554official dwnnamed net/minecraft/world/chunk/light/LevelPropagator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longprivate booleanprotected final intprivate static final intprivate final PendingUpdateQueueprivate final Long2ByteMap -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLevelPropagator(int levelCount, int expectedLevelSize, int expectedTotalSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected final intapplyPendingUpdates(int maxSteps) private intcalculateLevel(int a, int b) protected abstract intgetLevel(long id) intprotected abstract intgetPropagatedLevel(long sourceId, long targetId, int level) protected final booleanprotected booleanisMarker(long id) 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) 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 int2, boolean decrease)
-
Field Details
-
field_43397
public static final long field_43397- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_43397Lnet/minecraft/class_3554;field_43397:Jofficial eLdwn;e:Jnamed field_43397Lnet/minecraft/world/chunk/light/LevelPropagator;field_43397:J
-
MAX_LEVEL
private static final int MAX_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31706Lnet/minecraft/class_3554;field_31706:Iofficial aLdwn;a:Inamed MAX_LEVELLnet/minecraft/world/chunk/light/LevelPropagator;MAX_LEVEL:I
-
levelCount
protected final int levelCount- Mappings:
Namespace Name Mixin selector intermediary field_15783Lnet/minecraft/class_3554;field_15783:Iofficial fLdwn;f:Inamed levelCountLnet/minecraft/world/chunk/light/LevelPropagator;levelCount:I
-
pendingUpdateQueue
- Mappings:
Namespace Name Mixin selector intermediary field_43396Lnet/minecraft/class_3554;field_43396:Lnet/minecraft/class_8257;official bLdwn;b:Ldwr;named pendingUpdateQueueLnet/minecraft/world/chunk/light/LevelPropagator;pendingUpdateQueue:Lnet/minecraft/world/chunk/light/PendingUpdateQueue;
-
pendingUpdates
- Mappings:
Namespace Name Mixin selector intermediary field_15784Lnet/minecraft/class_3554;field_15784:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;official cLdwn;c:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;named pendingUpdatesLnet/minecraft/world/chunk/light/LevelPropagator;pendingUpdates:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
-
hasPendingUpdates
private volatile boolean hasPendingUpdates- Mappings:
Namespace Name Mixin selector intermediary field_15782Lnet/minecraft/class_3554;field_15782:Zofficial dLdwn;d: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 intermediary <init>Lnet/minecraft/class_3554;<init>(III)Vofficial <init>Ldwn;<init>(III)Vnamed <init>Lnet/minecraft/world/chunk/light/LevelPropagator;<init>(III)V
-
-
Method Details
-
removePendingUpdate
protected void removePendingUpdate(long id) - Mappings:
Namespace Name Mixin selector intermediary method_15483Lnet/minecraft/class_3554;method_15483(J)Vofficial eLdwn;e(J)Vnamed removePendingUpdateLnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdate(J)V
-
removePendingUpdateIf
- Mappings:
Namespace Name Mixin selector intermediary method_24206Lnet/minecraft/class_3554;method_24206(Ljava/util/function/LongPredicate;)Vofficial aLdwn;a(Ljava/util/function/LongPredicate;)Vnamed removePendingUpdateIfLnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdateIf(Ljava/util/function/LongPredicate;)V
-
calculateLevel
private int calculateLevel(int a, int b) - Mappings:
Namespace Name Mixin selector intermediary method_50014Lnet/minecraft/class_3554;method_50014(II)Iofficial aLdwn;a(II)Inamed calculateLevelLnet/minecraft/world/chunk/light/LevelPropagator;calculateLevel(II)I
-
resetLevel
protected void resetLevel(long id) - Mappings:
Namespace Name Mixin selector intermediary method_15491Lnet/minecraft/class_3554;method_15491(J)Vofficial fLdwn;f(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 intermediary method_15478Lnet/minecraft/class_3554;method_15478(JJIZ)Vofficial aLdwn;a(JJIZ)Vnamed updateLevelLnet/minecraft/world/chunk/light/LevelPropagator;updateLevel(JJIZ)V
-
updateLevel
private void updateLevel(long sourceId, long id, int level, int currentLevel, int int2, boolean decrease) - Mappings:
Namespace Name Mixin selector intermediary method_15482Lnet/minecraft/class_3554;method_15482(JJIIIZ)Vofficial aLdwn;a(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 intermediary method_15484Lnet/minecraft/class_3554;method_15484(JJIZ)Vofficial bLdwn;b(JJIZ)Vnamed propagateLevelLnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JJIZ)V
-
hasPendingUpdates
protected final boolean hasPendingUpdates()- Mappings:
Namespace Name Mixin selector intermediary method_15489Lnet/minecraft/class_3554;method_15489()Zofficial bLdwn;b()Znamed hasPendingUpdatesLnet/minecraft/world/chunk/light/LevelPropagator;hasPendingUpdates()Z
-
applyPendingUpdates
protected final int applyPendingUpdates(int maxSteps) - Mappings:
Namespace Name Mixin selector intermediary method_15492Lnet/minecraft/class_3554;method_15492(I)Iofficial bLdwn;b(I)Inamed applyPendingUpdatesLnet/minecraft/world/chunk/light/LevelPropagator;applyPendingUpdates(I)I
-
getPendingUpdateCount
public int getPendingUpdateCount()- Mappings:
Namespace Name Mixin selector intermediary method_24208Lnet/minecraft/class_3554;method_24208()Iofficial cLdwn;c()Inamed getPendingUpdateCountLnet/minecraft/world/chunk/light/LevelPropagator;getPendingUpdateCount()I
-
isMarker
protected boolean isMarker(long id) - Mappings:
Namespace Name Mixin selector intermediary method_15494Lnet/minecraft/class_3554;method_15494(J)Zofficial aLdwn;a(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 intermediary method_15486Lnet/minecraft/class_3554;method_15486(JJI)Iofficial aLdwn;a(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 intermediary method_15487Lnet/minecraft/class_3554;method_15487(JIZ)Vofficial aLdwn;a(JIZ)Vnamed propagateLevelLnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JIZ)V
-
getLevel
protected abstract int getLevel(long id) - Mappings:
Namespace Name Mixin selector intermediary method_15480Lnet/minecraft/class_3554;method_15480(J)Iofficial cLdwn;c(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 intermediary method_15485Lnet/minecraft/class_3554;method_15485(JI)Vofficial aLdwn;a(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 intermediary method_15488Lnet/minecraft/class_3554;method_15488(JJI)Iofficial bLdwn;b(JJI)Inamed getPropagatedLevelLnet/minecraft/world/chunk/light/LevelPropagator;getPropagatedLevel(JJI)I
-