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/LevelPropagatorintermediary net/minecraft/class_3554official exa
-
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 named field_43397Lnet/minecraft/world/chunk/light/LevelPropagator;field_43397:Jintermediary field_43397Lnet/minecraft/class_3554;field_43397:Jofficial eLexa;e:J
-
MAX_LEVEL
private static final int MAX_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LEVELLnet/minecraft/world/chunk/light/LevelPropagator;MAX_LEVEL:Iintermediary field_31706Lnet/minecraft/class_3554;field_31706:Iofficial aLexa;a:I
-
levelCount
protected final int levelCount- Mappings:
Namespace Name Mixin selector named levelCountLnet/minecraft/world/chunk/light/LevelPropagator;levelCount:Iintermediary field_15783Lnet/minecraft/class_3554;field_15783:Iofficial fLexa;f:I
-
pendingUpdateQueue
- Mappings:
Namespace Name Mixin selector named pendingUpdateQueueLnet/minecraft/world/chunk/light/LevelPropagator;pendingUpdateQueue:Lnet/minecraft/world/chunk/light/PendingUpdateQueue;intermediary field_43396Lnet/minecraft/class_3554;field_43396:Lnet/minecraft/class_8257;official bLexa;b:Lexe;
-
pendingUpdates
- Mappings:
Namespace Name Mixin selector named pendingUpdatesLnet/minecraft/world/chunk/light/LevelPropagator;pendingUpdates:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;intermediary field_15784Lnet/minecraft/class_3554;field_15784:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;official cLexa;c:Lit/unimi/dsi/fastutil/longs/Long2ByteMap;
-
hasPendingUpdates
private volatile boolean hasPendingUpdates- Mappings:
Namespace Name Mixin selector named hasPendingUpdatesLnet/minecraft/world/chunk/light/LevelPropagator;hasPendingUpdates:Zintermediary field_15782Lnet/minecraft/class_3554;field_15782:Zofficial dLexa;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)Vintermediary <init>Lnet/minecraft/class_3554;<init>(III)Vofficial <init>Lexa;<init>(III)V
-
-
Method Details
-
removePendingUpdate
protected void removePendingUpdate(long id) - Mappings:
Namespace Name Mixin selector named removePendingUpdateLnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdate(J)Vintermediary method_15483Lnet/minecraft/class_3554;method_15483(J)Vofficial dLexa;d(J)V
-
removePendingUpdateIf
- Mappings:
Namespace Name Mixin selector named removePendingUpdateIfLnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdateIf(Ljava/util/function/LongPredicate;)Vintermediary method_24206Lnet/minecraft/class_3554;method_24206(Ljava/util/function/LongPredicate;)Vofficial aLexa;a(Ljava/util/function/LongPredicate;)V
-
calculateLevel
private int calculateLevel(int a, int b) - Mappings:
Namespace Name Mixin selector named calculateLevelLnet/minecraft/world/chunk/light/LevelPropagator;calculateLevel(II)Iintermediary method_50014Lnet/minecraft/class_3554;method_50014(II)Iofficial aLexa;a(II)I
-
resetLevel
protected void resetLevel(long id) - Mappings:
Namespace Name Mixin selector named resetLevelLnet/minecraft/world/chunk/light/LevelPropagator;resetLevel(J)Vintermediary method_15491Lnet/minecraft/class_3554;method_15491(J)Vofficial eLexa;e(J)V
-
updateLevel
protected void updateLevel(long sourceId, long id, int level, boolean decrease) - Mappings:
Namespace Name Mixin selector named updateLevelLnet/minecraft/world/chunk/light/LevelPropagator;updateLevel(JJIZ)Vintermediary method_15478Lnet/minecraft/class_3554;method_15478(JJIZ)Vofficial aLexa;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 updateLevelLnet/minecraft/world/chunk/light/LevelPropagator;updateLevel(JJIIIZ)Vintermediary method_15482Lnet/minecraft/class_3554;method_15482(JJIIIZ)Vofficial aLexa;a(JJIIIZ)V
-
propagateLevel
protected final void propagateLevel(long sourceId, long targetId, int level, boolean decrease) - Mappings:
Namespace Name Mixin selector named propagateLevelLnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JJIZ)Vintermediary method_15484Lnet/minecraft/class_3554;method_15484(JJIZ)Vofficial bLexa;b(JJIZ)V
-
hasPendingUpdates
protected final boolean hasPendingUpdates()- Mappings:
Namespace Name Mixin selector named hasPendingUpdatesLnet/minecraft/world/chunk/light/LevelPropagator;hasPendingUpdates()Zintermediary method_15489Lnet/minecraft/class_3554;method_15489()Zofficial bLexa;b()Z
-
applyPendingUpdates
protected final int applyPendingUpdates(int maxSteps) - Mappings:
Namespace Name Mixin selector named applyPendingUpdatesLnet/minecraft/world/chunk/light/LevelPropagator;applyPendingUpdates(I)Iintermediary method_15492Lnet/minecraft/class_3554;method_15492(I)Iofficial bLexa;b(I)I
-
getPendingUpdateCount
public int getPendingUpdateCount()- Mappings:
Namespace Name Mixin selector named getPendingUpdateCountLnet/minecraft/world/chunk/light/LevelPropagator;getPendingUpdateCount()Iintermediary method_24208Lnet/minecraft/class_3554;method_24208()Iofficial cLexa;c()I
-
isMarker
protected boolean isMarker(long id) - Mappings:
Namespace Name Mixin selector named isMarkerLnet/minecraft/world/chunk/light/LevelPropagator;isMarker(J)Zintermediary method_15494Lnet/minecraft/class_3554;method_15494(J)Zofficial aLexa;a(J)Z
-
recalculateLevel
protected abstract int recalculateLevel(long id, long excludedId, int maxLevel) - Mappings:
Namespace Name Mixin selector named recalculateLevelLnet/minecraft/world/chunk/light/LevelPropagator;recalculateLevel(JJI)Iintermediary method_15486Lnet/minecraft/class_3554;method_15486(JJI)Iofficial aLexa;a(JJI)I
-
propagateLevel
protected abstract void propagateLevel(long id, int level, boolean decrease) - Mappings:
Namespace Name Mixin selector named propagateLevelLnet/minecraft/world/chunk/light/LevelPropagator;propagateLevel(JIZ)Vintermediary method_15487Lnet/minecraft/class_3554;method_15487(JIZ)Vofficial aLexa;a(JIZ)V
-
getLevel
protected abstract int getLevel(long id) - Mappings:
Namespace Name Mixin selector named getLevelLnet/minecraft/world/chunk/light/LevelPropagator;getLevel(J)Iintermediary method_15480Lnet/minecraft/class_3554;method_15480(J)Iofficial cLexa;c(J)I
-
setLevel
protected abstract void setLevel(long id, int level) - Mappings:
Namespace Name Mixin selector named setLevelLnet/minecraft/world/chunk/light/LevelPropagator;setLevel(JI)Vintermediary method_15485Lnet/minecraft/class_3554;method_15485(JI)Vofficial aLexa;a(JI)V
-
getPropagatedLevel
protected abstract int getPropagatedLevel(long sourceId, long targetId, int level) - Mappings:
Namespace Name Mixin selector named getPropagatedLevelLnet/minecraft/world/chunk/light/LevelPropagator;getPropagatedLevel(JJI)Iintermediary method_15488Lnet/minecraft/class_3554;method_15488(JJI)Iofficial bLexa;b(JJI)I
-