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 dwaintermediary net/minecraft/class_3554named net/minecraft/world/chunk/light/LevelPropagator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_8257static final longprivate booleanprotected final intprivate static final intprivate final Long2ByteMap -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLevelPropagator(int levelCount, int expectedLevelSize, int expectedTotalSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected final intapplyPendingUpdates(int maxSteps) protected abstract intgetLevel(long id) intprotected abstract intgetPropagatedLevel(long sourceId, long targetId, int level) protected final booleanprotected booleanisMarker(long id) private intmethod_50014(int int2, int int3) 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 eLdwa;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 aLdwa;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 fLdwa;f:Iintermediary field_15783Lnet/minecraft/class_3554;field_15783:Inamed levelCountLnet/minecraft/world/chunk/light/LevelPropagator;levelCount:I
-
field_43396
- Mappings:
Namespace Name Mixin selector official bLdwa;b:Ldwf;intermediary field_43396Lnet/minecraft/class_3554;field_43396:Lnet/minecraft/class_8257;named field_43396Lnet/minecraft/world/chunk/light/LevelPropagator;field_43396:Lnet/minecraft/class_8257;
-
pendingUpdates
- Mappings:
Namespace Name Mixin selector official cLdwa;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 dLdwa;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>Ldwa;<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 eLdwa;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 aLdwa;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
-
method_50014
private int method_50014(int int2, int int3) - Mappings:
Namespace Name Mixin selector official aLdwa;a(II)Iintermediary method_50014Lnet/minecraft/class_3554;method_50014(II)Inamed method_50014Lnet/minecraft/world/chunk/light/LevelPropagator;method_50014(II)I
-
resetLevel
protected void resetLevel(long id) - Mappings:
Namespace Name Mixin selector official fLdwa;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 aLdwa;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 aLdwa;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 bLdwa;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 bLdwa;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 bLdwa;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 cLdwa;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 aLdwa;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 aLdwa;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 aLdwa;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 cLdwa;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 aLdwa;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 bLdwa;b(JJI)Iintermediary method_15488Lnet/minecraft/class_3554;method_15488(JJI)Inamed getPropagatedLevelLnet/minecraft/world/chunk/light/LevelPropagator;getPropagatedLevel(JJI)I
-