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 official dwnintermediary net/minecraft/class_3554named 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 official eLdwn;e:Jintermediary field_43397Lnet/minecraft/class_3554;field_43397: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 official aLdwn;a:Iintermediary field_31706Lnet/minecraft/class_3554;field_31706:Inamed MAX_LEVELLnet/minecraft/world/chunk/light/LevelPropagator;MAX_LEVEL:I
-
levelCount
protected final int levelCount- Mappings:
Namespace Name Mixin selector official fLdwn;f:Iintermediary field_15783Lnet/minecraft/class_3554;field_15783:Inamed levelCountLnet/minecraft/world/chunk/light/LevelPropagator;levelCount:I
-
pendingUpdateQueue
- Mappings:
Namespace Name Mixin selector official bLdwn;b:Ldwr;intermediary field_43396Lnet/minecraft/class_3554;field_43396:Lnet/minecraft/class_8257;named pendingUpdateQueueLnet/minecraft/world/chunk/light/LevelPropagator;pendingUpdateQueue:Lnet/minecraft/world/chunk/light/PendingUpdateQueue;
-
pendingUpdates
- Mappings:
Namespace Name Mixin selector official cLdwn;c: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;
-
hasPendingUpdates
private volatile boolean hasPendingUpdates- Mappings:
Namespace Name Mixin selector official dLdwn;d: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>Ldwn;<init>(III)Vintermediary <init>Lnet/minecraft/class_3554;<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 official eLdwn;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 aLdwn;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
-
calculateLevel
private int calculateLevel(int a, int b) - Mappings:
Namespace Name Mixin selector official aLdwn;a(II)Iintermediary method_50014Lnet/minecraft/class_3554;method_50014(II)Inamed calculateLevelLnet/minecraft/world/chunk/light/LevelPropagator;calculateLevel(II)I
-
resetLevel
protected void resetLevel(long id) - Mappings:
Namespace Name Mixin selector official fLdwn;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 aLdwn;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 int2, boolean decrease) - Mappings:
Namespace Name Mixin selector official aLdwn;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 bLdwn;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 bLdwn;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 bLdwn;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 cLdwn;c()Iintermediary method_24208Lnet/minecraft/class_3554;method_24208()Inamed getPendingUpdateCountLnet/minecraft/world/chunk/light/LevelPropagator;getPendingUpdateCount()I
-
isMarker
protected boolean isMarker(long id) - Mappings:
Namespace Name Mixin selector official aLdwn;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 aLdwn;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 aLdwn;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 cLdwn;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 aLdwn;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 bLdwn;b(JJI)Iintermediary method_15488Lnet/minecraft/class_3554;method_15488(JJI)Inamed getPropagatedLevelLnet/minecraft/world/chunk/light/LevelPropagator;getPropagatedLevel(JJI)I
-