类 DistanceManager.FixedPlayerDistanceChunkTracker
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.server.level.ChunkTracker
net.minecraft.server.level.DistanceManager.FixedPlayerDistanceChunkTracker
- 封闭类:
- DistanceManager
-
字段概要
字段修饰符和类型字段说明protected final it.unimi.dsi.fastutil.longs.Long2ByteMap
protected final int
从类继承的字段 net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
levelCount, SOURCE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private void
dumpChunks
(String pFilename) protected int
getLevel
(long pSectionPos) protected int
getLevelFromSource
(long pPos) private boolean
havePlayer
(long pChunkPos) protected void
onLevelChange
(long pChunkPos, int pOldLevel, int pNewLevel) void
protected void
setLevel
(long pSectionPos, int pLevel) 从类继承的方法 net.minecraft.server.level.ChunkTracker
checkNeighborsAfterUpdate, computeLevelFromNeighbor, getComputedLevel, isSource, update
从类继承的方法 net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
checkEdge, checkNeighbor, checkNode, getQueueSize, hasWork, removeFromQueue, removeIf, runUpdates
-
字段详细资料
-
chunks
protected final it.unimi.dsi.fastutil.longs.Long2ByteMap chunks -
maxDistance
protected final int maxDistance
-
-
构造器详细资料
-
FixedPlayerDistanceChunkTracker
protected FixedPlayerDistanceChunkTracker(int pMaxDistance)
-
-
方法详细资料
-
getLevel
protected int getLevel(long pSectionPos) - 指定者:
getLevel
在类中DynamicGraphMinFixedPoint
-
setLevel
protected void setLevel(long pSectionPos, int pLevel) - 指定者:
setLevel
在类中DynamicGraphMinFixedPoint
-
onLevelChange
protected void onLevelChange(long pChunkPos, int pOldLevel, int pNewLevel) -
getLevelFromSource
protected int getLevelFromSource(long pPos) - 指定者:
getLevelFromSource
在类中ChunkTracker
-
havePlayer
private boolean havePlayer(long pChunkPos) -
runAllUpdates
public void runAllUpdates() -
dumpChunks
-