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 - dwq- intermediary - net/minecraft/class_3554- named - net/minecraft/world/chunk/light/LevelPropagator
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final longprivate booleanprotected final intprivate static final intprivate final PendingUpdateQueueprivate final Long2ByteMap
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedLevelPropagator(int levelCount, int expectedLevelSize, int expectedTotalSize) 
- 
Method SummaryModifier 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_43397public static final long field_43397- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - e- Ldwq;e:J- intermediary - field_43397- Lnet/minecraft/class_3554;field_43397:J- named - field_43397- Lnet/minecraft/world/chunk/light/LevelPropagator;field_43397:J
 
- 
MAX_LEVELprivate static final int MAX_LEVEL- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwq;a:I- intermediary - field_31706- Lnet/minecraft/class_3554;field_31706:I- named - MAX_LEVEL- Lnet/minecraft/world/chunk/light/LevelPropagator;MAX_LEVEL:I
 
- 
levelCountprotected final int levelCount- Mappings:
- Namespace - Name - Mixin selector - official - f- Ldwq;f:I- intermediary - field_15783- Lnet/minecraft/class_3554;field_15783:I- named - levelCount- Lnet/minecraft/world/chunk/light/LevelPropagator;levelCount:I
 
- 
pendingUpdateQueue- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldwq;b:Ldwu;- intermediary - field_43396- Lnet/minecraft/class_3554;field_43396:Lnet/minecraft/class_8257;- named - pendingUpdateQueue- Lnet/minecraft/world/chunk/light/LevelPropagator;pendingUpdateQueue:Lnet/minecraft/world/chunk/light/PendingUpdateQueue;
 
- 
pendingUpdates- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldwq;c: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;
 
- 
hasPendingUpdatesprivate volatile boolean hasPendingUpdates- Mappings:
- Namespace - Name - Mixin selector - official - d- Ldwq;d:Z- intermediary - field_15782- Lnet/minecraft/class_3554;field_15782:Z- named - hasPendingUpdates- Lnet/minecraft/world/chunk/light/LevelPropagator;hasPendingUpdates:Z
 
 
- 
- 
Constructor Details- 
LevelPropagatorprotected LevelPropagator(int levelCount, int expectedLevelSize, int expectedTotalSize) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Ldwq;<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- 
removePendingUpdateprotected void removePendingUpdate(long id) - Mappings:
- Namespace - Name - Mixin selector - official - e- Ldwq;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- Ldwq;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
 
- 
calculateLevelprivate int calculateLevel(int a, int b) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwq;a(II)I- intermediary - method_50014- Lnet/minecraft/class_3554;method_50014(II)I- named - calculateLevel- Lnet/minecraft/world/chunk/light/LevelPropagator;calculateLevel(II)I
 
- 
resetLevelprotected void resetLevel(long id) - Mappings:
- Namespace - Name - Mixin selector - official - f- Ldwq;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
 
- 
updateLevelprotected void updateLevel(long sourceId, long id, int level, boolean decrease) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwq;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
 
- 
updateLevelprivate void updateLevel(long sourceId, long id, int level, int currentLevel, int int2, boolean decrease) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwq;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
 
- 
propagateLevelprotected final void propagateLevel(long sourceId, long targetId, int level, boolean decrease) - Mappings:
- Namespace - Name - Mixin selector - official - b- Ldwq;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
 
- 
hasPendingUpdatesprotected final boolean hasPendingUpdates()- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldwq;b()Z- intermediary - method_15489- Lnet/minecraft/class_3554;method_15489()Z- named - hasPendingUpdates- Lnet/minecraft/world/chunk/light/LevelPropagator;hasPendingUpdates()Z
 
- 
applyPendingUpdatesprotected final int applyPendingUpdates(int maxSteps) - Mappings:
- Namespace - Name - Mixin selector - official - b- Ldwq;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
 
- 
getPendingUpdateCountpublic int getPendingUpdateCount()- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldwq;c()I- intermediary - method_24208- Lnet/minecraft/class_3554;method_24208()I- named - getPendingUpdateCount- Lnet/minecraft/world/chunk/light/LevelPropagator;getPendingUpdateCount()I
 
- 
isMarkerprotected boolean isMarker(long id) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwq;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
 
- 
recalculateLevelprotected abstract int recalculateLevel(long id, long excludedId, int maxLevel) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwq;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
 
- 
propagateLevelprotected abstract void propagateLevel(long id, int level, boolean decrease) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwq;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
 
- 
getLevelprotected abstract int getLevel(long id) - Mappings:
- Namespace - Name - Mixin selector - official - c- Ldwq;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
 
- 
setLevelprotected abstract void setLevel(long id, int level) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwq;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
 
- 
getPropagatedLevelprotected abstract int getPropagatedLevel(long sourceId, long targetId, int level) - Mappings:
- Namespace - Name - Mixin selector - official - b- Ldwq;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
 
 
-