类 LevelPropagator
- java.lang.Object
-
- net.minecraft.world.chunk.light.LevelPropagator
-
public abstract class LevelPropagator extends Object
- Mappings:
Namespace Name official ddeintermediary net/minecraft/class_3554named net/minecraft/world/chunk/light/LevelPropagator
-
-
字段概要
字段 修饰符和类型 字段 说明 private static intfield_31706private booleanhasPendingUpdatesprivate intlevelCountprivate intminPendingLevelprivate LongLinkedOpenHashSet[]pendingIdUpdatesByLevelprivate Long2ByteMappendingUpdates
-
构造器概要
构造器 限定符 构造器 说明 protectedLevelPropagator(int levelCount, int expectedLevelSize, int expectedTotalSize)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 private voidaddPendingUpdate(long id, int level, int targetLevel)protected intapplyPendingUpdates(int maxSteps)protected abstract intgetLevel(long id)intgetPendingUpdateCount()protected abstract intgetPropagatedLevel(long sourceId, long targetId, int level)protected booleanhasPendingUpdates()private voidincreaseMinPendingLevel(int maxLevel)protected abstract booleanisMarker(long id)private intminLevel(int a, int b)protected abstract voidpropagateLevel(long id, int level, boolean decrease)protected voidpropagateLevel(long sourceId, long targetId, int level, boolean decrease)protected abstract intrecalculateLevel(long id, long excludedId, int maxLevel)protected voidremovePendingUpdate(long id)private voidremovePendingUpdate(long id, int level, int levelCount, boolean removeFully)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 pendingLevel, boolean decrease)
-
-
-
字段详细资料
-
field_31706
private static final int field_31706
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLdde;a:Iintermediary field_31706Lnet/minecraft/class_3554;field_31706:Inamed field_31706Lnet/minecraft/world/chunk/light/LevelPropagator;field_31706:I
-
levelCount
private final int levelCount
- Mappings:
Namespace Name Mixin selector official bLdde;b:Iintermediary field_15783Lnet/minecraft/class_3554;field_15783:Inamed levelCountLnet/minecraft/world/chunk/light/LevelPropagator;levelCount:I
-
pendingIdUpdatesByLevel
private final LongLinkedOpenHashSet[] pendingIdUpdatesByLevel
- Mappings:
Namespace Name Mixin selector official cLdde;c:[Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;intermediary field_15785Lnet/minecraft/class_3554;field_15785:[Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;named pendingIdUpdatesByLevelLnet/minecraft/world/chunk/light/LevelPropagator;pendingIdUpdatesByLevel:[Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
-
pendingUpdates
private final Long2ByteMap pendingUpdates
- Mappings:
Namespace Name Mixin selector official dLdde;d: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;
-
minPendingLevel
private int minPendingLevel
- Mappings:
Namespace Name Mixin selector official eLdde;e:Iintermediary field_15781Lnet/minecraft/class_3554;field_15781:Inamed minPendingLevelLnet/minecraft/world/chunk/light/LevelPropagator;minPendingLevel:I
-
hasPendingUpdates
private volatile boolean hasPendingUpdates
- Mappings:
Namespace Name Mixin selector official fLdde;f:Zintermediary field_15782Lnet/minecraft/class_3554;field_15782:Znamed hasPendingUpdatesLnet/minecraft/world/chunk/light/LevelPropagator;hasPendingUpdates:Z
-
-
构造器详细资料
-
LevelPropagator
protected LevelPropagator(int levelCount, int expectedLevelSize, int expectedTotalSize)- Mappings:
Namespace Name Mixin selector official <init>Ldde;<init>(III)Vintermediary <init>Lnet/minecraft/class_3554;<init>(III)Vnamed <init>Lnet/minecraft/world/chunk/light/LevelPropagator;<init>(III)V
-
-
方法详细资料
-
minLevel
private int minLevel(int a, int b)- Mappings:
Namespace Name Mixin selector official aLdde;a(II)Iintermediary method_15490Lnet/minecraft/class_3554;method_15490(II)Inamed minLevelLnet/minecraft/world/chunk/light/LevelPropagator;minLevel(II)I
-
increaseMinPendingLevel
private void increaseMinPendingLevel(int maxLevel)
- Mappings:
Namespace Name Mixin selector official aLdde;a(I)Vintermediary method_15481Lnet/minecraft/class_3554;method_15481(I)Vnamed increaseMinPendingLevelLnet/minecraft/world/chunk/light/LevelPropagator;increaseMinPendingLevel(I)V
-
removePendingUpdate
protected void removePendingUpdate(long id)
- Mappings:
Namespace Name Mixin selector official eLdde;e(J)Vintermediary method_15483Lnet/minecraft/class_3554;method_15483(J)Vnamed removePendingUpdateLnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdate(J)V
-
removePendingUpdateIf
public void removePendingUpdateIf(LongPredicate predicate)
- Mappings:
Namespace Name Mixin selector official aLdde;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
-
removePendingUpdate
private void removePendingUpdate(long id, int level, int levelCount, boolean removeFully)- Mappings:
Namespace Name Mixin selector official aLdde;a(JIIZ)Vintermediary method_15493Lnet/minecraft/class_3554;method_15493(JIIZ)Vnamed removePendingUpdateLnet/minecraft/world/chunk/light/LevelPropagator;removePendingUpdate(JIIZ)V
-
addPendingUpdate
private void addPendingUpdate(long id, int level, int targetLevel)- Mappings:
Namespace Name Mixin selector official aLdde;a(JII)Vintermediary method_15479Lnet/minecraft/class_3554;method_15479(JII)Vnamed addPendingUpdateLnet/minecraft/world/chunk/light/LevelPropagator;addPendingUpdate(JII)V
-
resetLevel
protected void resetLevel(long id)
- Mappings:
Namespace Name Mixin selector official fLdde;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 aLdde;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 pendingLevel, boolean decrease)- Mappings:
Namespace Name Mixin selector official aLdde;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 bLdde;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 bLdde;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 bLdde;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 cLdde;c()Iintermediary method_24208Lnet/minecraft/class_3554;method_24208()Inamed getPendingUpdateCountLnet/minecraft/world/chunk/light/LevelPropagator;getPendingUpdateCount()I
-
isMarker
protected abstract boolean isMarker(long id)
- Mappings:
Namespace Name Mixin selector official aLdde;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 aLdde;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 aLdde;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 cLdde;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 aLdde;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 bLdde;b(JJI)Iintermediary method_15488Lnet/minecraft/class_3554;method_15488(JJI)Inamed getPropagatedLevelLnet/minecraft/world/chunk/light/LevelPropagator;getPropagatedLevel(JJI)I
-
-