Package net.minecraft.world.level.lighting
Part 1/1
BlockLightEngine
- Full name:
net.minecraft.world.level.lighting.BlockLightEngine - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/BlockLightEngine.java - Type:
class - Modifiers:
public final - Extends:
LightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap, BlockLightSectionStorage>
net.minecraft.world.level.lighting.BlockLightEngine#BlockLightEngine(LightChunkGetter)
- Origin:
common - Source:
net/minecraft/world/level/lighting/BlockLightEngine.java:16 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockLightEngine ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: BlockLightSectionStorage.
Parameters
LightChunkGetter lightChunkGetter
ตัวอย่างใช้งาน
LightChunkGetter lightChunkGetter = ...;
BlockLightEngine instance = new BlockLightEngine(lightChunkGetter);
net.minecraft.world.level.lighting.BlockLightEngine#BlockLightEngine(LightChunkGetter,BlockLightSectionStorage)
- Origin:
common - Source:
net/minecraft/world/level/lighting/BlockLightEngine.java:20 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockLightEngine ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
LightChunkGetter lightChunkGetterBlockLightSectionStorage blockLightSectionStorage
ตัวอย่างใช้งาน
LightChunkGetter lightChunkGetter = ...;
BlockLightSectionStorage blockLightSectionStorage = ...;
BlockLightEngine instance = new BlockLightEngine(lightChunkGetter, blockLightSectionStorage);
net.minecraft.world.level.lighting.BlockLightEngine#checkNode(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/BlockLightEngine.java:25 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Node
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: blockToSection(), storingLightForSection(), getState(), set(), getEmission(), getStoredLevel(), setStoredLevel(), enqueueDecrease().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.BlockLightEngine#propagateDecrease(long,long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/BlockLightEngine.java:77 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ propagateDecrease ตาม implementation ของ BlockLightEngine
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getFromLevel(), shouldPropagateInDirection(), offset(), storingLightForSection(), blockToSection(), getStoredLevel(), getState(), set().
Parameters
long llong m
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.BlockLightEngine#propagateIncrease(long,long,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/BlockLightEngine.java:45 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ propagateIncrease ตาม implementation ของ BlockLightEngine
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: shouldPropagateInDirection(), offset(), storingLightForSection(), blockToSection(), getStoredLevel(), set(), getState(), getOpacity().
Parameters
long llong mint i
ตัวอย่างใช้งาน
@Override
protected void propagateIncrease(long l, long m, int i) {
super.propagateIncrease(l, m, i);
}
net.minecraft.world.level.lighting.BlockLightEngine#propagateLightSources(ChunkPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/BlockLightEngine.java:112 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ propagateLightSources ตาม implementation ของ BlockLightEngine
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setLightEnabled(), getChunkForLighting(), findBlockLightSources(), getLightEmission(), enqueueIncrease(), asLong(), increaseLightFromEmission(), isEmptyShape().
Parameters
ChunkPos chunkPos
ตัวอย่างใช้งาน
BlockLightSectionStorage
- Full name:
net.minecraft.world.level.lighting.BlockLightSectionStorage - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/BlockLightSectionStorage.java - Type:
class - Modifiers:
public - Extends:
LayerLightSectionStorage<BlockLightSectionStorage.BlockDataLayerStorageMap>
net.minecraft.world.level.lighting.BlockLightSectionStorage#BlockLightSectionStorage(LightChunkGetter)
- Origin:
common - Source:
net/minecraft/world/level/lighting/BlockLightSectionStorage.java:11 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockLightSectionStorage ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: BlockDataLayerStorageMap(). สร้างออบเจ็กต์: BlockLightSectionStorage.BlockDataLayerStorageMap, Long2ObjectOpenHashMap<>.
Parameters
LightChunkGetter lightChunkGetter
ตัวอย่างใช้งาน
LightChunkGetter lightChunkGetter = ...;
BlockLightSectionStorage instance = new BlockLightSectionStorage(lightChunkGetter);
net.minecraft.world.level.lighting.BlockLightSectionStorage#getLightValue(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/BlockLightSectionStorage.java:15 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Light Value
ทำงานยังไง
เรียกต่อ: blockToSection(), getDataLayer(), get(), sectionRelative(), getX(), getY(), getZ().
Parameters
long l
ตัวอย่างใช้งาน
BlockLightSectionStorage$BlockDataLayerStorageMap
- Full name:
net.minecraft.world.level.lighting.BlockLightSectionStorage$BlockDataLayerStorageMap - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/BlockLightSectionStorage.java - Type:
class - Modifiers:
protected static final - Extends:
DataLayerStorageMap<BlockLightSectionStorage.BlockDataLayerStorageMap>
net.minecraft.world.level.lighting.BlockLightSectionStorage$BlockDataLayerStorageMap#BlockDataLayerStorageMap(Long2ObjectOpenHashMap<DataLayer>)
- Origin:
common - Source:
net/minecraft/world/level/lighting/BlockLightSectionStorage.java:25 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockLightSectionStorage.BlockDataLayerStorageMap ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Long2ObjectOpenHashMap<DataLayer> long2ObjectOpenHashMap
ตัวอย่างใช้งาน
Long2ObjectOpenHashMap<DataLayer> long2ObjectOpenHashMap = ...;
BlockLightSectionStorage.BlockDataLayerStorageMap instance = new BlockLightSectionStorage.BlockDataLayerStorageMap(long2ObjectOpenHashMap);
net.minecraft.world.level.lighting.BlockLightSectionStorage$BlockDataLayerStorageMap#copy()
- Origin:
common - Source:
net/minecraft/world/level/lighting/BlockLightSectionStorage.java:29 - Modifiers:
public - Return:
BlockLightSectionStorage.BlockDataLayerStorageMap
คืออะไร
คัดลอก copy
ทำงานยังไง
เรียกต่อ: BlockDataLayerStorageMap(), clone(). สร้างออบเจ็กต์: BlockLightSectionStorage.BlockDataLayerStorageMap. คืนค่า: new BlockLightSectionStorage.BlockDataLayerStorageMap(this.map.clone()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
BlockLightSectionStorage.BlockDataLayerStorageMap instance = ...;
BlockLightSectionStorage.BlockDataLayerStorageMap result = instance.copy();
ChunkSkyLightSources
- Full name:
net.minecraft.world.level.lighting.ChunkSkyLightSources - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/ChunkSkyLightSources.java - Type:
class - Modifiers:
public
net.minecraft.world.level.lighting.ChunkSkyLightSources#ChunkSkyLightSources(LevelHeightAccessor)
- Origin:
common - Source:
net/minecraft/world/level/lighting/ChunkSkyLightSources.java:26 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ChunkSkyLightSources ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minY, heightmap. เรียกต่อ: getMinY(), getMaxY(), ceillog2(). สร้างออบเจ็กต์: SimpleBitStorage.
Parameters
LevelHeightAccessor levelHeightAccessor
ตัวอย่างใช้งาน
LevelHeightAccessor levelHeightAccessor = ...;
ChunkSkyLightSources instance = new ChunkSkyLightSources(levelHeightAccessor);
net.minecraft.world.level.lighting.ChunkSkyLightSources#fillFrom(ChunkAccess)
- Origin:
common - Source:
net/minecraft/world/level/lighting/ChunkSkyLightSources.java:33 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fillFrom ตาม implementation ของ ChunkSkyLightSources
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getHighestFilledSectionIndex(), fill(), max(), findLowestSourceY(), set(), index().
Parameters
ChunkAccess chunkAccess
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.ChunkSkyLightSources#getHighestLowestSourceY()
- Origin:
common - Source:
net/minecraft/world/level/lighting/ChunkSkyLightSources.java:147 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Highest Lowest Source Y
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getSize(), get(), extendSourcesBelowWorld(). คืนค่า: this.extendSourcesBelowWorld(i + this.minY).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.ChunkSkyLightSources#getLowestSourceY(int,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/ChunkSkyLightSources.java:142 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Lowest Source Y
ทำงานยังไง
เรียกต่อ: get(), index(), extendSourcesBelowWorld(). คืนค่า: this.extendSourcesBelowWorld(k).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.ChunkSkyLightSources#update(BlockGetter,int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/ChunkSkyLightSources.java:77 - Modifiers:
public - Return:
boolean
คืออะไร
อัปเดต update
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: index(), get(), set(), getBlockState(), updateEdge(). มีจุด return อย่างน้อย 3 จุด.
Parameters
BlockGetter blockGetterint iint jint k
ตัวอย่างใช้งาน
ChunkSkyLightSources instance = ...;
BlockGetter blockGetter = ...;
boolean result = instance.update(blockGetter, 0, 0, 0);
DataLayerStorageMap
- Full name:
net.minecraft.world.level.lighting.DataLayerStorageMap - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/DataLayerStorageMap.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.level.lighting.DataLayerStorageMap#clearCache()
- Origin:
common - Source:
net/minecraft/world/level/lighting/DataLayerStorageMap.java:70 - Modifiers:
public - Return:
void
คืออะไร
ล้าง Cache
ทำงานยังไง
มีการวนลูป.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DataLayerStorageMap#copy()
- Origin:
common - Source:
net/minecraft/world/level/lighting/DataLayerStorageMap.java:20 - Modifiers:
public abstract - Return:
M
คืออะไร
คัดลอก copy
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DataLayerStorageMap#copyDataLayer(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DataLayerStorageMap.java:22 - Modifiers:
public - Return:
DataLayer
คืออะไร
คัดลอก Data Layer
ทำงานยังไง
เรียกต่อ: get(), copy(), put(), clearCache(). คืนค่า: dataLayer.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DataLayerStorageMap#DataLayerStorageMap(Long2ObjectOpenHashMap<DataLayer>)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DataLayerStorageMap.java:14 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DataLayerStorageMap ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: map, cacheEnabled. เรียกต่อ: clearCache().
Parameters
Long2ObjectOpenHashMap<DataLayer> long2ObjectOpenHashMap
ตัวอย่างใช้งาน
Long2ObjectOpenHashMap<DataLayer> long2ObjectOpenHashMap = ...;
DataLayerStorageMap instance = new DataLayerStorageMap(long2ObjectOpenHashMap);
net.minecraft.world.level.lighting.DataLayerStorageMap#disableCache()
- Origin:
common - Source:
net/minecraft/world/level/lighting/DataLayerStorageMap.java:77 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ disableCache ตาม implementation ของ DataLayerStorageMap
ทำงานยังไง
แก้ state: cacheEnabled.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DataLayerStorageMap#getLayer(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DataLayerStorageMap.java:33 - Modifiers:
public - Return:
DataLayer
คืออะไร
อ่านค่า Layer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: get(). มีจุด return อย่างน้อย 3 จุด.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DataLayerStorageMap#hasLayer(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DataLayerStorageMap.java:29 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Layer
ทำงานยังไง
เรียกต่อ: containsKey(). คืนค่า: this.map.containsKey(l).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DataLayerStorageMap#removeLayer(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DataLayerStorageMap.java:61 - Modifiers:
public - Return:
DataLayer
คืออะไร
ลบ Layer
ทำงานยังไง
เรียกต่อ: remove(). คืนค่า: this.map.remove(l).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DataLayerStorageMap#setLayer(long,DataLayer)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DataLayerStorageMap.java:66 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Layer
ทำงานยังไง
เรียกต่อ: put().
Parameters
long lDataLayer dataLayer
ตัวอย่างใช้งาน
DynamicGraphMinFixedPoint
- Full name:
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#checkEdge(long,long,int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:64 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Edge
ทำงานยังไง
แก้ state: hasWork. เรียกต่อ: getLevel(), get(), isEmpty().
Parameters
long llong mint iboolean bl
ตัวอย่างใช้งาน
@Override
protected void checkEdge(long l, long m, int i, boolean bl) {
super.checkEdge(l, m, i, bl);
}
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#checkNeighbor(long,long,int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:101 - Modifiers:
protected final - Return:
void
คืออะไร
ตรวจสอบ Neighbor
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: get(), clamp(), computeLevelFromNeighbor(), checkEdge(), getLevel().
Parameters
long llong mint iboolean bl
ตัวอย่างใช้งาน
@Override
protected void checkNeighbor(long l, long m, int i, boolean bl) {
super.checkNeighbor(l, m, i, bl);
}
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#checkNeighborsAfterUpdate(long,int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:163 - Modifiers:
protected abstract - Return:
void
คืออะไร
ตรวจสอบ Neighbors After Update
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
long lint iboolean bl
ตัวอย่างใช้งาน
@Override
protected void checkNeighborsAfterUpdate(long l, int i, boolean bl) {
super.checkNeighborsAfterUpdate(l, i, bl);
}
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#checkNode(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:60 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Node
ทำงานยังไง
เรียกต่อ: checkEdge().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#computeLevelFromNeighbor(long,long,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:169 - Modifiers:
protected abstract - Return:
int
คืออะไร
คำนวณ Level From Neighbor
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
long llong mint i
ตัวอย่างใช้งาน
@Override
protected int computeLevelFromNeighbor(long l, long m, int i) {
return super.computeLevelFromNeighbor(l, m, i);
}
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#DynamicGraphMinFixedPoint(int,int,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:18 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DynamicGraphMinFixedPoint ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: levelCount, priorityQueue, computedLevels. เรียกต่อ: rehash(), defaultReturnValue(). สร้างออบเจ็กต์: IllegalArgumentException, LeveledPriorityQueue, Long2ByteOpenHashMap.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#getComputedLevel(long,long,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:161 - Modifiers:
protected abstract - Return:
int
คืออะไร
อ่านค่า Computed Level
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
long llong mint i
ตัวอย่างใช้งาน
@Override
protected int getComputedLevel(long l, long m, int i) {
return super.getComputedLevel(l, m, i);
}
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#getLevel(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:165 - Modifiers:
protected abstract - Return:
int
คืออะไร
อ่านค่า Level
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#getQueueSize()
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:153 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Queue Size
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: this.computedLevels.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#hasWork()
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:121 - Modifiers:
protected final - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Work
ทำงานยังไง
คืนค่า: this.hasWork.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#isSource(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:157 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Source
ทำงานยังไง
คืนค่า: l == Long.MAX_VALUE.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#removeFromQueue(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:36 - Modifiers:
protected - Return:
void
คืออะไร
ลบ From Queue
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: hasWork. เรียกต่อ: remove(), getLevel(), calculatePriority(), dequeue(), isEmpty().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#removeIf(LongPredicate)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:46 - Modifiers:
public - Return:
void
คืออะไร
ลบ If
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: keySet(), forEach(), test(), add(). สร้างออบเจ็กต์: LongArrayList.
Parameters
LongPredicate longPredicate
ตัวอย่างใช้งาน
DynamicGraphMinFixedPoint instance = ...;
LongPredicate longPredicate = ...;
instance.removeIf(longPredicate);
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#runUpdates(int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:125 - Modifiers:
protected final - Return:
int
คืออะไร
สั่งทำงาน Updates
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: hasWork. เรียกต่อ: isEmpty(), removeFirstLong(), clamp(), getLevel(), remove(), setLevel(), checkNeighborsAfterUpdate(), enqueue(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint#setLevel(long,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/DynamicGraphMinFixedPoint.java:167 - Modifiers:
protected abstract - Return:
void
คืออะไร
กำหนดค่า Level
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
long lint i
ตัวอย่างใช้งาน
LayerLightEventListener
- Full name:
net.minecraft.world.level.lighting.LayerLightEventListener - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/LayerLightEventListener.java - Type:
interface - Modifiers:
public - Implements:
LightEventListener
net.minecraft.world.level.lighting.LayerLightEventListener#getDataLayerData(SectionPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightEventListener.java:10 - Modifiers: ``
- Return:
DataLayer
คืออะไร
อ่านค่า Data Layer Data
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
SectionPos sectionPos
ตัวอย่างใช้งาน
LayerLightEventListener instance = ...;
SectionPos sectionPos = ...;
DataLayer result = instance.getDataLayerData(sectionPos);
net.minecraft.world.level.lighting.LayerLightEventListener#getLightValue(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightEventListener.java:13 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Light Value
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
LayerLightEventListener instance = ...;
BlockPos blockPos = ...;
int result = instance.getLightValue(blockPos);
LayerLightSectionStorage
- Full name:
net.minecraft.world.level.lighting.LayerLightSectionStorage - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/LayerLightSectionStorage.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.level.lighting.LayerLightSectionStorage#createDataLayer(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:114 - Modifiers:
protected - Return:
DataLayer
คืออะไร
สร้าง Data Layer
ทำงานยังไง
เรียกต่อ: get(). สร้างออบเจ็กต์: DataLayer. คืนค่า: dataLayer != null ? dataLayer : new DataLayer().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#getDataLayer(long,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:47 - Modifiers:
protected - Return:
DataLayer
คืออะไร
อ่านค่า Data Layer
ทำงานยังไง
คืนค่า: this.getDataLayer(bl ? this.updatingSectionData : this.visibleSectionData, l).
Parameters
long lboolean bl
ตัวอย่างใช้งาน
@Override
protected DataLayer getDataLayer(long l, boolean bl) {
return super.getDataLayer(l, bl);
}
net.minecraft.world.level.lighting.LayerLightSectionStorage#getDataLayer(M,long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:52 - Modifiers:
protected - Return:
DataLayer
คืออะไร
อ่านค่า Data Layer
ทำงานยังไง
เรียกต่อ: getLayer(). คืนค่า: dataLayerStorageMap.getLayer(l).
Parameters
M dataLayerStorageMaplong l
ตัวอย่างใช้งาน
M dataLayerStorageMap = ...;
@Override
protected DataLayer getDataLayer(M dataLayerStorageMap, long l) {
return super.getDataLayer(dataLayerStorageMap, l);
}
net.minecraft.world.level.lighting.LayerLightSectionStorage#getDataLayerData(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:73 - Modifiers:
public - Return:
DataLayer
คืออะไร
อ่านค่า Data Layer Data
ทำงานยังไง
เรียกต่อ: get(), getDataLayer(). คืนค่า: dataLayer != null ? dataLayer : this.getDataLayer(l, false).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#getDataLayerToWrite(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:57 - Modifiers:
protected - Return:
DataLayer
คืออะไร
อ่านค่า Data Layer To Write
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLayer(), add(), copy(), setLayer(), clearCache(). มีจุด return อย่างน้อย 2 จุด.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#getDebugSectionType(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:273 - Modifiers:
public - Return:
LayerLightSectionStorage.SectionType
คืออะไร
อ่านค่า Debug Section Type
ทำงานยังไง
เรียกต่อ: type(), get(). คืนค่า: LayerLightSectionStorage.SectionState.type(this.sectionStates.get(l)).
Parameters
long l
ตัวอย่างใช้งาน
LayerLightSectionStorage instance = ...;
LayerLightSectionStorage.SectionType result = instance.getDebugSectionType(0L);
net.minecraft.world.level.lighting.LayerLightSectionStorage#getLightValue(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:79 - Modifiers:
protected abstract - Return:
int
คืออะไร
อ่านค่า Light Value
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#getStoredLevel(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:81 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Stored Level
ทำงานยังไง
เรียกต่อ: blockToSection(), getDataLayer(), get(), sectionRelative(), getX(), getY(), getZ(). คืนค่า: dataLayer.get(SectionPos.sectionRelative(BlockPos.getX(l)), SectionPos.sectionRelative(BlockPos.getY(l)), SectionPos.sectionRelative(BlockPos.getZ(l))).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#hasInconsistencies()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:119 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Inconsistencies
ทำงานยังไง
คืนค่า: this.hasInconsistencies.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#LayerLightSectionStorage(LightLayer,LightChunkGetter,M)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:34 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LayerLightSectionStorage ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: layer, chunkSource, updatingSectionData, visibleSectionData. เรียกต่อ: copy(), disableCache(), defaultReturnValue().
Parameters
LightLayer lightLayerLightChunkGetter lightChunkGetterM dataLayerStorageMap
ตัวอย่างใช้งาน
LightLayer lightLayer = ...;
LightChunkGetter lightChunkGetter = ...;
M dataLayerStorageMap = ...;
LayerLightSectionStorage instance = new LayerLightSectionStorage(lightLayer, lightChunkGetter, dataLayerStorageMap);
net.minecraft.world.level.lighting.LayerLightSectionStorage#lightOnInColumn(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:186 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ lightOnInColumn ตาม implementation ของ LayerLightSectionStorage
ทำงานยังไง
เรียกต่อ: contains(). คืนค่า: this.columnsWithSources.contains(l).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#lightOnInSection(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:181 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ lightOnInSection ตาม implementation ของ LayerLightSectionStorage
ทำงานยังไง
เรียกต่อ: getZeroNode(), contains(). คืนค่า: this.columnsWithSources.contains(m).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#markNewInconsistencies(LightEngine<M, ?>)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:123 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ markNewInconsistencies ตาม implementation ของ LayerLightSectionStorage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: hasInconsistencies. เรียกต่อ: remove(), removeLayer(), contains(), getZeroNode(), put(), clearCache(), onNodeRemoved(), add().
Parameters
LightEngine<M, ?> lightEngine
ตัวอย่างใช้งาน
LightEngine<M, ?> lightEngine = ...;
@Override
protected void markNewInconsistencies(LightEngine<M, ?> lightEngine) {
super.markNewInconsistencies(lightEngine);
}
net.minecraft.world.level.lighting.LayerLightSectionStorage#markSectionAndNeighborsAsAffected(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:100 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ markSectionAndNeighborsAsAffected ตาม implementation ของ LayerLightSectionStorage
ทำงานยังไง
มีการวนลูป. เรียกต่อ: x(), y(), z(), add(), asLong().
Parameters
long l
ตัวอย่างใช้งาน
@Override
protected void markSectionAndNeighborsAsAffected(long l) {
super.markSectionAndNeighborsAsAffected(l);
}
net.minecraft.world.level.lighting.LayerLightSectionStorage#onNodeAdded(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:167 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Node Added
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#onNodeRemoved(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:170 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Node Removed
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#putSectionState(long,byte)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:228 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ putSectionState ตาม implementation ของ LayerLightSectionStorage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: put(), initializeSection(), remove(), removeSection().
Parameters
long lbyte b
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#queueSectionData(long,DataLayer)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:198 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ queueSectionData ตาม implementation ของ LayerLightSectionStorage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: hasInconsistencies. เรียกต่อ: put(), remove().
Parameters
long lDataLayer dataLayer
ตัวอย่างใช้งาน
DataLayer dataLayer = ...;
@Override
protected void queueSectionData(long l, DataLayer dataLayer) {
super.queueSectionData(l, dataLayer);
}
net.minecraft.world.level.lighting.LayerLightSectionStorage#retainData(long,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:190 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ retainData ตาม implementation ของ LayerLightSectionStorage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: add(), remove().
Parameters
long lboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#setLightEnabled(long,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:173 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Light Enabled
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: add(), remove().
Parameters
long lboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#setStoredLevel(long,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:87 - Modifiers:
protected - Return:
void
คืออะไร
กำหนดค่า Stored Level
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: blockToSection(), add(), copyDataLayer(), getDataLayer(), set(), sectionRelative(), getX(), getY().
Parameters
long lint i
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#storingLightForSection(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:43 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ storingLightForSection ตาม implementation ของ LayerLightSectionStorage
ทำงานยังไง
เรียกต่อ: getDataLayer(). คืนค่า: this.getDataLayer(l, true) != null.
Parameters
long l
ตัวอย่างใช้งาน
@Override
protected boolean storingLightForSection(long l) {
return super.storingLightForSection(l);
}
net.minecraft.world.level.lighting.LayerLightSectionStorage#swapSectionMap()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:253 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ swapSectionMap ตาม implementation ของ LayerLightSectionStorage
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: visibleSectionData. เรียกต่อ: isEmpty(), copy(), disableCache(), clear(), iterator(), hasNext(), nextLong(), onLightUpdate().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage#updateSectionStatus(long,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:207 - Modifiers:
protected - Return:
void
คืออะไร
อัปเดต Section Status
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: get(), hasData(), putSectionState(), offset(), neighborCount().
Parameters
long lboolean bl
ตัวอย่างใช้งาน
@Override
protected void updateSectionStatus(long l, boolean bl) {
super.updateSectionStatus(l, bl);
}
LayerLightSectionStorage$SectionState
- Full name:
net.minecraft.world.level.lighting.LayerLightSectionStorage$SectionState - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/LayerLightSectionStorage.java - Type:
class - Modifiers:
protected static
net.minecraft.world.level.lighting.LayerLightSectionStorage$SectionState#hasData(byte)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:296 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Data
ทำงานยังไง
คืนค่า: (b & 32) != 0.
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage$SectionState#hasData(byte,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:284 - Modifiers:
public static - Return:
byte
คืออะไร
ตรวจสอบว่ามี Data
ทำงานยังไง
คืนค่า: (byte)(bl ? b | 32 : b & -33).
Parameters
byte bboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage$SectionState#neighborCount(byte)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:300 - Modifiers:
public static - Return:
int
คืออะไร
ดำเนินการ neighborCount ตาม implementation ของ LayerLightSectionStorage$SectionState
ทำงานยังไง
คืนค่า: b & 31.
Parameters
byte b
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage$SectionState#neighborCount(byte,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:288 - Modifiers:
public static - Return:
byte
คืออะไร
ดำเนินการ neighborCount ตาม implementation ของ LayerLightSectionStorage$SectionState
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. สร้างออบเจ็กต์: IllegalArgumentException. คืนค่า: (byte)(b & -32 | i & 31).
Parameters
byte bint i
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LayerLightSectionStorage$SectionState#type(byte)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:304 - Modifiers:
public static - Return:
LayerLightSectionStorage.SectionType
คืออะไร
ดำเนินการ type ตาม implementation ของ LayerLightSectionStorage$SectionState
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: hasData(). มีจุด return อย่างน้อย 2 จุด.
Parameters
byte b
ตัวอย่างใช้งาน
LayerLightSectionStorage$SectionType
- Full name:
net.minecraft.world.level.lighting.LayerLightSectionStorage$SectionType - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/LayerLightSectionStorage.java - Type:
enum - Modifiers:
public
net.minecraft.world.level.lighting.LayerLightSectionStorage$SectionType#display()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LayerLightSectionStorage.java:324 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ display ตาม implementation ของ LayerLightSectionStorage$SectionType
ทำงานยังไง
คืนค่า: this.display.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LeveledPriorityQueue
- Full name:
net.minecraft.world.level.lighting.LeveledPriorityQueue - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/LeveledPriorityQueue.java - Type:
class - Modifiers:
public
net.minecraft.world.level.lighting.LeveledPriorityQueue#dequeue(long,int,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LeveledPriorityQueue.java:42 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ dequeue ตาม implementation ของ LeveledPriorityQueue
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: firstQueuedLevel. เรียกต่อ: remove(), isEmpty(), checkFirstQueuedLevel().
Parameters
long lint iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LeveledPriorityQueue#enqueue(long,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LeveledPriorityQueue.java:50 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ enqueue ตาม implementation ของ LeveledPriorityQueue
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: firstQueuedLevel. เรียกต่อ: add().
Parameters
long lint i
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LeveledPriorityQueue#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LeveledPriorityQueue.java:38 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
คืนค่า: this.firstQueuedLevel >= this.levelCount.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LeveledPriorityQueue#LeveledPriorityQueue(int,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LeveledPriorityQueue.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LeveledPriorityQueue ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: levelCount, queues, firstQueuedLevel. เรียกต่อ: rehash(). สร้างออบเจ็กต์: LongLinkedOpenHashSet.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LeveledPriorityQueue#removeFirstLong()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LeveledPriorityQueue.java:28 - Modifiers:
public - Return:
long
คืออะไร
ลบ First Long
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), checkFirstQueuedLevel(). คืนค่า: l.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
LevelLightEngine
- Full name:
net.minecraft.world.level.lighting.LevelLightEngine - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/LevelLightEngine.java - Type:
class - Modifiers:
public - Implements:
LightEventListener
net.minecraft.world.level.lighting.LevelLightEngine#checkBlock(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:33 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบ Block
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LevelLightEngine#getDebugData(LightLayer,SectionPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:104 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Debug Data
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: asLong(). มีจุด return อย่างน้อย 3 จุด.
Parameters
LightLayer lightLayerSectionPos sectionPos
ตัวอย่างใช้งาน
LevelLightEngine instance = ...;
LightLayer lightLayer = ...;
SectionPos sectionPos = ...;
String result = instance.getDebugData(lightLayer, sectionPos);
net.minecraft.world.level.lighting.LevelLightEngine#getDebugSectionType(LightLayer,SectionPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:116 - Modifiers:
public - Return:
LayerLightSectionStorage.SectionType
คืออะไร
อ่านค่า Debug Section Type
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: asLong(). มีจุด return อย่างน้อย 3 จุด.
Parameters
LightLayer lightLayerSectionPos sectionPos
ตัวอย่างใช้งาน
LevelLightEngine instance = ...;
LightLayer lightLayer = ...;
SectionPos sectionPos = ...;
LayerLightSectionStorage.SectionType result = instance.getDebugSectionType(lightLayer, sectionPos);
net.minecraft.world.level.lighting.LevelLightEngine#getLayerListener(LightLayer)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:96 - Modifiers:
public - Return:
LayerLightEventListener
คืออะไร
อ่านค่า Layer Listener
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: blockEngine, skyEngine. มีจุด return อย่างน้อย 2 จุด.
Parameters
LightLayer lightLayer
ตัวอย่างใช้งาน
LevelLightEngine instance = ...;
LightLayer lightLayer = ...;
LayerLightEventListener result = instance.getLayerListener(lightLayer);
net.minecraft.world.level.lighting.LevelLightEngine#getLightSectionCount()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:158 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Light Section Count
ทำงานยังไง
เรียกต่อ: getSectionsCount(). คืนค่า: this.levelHeightAccessor.getSectionsCount() + 2.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LevelLightEngine#getMaxLightSection()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:166 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Max Light Section
ทำงานยังไง
เรียกต่อ: getMinLightSection(), getLightSectionCount(). คืนค่า: this.getMinLightSection() + this.getLightSectionCount().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LevelLightEngine#getMinLightSection()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:162 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Min Light Section
ทำงานยังไง
เรียกต่อ: getMinSectionY(). คืนค่า: this.levelHeightAccessor.getMinSectionY() - 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LevelLightEngine#getRawBrightness(BlockPos,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:148 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Raw Brightness
ทำงานยังไง
แก้ state: skyEngine, blockEngine. เรียกต่อ: getLightValue(), max(). คืนค่า: Math.max(k, j).
Parameters
BlockPos blockPosint i
ตัวอย่างใช้งาน
LevelLightEngine instance = ...;
BlockPos blockPos = ...;
int result = instance.getRawBrightness(blockPos, 0);
net.minecraft.world.level.lighting.LevelLightEngine#hasLightWork()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:44 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Light Work
ทำงานยังไง
คืนค่า: this.skyEngine != null && this.skyEngine.hasLightWork() ? true : this.blockEngine != null && this.blockEngine.hasLightWork().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LevelLightEngine#LevelLightEngine(LightChunkGetter,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LevelLightEngine ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: levelHeightAccessor, blockEngine, skyEngine. เรียกต่อ: getLevel(). สร้างออบเจ็กต์: BlockLightEngine, SkyLightEngine.
Parameters
LightChunkGetter lightChunkGetterboolean blboolean bl2
ตัวอย่างใช้งาน
LightChunkGetter lightChunkGetter = ...;
LevelLightEngine instance = new LevelLightEngine(lightChunkGetter, true, true);
net.minecraft.world.level.lighting.LevelLightEngine#lightOnInColumn(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:154 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ lightOnInColumn ตาม implementation ของ LevelLightEngine
ทำงานยังไง
แก้ state: blockEngine, skyEngine. คืนค่า: this.blockEngine == null || this.blockEngine.storage.lightOnInColumn(l) && (this.skyEngine == null || this.skyEngine.storage.lightOnInColumn(l)).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LevelLightEngine#propagateLightSources(ChunkPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:85 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ propagateLightSources ตาม implementation ของ LevelLightEngine
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
ChunkPos chunkPos
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LevelLightEngine#queueSectionData(LightLayer,SectionPos,DataLayer)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:128 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ queueSectionData ตาม implementation ของ LevelLightEngine
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: asLong().
Parameters
LightLayer lightLayerSectionPos sectionPosDataLayer dataLayer
ตัวอย่างใช้งาน
LevelLightEngine instance = ...;
LightLayer lightLayer = ...;
SectionPos sectionPos = ...;
DataLayer dataLayer = ...;
instance.queueSectionData(lightLayer, sectionPos, dataLayer);
net.minecraft.world.level.lighting.LevelLightEngine#retainData(ChunkPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:138 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ retainData ตาม implementation ของ LevelLightEngine
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
ChunkPos chunkPosboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LevelLightEngine#runLightUpdates()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:49 - Modifiers:
public - Return:
int
คืออะไร
สั่งทำงาน Light Updates
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. คืนค่า: i.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LevelLightEngine#setLightEnabled(ChunkPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:74 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Light Enabled
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
ChunkPos chunkPosboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LevelLightEngine#updateSectionStatus(SectionPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LevelLightEngine.java:63 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Section Status
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
SectionPos sectionPosboolean bl
ตัวอย่างใช้งาน
LevelLightEngine instance = ...;
SectionPos sectionPos = ...;
instance.updateSectionStatus(sectionPos, true);
LightEngine
- Full name:
net.minecraft.world.level.lighting.LightEngine - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/LightEngine.java - Type:
class - Modifiers:
public abstract - Implements:
LayerLightEventListener
net.minecraft.world.level.lighting.LightEngine#checkBlock(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:114 - Modifiers:
public - Return:
void
คืออะไร
ตรวจสอบ Block
ทำงานยังไง
เรียกต่อ: add(), asLong().
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#checkNode(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:221 - Modifiers:
protected abstract - Return:
void
คืออะไร
ตรวจสอบ Node
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#enqueueDecrease(long,long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:187 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ enqueueDecrease ตาม implementation ของ LightEngine
ทำงานยังไง
เรียกต่อ: enqueue().
Parameters
long llong m
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#enqueueIncrease(long,long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:192 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ enqueueIncrease ตาม implementation ของ LightEngine
ทำงานยังไง
เรียกต่อ: enqueue().
Parameters
long llong m
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#getChunk(int,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:87 - Modifiers:
protected - Return:
LightChunk
คืออะไร
อ่านค่า Chunk
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: asLong(), getChunkForLighting(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#getDataLayerData(SectionPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:202 - Modifiers:
public - Return:
DataLayer
คืออะไร
อ่านค่า Data Layer Data
ทำงานยังไง
เรียกต่อ: asLong(). คืนค่า: this.storage.getDataLayerData(sectionPos.asLong()).
Parameters
SectionPos sectionPos
ตัวอย่างใช้งาน
LightEngine instance = ...;
SectionPos sectionPos = ...;
DataLayer result = instance.getDataLayerData(sectionPos);
net.minecraft.world.level.lighting.LightEngine#getDebugData(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:213 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Debug Data
ทำงานยังไง
เรียกต่อ: getDebugSectionType(), display(). คืนค่า: this.getDebugSectionType(l).display().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#getDebugSectionType(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:217 - Modifiers:
public - Return:
LayerLightSectionStorage.SectionType
คืออะไร
อ่านค่า Debug Section Type
ทำงานยังไง
คืนค่า: this.storage.getDebugSectionType(l).
Parameters
long l
ตัวอย่างใช้งาน
LightEngine instance = ...;
LayerLightSectionStorage.SectionType result = instance.getDebugSectionType(0L);
net.minecraft.world.level.lighting.LightEngine#getLightBlockInto(BlockState,BlockState,Direction,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:50 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า Light Block Into
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmptyShape(), empty(), getOcclusionShape(), mergedFaceOccludes(). มีจุด return อย่างน้อย 2 จุด.
Parameters
BlockState blockStateBlockState blockState2Direction directionint i
ตัวอย่างใช้งาน
BlockState blockState = ...;
BlockState blockState2 = ...;
Direction direction = ...;
int result = LightEngine.getLightBlockInto(blockState, blockState2, direction, 0);
net.minecraft.world.level.lighting.LightEngine#getLightValue(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:208 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Light Value
ทำงานยังไง
เรียกต่อ: asLong(). คืนค่า: this.storage.getLightValue(blockPos.asLong()).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#getOcclusionShape(BlockState,Direction)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:62 - Modifiers:
public static - Return:
VoxelShape
คืออะไร
อ่านค่า Occlusion Shape
ทำงานยังไง
เรียกต่อ: isEmptyShape(), empty(), getFaceOcclusionShape(). คืนค่า: isEmptyShape(blockState) ? Shapes.empty() : blockState.getFaceOcclusionShape(direction).
Parameters
BlockState blockStateDirection direction
ตัวอย่างใช้งาน
BlockState blockState = ...;
Direction direction = ...;
VoxelShape result = LightEngine.getOcclusionShape(blockState, direction);
net.minecraft.world.level.lighting.LightEngine#getOpacity(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:77 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Opacity
ทำงานยังไง
เรียกต่อ: max(), getLightBlock(). คืนค่า: Math.max(1, blockState.getLightBlock()).
Parameters
BlockState blockState
ตัวอย่างใช้งาน
BlockState blockState = ...;
@Override
protected int getOpacity(BlockState blockState) {
return super.getOpacity(blockState);
}
net.minecraft.world.level.lighting.LightEngine#getState(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:70 - Modifiers:
protected - Return:
BlockState
คืออะไร
อ่านค่า State
ทำงานยังไง
เรียกต่อ: blockToSectionCoord(), getX(), getZ(), getChunk(), defaultBlockState(), getBlockState(). คืนค่า: lightChunk == null ? Blocks.BEDROCK.defaultBlockState() : lightChunk.getBlockState(blockPos).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
@Override
protected BlockState getState(BlockPos blockPos) {
return super.getState(blockPos);
}
net.minecraft.world.level.lighting.LightEngine#hasDifferentLightProperties(BlockState,BlockState)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:41 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Different Light Properties
ทำงานยังไง
เรียกต่อ: getLightBlock(), getLightEmission(), useShapeForLightOcclusion().
Parameters
BlockState blockStateBlockState blockState2
ตัวอย่างใช้งาน
BlockState blockState = ...;
BlockState blockState2 = ...;
boolean result = LightEngine.hasDifferentLightProperties(blockState, blockState2);
net.minecraft.world.level.lighting.LightEngine#hasLightWork()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:197 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Light Work
ทำงานยังไง
เรียกต่อ: hasInconsistencies(), isEmpty(). คืนค่า: this.storage.hasInconsistencies() || !this.blockNodesToCheck.isEmpty() || !this.decreaseQueue.isEmpty() || !this.increaseQueue.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#isEmptyShape(BlockState)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:66 - Modifiers:
protected static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty Shape
ทำงานยังไง
เรียกต่อ: canOcclude(), useShapeForLightOcclusion(). คืนค่า: !blockState.canOcclude() || !blockState.useShapeForLightOcclusion().
Parameters
BlockState blockState
ตัวอย่างใช้งาน
BlockState blockState = ...;
@Override
protected boolean isEmptyShape(BlockState blockState) {
return super.isEmptyShape(blockState);
}
net.minecraft.world.level.lighting.LightEngine#LightEngine(LightChunkGetter,S)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:35 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ LightEngine ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: chunkSource, storage. เรียกต่อ: clearChunkCache().
Parameters
LightChunkGetter lightChunkGetterS layerLightSectionStorage
ตัวอย่างใช้งาน
LightChunkGetter lightChunkGetter = ...;
S layerLightSectionStorage = ...;
LightEngine instance = new LightEngine(lightChunkGetter, layerLightSectionStorage);
net.minecraft.world.level.lighting.LightEngine#propagateDecrease(long,long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:225 - Modifiers:
protected abstract - Return:
void
คืออะไร
ดำเนินการ propagateDecrease ตาม implementation ของ LightEngine
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
long llong m
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#propagateIncrease(long,long,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:223 - Modifiers:
protected abstract - Return:
void
คืออะไร
ดำเนินการ propagateIncrease ตาม implementation ของ LightEngine
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
long llong mint i
ตัวอย่างใช้งาน
@Override
protected void propagateIncrease(long l, long m, int i) {
super.propagateIncrease(l, m, i);
}
net.minecraft.world.level.lighting.LightEngine#queueSectionData(long,DataLayer)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:119 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ queueSectionData ตาม implementation ของ LightEngine
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
long lDataLayer dataLayer
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#retainData(ChunkPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:123 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ retainData ตาม implementation ของ LightEngine
ทำงานยังไง
เรียกต่อ: getZeroNode().
Parameters
ChunkPos chunkPosboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#runLightUpdates()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:137 - Modifiers:
public - Return:
int
คืออะไร
สั่งทำงาน Light Updates
ทำงานยังไง
มีการวนลูป. เรียกต่อ: iterator(), hasNext(), checkNode(), nextLong(), clear(), trim(), propagateDecreases(), propagateIncreases(). คืนค่า: i.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#setLightEnabled(ChunkPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:132 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Light Enabled
ทำงานยังไง
เรียกต่อ: getZeroNode().
Parameters
ChunkPos chunkPosboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine#shapeOccludes(BlockState,BlockState,Direction)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:81 - Modifiers:
protected - Return:
boolean
คืออะไร
ดำเนินการ shapeOccludes ตาม implementation ของ LightEngine
ทำงานยังไง
เรียกต่อ: getOcclusionShape(), getOpposite(), faceShapeOccludes(). คืนค่า: Shapes.faceShapeOccludes(voxelShape, voxelShape2).
Parameters
BlockState blockStateBlockState blockState2Direction direction
ตัวอย่างใช้งาน
BlockState blockState = ...;
BlockState blockState2 = ...;
Direction direction = ...;
@Override
protected boolean shapeOccludes(BlockState blockState, BlockState blockState2, Direction direction) {
return super.shapeOccludes(blockState, blockState2, direction);
}
net.minecraft.world.level.lighting.LightEngine#updateSectionStatus(SectionPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:127 - Modifiers:
public - Return:
void
คืออะไร
อัปเดต Section Status
ทำงานยังไง
เรียกต่อ: asLong().
Parameters
SectionPos sectionPosboolean bl
ตัวอย่างใช้งาน
LightEngine instance = ...;
SectionPos sectionPos = ...;
instance.updateSectionStatus(sectionPos, true);
LightEngine$QueueEntry
- Full name:
net.minecraft.world.level.lighting.LightEngine$QueueEntry - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/LightEngine.java - Type:
class - Modifiers:
public static
net.minecraft.world.level.lighting.LightEngine$QueueEntry#decreaseAllDirections(int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:240 - Modifiers:
public static - Return:
long
คืออะไร
ดำเนินการ decreaseAllDirections ตาม implementation ของ LightEngine$QueueEntry
ทำงานยังไง
เรียกต่อ: withLevel(). คืนค่า: withLevel(1008L, i).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine$QueueEntry#decreaseSkipOneDirection(int,Direction)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:235 - Modifiers:
public static - Return:
long
คืออะไร
ดำเนินการ decreaseSkipOneDirection ตาม implementation ของ LightEngine$QueueEntry
ทำงานยังไง
เรียกต่อ: withoutDirection(), withLevel(). คืนค่า: withLevel(l, i).
Parameters
int iDirection direction
ตัวอย่างใช้งาน
Direction direction = ...;
long result = LightEngine.QueueEntry.decreaseSkipOneDirection(0, direction);
net.minecraft.world.level.lighting.LightEngine$QueueEntry#getFromLevel(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:298 - Modifiers:
public static - Return:
int
คืออะไร
อ่านค่า From Level
ทำงานยังไง
คืนค่า: (int)(l & 15L).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine$QueueEntry#increaseLightFromEmission(int,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:244 - Modifiers:
public static - Return:
long
คืออะไร
ดำเนินการ increaseLightFromEmission ตาม implementation ของ LightEngine$QueueEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: withLevel(). คืนค่า: withLevel(l, i).
Parameters
int iboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine$QueueEntry#increaseOnlyOneDirection(int,boolean,Direction)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:263 - Modifiers:
public static - Return:
long
คืออะไร
ดำเนินการ increaseOnlyOneDirection ตาม implementation ของ LightEngine$QueueEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: withDirection(), withLevel(). คืนค่า: withLevel(l, i).
Parameters
int iboolean blDirection direction
ตัวอย่างใช้งาน
Direction direction = ...;
long result = LightEngine.QueueEntry.increaseOnlyOneDirection(0, true, direction);
net.minecraft.world.level.lighting.LightEngine$QueueEntry#increaseSkipOneDirection(int,boolean,Direction)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:254 - Modifiers:
public static - Return:
long
คืออะไร
ดำเนินการ increaseSkipOneDirection ตาม implementation ของ LightEngine$QueueEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: withoutDirection(), withLevel(). คืนค่า: withLevel(l, i).
Parameters
int iboolean blDirection direction
ตัวอย่างใช้งาน
Direction direction = ...;
long result = LightEngine.QueueEntry.increaseSkipOneDirection(0, true, direction);
net.minecraft.world.level.lighting.LightEngine$QueueEntry#increaseSkySourceInDirections(boolean,boolean,boolean,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:273 - Modifiers:
public static - Return:
long
คืออะไร
ดำเนินการ increaseSkySourceInDirections ตาม implementation ของ LightEngine$QueueEntry
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: withLevel(), withDirection(). คืนค่า: l.
Parameters
boolean blboolean bl2boolean bl3boolean bl4boolean bl5
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine$QueueEntry#isFromEmptyShape(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:302 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ From Empty Shape
ทำงานยังไง
คืนค่า: (l & 1024L) != 0L.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine$QueueEntry#isIncreaseFromEmission(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:306 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Increase From Emission
ทำงานยังไง
คืนค่า: (l & 2048L) != 0L.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEngine$QueueEntry#shouldPropagateInDirection(long,Direction)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEngine.java:310 - Modifiers:
public static - Return:
boolean
คืออะไร
ตรวจสอบว่าควร Propagate In Direction
ทำงานยังไง
เรียกต่อ: ordinal(). คืนค่า: (l & 1L << direction.ordinal() + 4) != 0L.
Parameters
long lDirection direction
ตัวอย่างใช้งาน
Direction direction = ...;
boolean result = LightEngine.QueueEntry.shouldPropagateInDirection(0L, direction);
LightEventListener
- Full name:
net.minecraft.world.level.lighting.LightEventListener - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/LightEventListener.java - Type:
interface - Modifiers:
public
net.minecraft.world.level.lighting.LightEventListener#checkBlock(BlockPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEventListener.java:8 - Modifiers: ``
- Return:
void
คืออะไร
ตรวจสอบ Block
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEventListener#hasLightWork()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEventListener.java:10 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบว่ามี Light Work
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEventListener#propagateLightSources(ChunkPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEventListener.java:22 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ propagateLightSources ตาม implementation ของ LightEventListener
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ChunkPos chunkPos
ตัวอย่างใช้งาน
LightEventListener instance = ...;
ChunkPos chunkPos = ...;
instance.propagateLightSources(chunkPos);
net.minecraft.world.level.lighting.LightEventListener#runLightUpdates()
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEventListener.java:12 - Modifiers: ``
- Return:
int
คืออะไร
สั่งทำงาน Light Updates
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.LightEventListener#setLightEnabled(ChunkPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEventListener.java:20 - Modifiers: ``
- Return:
void
คืออะไร
กำหนดค่า Light Enabled
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
ChunkPos chunkPosboolean bl
ตัวอย่างใช้งาน
LightEventListener instance = ...;
ChunkPos chunkPos = ...;
instance.setLightEnabled(chunkPos, true);
net.minecraft.world.level.lighting.LightEventListener#updateSectionStatus(BlockPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEventListener.java:14 - Modifiers:
default - Return:
void
คืออะไร
อัปเดต Section Status
ทำงานยังไง
เรียกต่อ: of().
Parameters
BlockPos blockPosboolean bl
ตัวอย่างใช้งาน
LightEventListener instance = ...;
BlockPos blockPos = ...;
instance.updateSectionStatus(blockPos, true);
net.minecraft.world.level.lighting.LightEventListener#updateSectionStatus(SectionPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/LightEventListener.java:18 - Modifiers: ``
- Return:
void
คืออะไร
อัปเดต Section Status
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
SectionPos sectionPosboolean bl
ตัวอย่างใช้งาน
LightEventListener instance = ...;
SectionPos sectionPos = ...;
instance.updateSectionStatus(sectionPos, true);
SkyLightEngine
- Full name:
net.minecraft.world.level.lighting.SkyLightEngine - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/SkyLightEngine.java - Type:
class - Modifiers:
public final - Extends:
LightEngine<SkyLightSectionStorage.SkyDataLayerStorageMap, SkyLightSectionStorage>
net.minecraft.world.level.lighting.SkyLightEngine#checkNode(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightEngine.java:48 - Modifiers:
protected - Return:
void
คืออะไร
ตรวจสอบ Node
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getX(), getY(), getZ(), blockToSection(), lightOnInSection(), getLowestSourceY(), updateSourcesInColumn(), storingLightForSection().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightEngine#propagateDecrease(long,long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightEngine.java:171 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ propagateDecrease ตาม implementation ของ SkyLightEngine
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: countEmptySectionsBelowIfAtBorder(), getFromLevel(), shouldPropagateInDirection(), offset(), storingLightForSection(), blockToSection(), getStoredLevel(), setStoredLevel().
Parameters
long llong m
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightEngine#propagateIncrease(long,long,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightEngine.java:136 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ propagateIncrease ตาม implementation ของ SkyLightEngine
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: countEmptySectionsBelowIfAtBorder(), shouldPropagateInDirection(), offset(), storingLightForSection(), blockToSection(), getStoredLevel(), set(), getState().
Parameters
long llong mint i
ตัวอย่างใช้งาน
@Override
protected void propagateIncrease(long l, long m, int i) {
super.propagateIncrease(l, m, i);
}
net.minecraft.world.level.lighting.SkyLightEngine#propagateLightSources(ChunkPos)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightEngine.java:289 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ propagateLightSources ตาม implementation ของ SkyLightEngine
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getZeroNode(), setLightEnabled(), requireNonNullElse(), getChunkSources(), getTopSectionY(), getBottomSectionY(), sectionToBlockCoord(), asLong().
Parameters
ChunkPos chunkPos
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightEngine#setLightEnabled(ChunkPos,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightEngine.java:269 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Light Enabled
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: requireNonNullElse(), getChunkSources(), getHighestLowestSourceY(), blockToSectionCoord(), getZeroNode(), getTopSectionY(), max(), getBottomSectionY().
Parameters
ChunkPos chunkPosboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightEngine#SkyLightEngine(LightChunkGetter)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightEngine.java:23 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SkyLightEngine ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
สร้างออบเจ็กต์: SkyLightSectionStorage.
Parameters
LightChunkGetter lightChunkGetter
ตัวอย่างใช้งาน
LightChunkGetter lightChunkGetter = ...;
SkyLightEngine instance = new SkyLightEngine(lightChunkGetter);
net.minecraft.world.level.lighting.SkyLightEngine#SkyLightEngine(LightChunkGetter,SkyLightSectionStorage)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightEngine.java:27 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SkyLightEngine ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: emptyChunkSources. เรียกต่อ: getLevel(). สร้างออบเจ็กต์: ChunkSkyLightSources.
Parameters
LightChunkGetter lightChunkGetterSkyLightSectionStorage skyLightSectionStorage
ตัวอย่างใช้งาน
LightChunkGetter lightChunkGetter = ...;
SkyLightSectionStorage skyLightSectionStorage = ...;
SkyLightEngine instance = new SkyLightEngine(lightChunkGetter, skyLightSectionStorage);
SkyLightSectionStorage
- Full name:
net.minecraft.world.level.lighting.SkyLightSectionStorage - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/SkyLightSectionStorage.java - Type:
class - Modifiers:
public - Extends:
LayerLightSectionStorage<SkyLightSectionStorage.SkyDataLayerStorageMap>
net.minecraft.world.level.lighting.SkyLightSectionStorage#createDataLayer(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:87 - Modifiers:
protected - Return:
DataLayer
คืออะไร
สร้าง Data Layer
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: get(), getZeroNode(), y(), offset(), getDataLayer(), repeatFirstLayer(), lightOnInSection(). สร้างออบเจ็กต์: DataLayer. มีจุด return อย่างน้อย 3 จุด.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightSectionStorage#getBottomSectionY()
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:138 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Bottom Section Y
ทำงานยังไง
คืนค่า: this.updatingSectionData.currentLowestY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightSectionStorage#getLightValue(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:21 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Light Value
ทำงานยังไง
คืนค่า: this.getLightValue(l, false).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightSectionStorage#getLightValue(long,boolean)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:26 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Light Value
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: blockToSection(), y(), get(), getZeroNode(), getDataLayer(), getFlatIndex(), offset(), sectionRelative(). มีจุด return อย่างน้อย 3 จุด.
Parameters
long lboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightSectionStorage#getTopSectionY(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:134 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Top Section Y
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.updatingSectionData.topSections.get(l).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightSectionStorage#hasLightDataAtOrBelow(int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:124 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Light Data At Or Below
ทำงานยังไง
คืนค่า: i >= this.updatingSectionData.currentLowestY.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightSectionStorage#isAboveData(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:128 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Above Data
ทำงานยังไง
เรียกต่อ: getZeroNode(), get(), y(). คืนค่า: i == this.updatingSectionData.currentLowestY || SectionPos.y(l) >= i.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightSectionStorage#onNodeAdded(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:54 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Node Added
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: y(), defaultReturnValue(), getZeroNode(), get(), put().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightSectionStorage#onNodeRemoved(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:69 - Modifiers:
protected - Return:
void
คืออะไร
จัดการเหตุการณ์ Node Removed
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getZeroNode(), y(), get(), storingLightForSection(), hasLightDataAtOrBelow(), offset(), put(), remove().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SkyLightSectionStorage#SkyLightSectionStorage(LightChunkGetter)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:13 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SkyLightSectionStorage ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: SkyDataLayerStorageMap(). สร้างออบเจ็กต์: SkyLightSectionStorage.SkyDataLayerStorageMap, Long2ObjectOpenHashMap<>, Long2IntOpenHashMap.
Parameters
LightChunkGetter lightChunkGetter
ตัวอย่างใช้งาน
LightChunkGetter lightChunkGetter = ...;
SkyLightSectionStorage instance = new SkyLightSectionStorage(lightChunkGetter);
SkyLightSectionStorage$SkyDataLayerStorageMap
- Full name:
net.minecraft.world.level.lighting.SkyLightSectionStorage$SkyDataLayerStorageMap - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/SkyLightSectionStorage.java - Type:
class - Modifiers:
protected static final - Extends:
DataLayerStorageMap<SkyLightSectionStorage.SkyDataLayerStorageMap>
net.minecraft.world.level.lighting.SkyLightSectionStorage$SkyDataLayerStorageMap#copy()
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:153 - Modifiers:
public - Return:
SkyLightSectionStorage.SkyDataLayerStorageMap
คืออะไร
คัดลอก copy
ทำงานยังไง
เรียกต่อ: SkyDataLayerStorageMap(), clone(). สร้างออบเจ็กต์: SkyLightSectionStorage.SkyDataLayerStorageMap. คืนค่า: new SkyLightSectionStorage.SkyDataLayerStorageMap(this.map.clone(), this.topSections.clone(), this.currentLowestY).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
SkyLightSectionStorage.SkyDataLayerStorageMap instance = ...;
SkyLightSectionStorage.SkyDataLayerStorageMap result = instance.copy();
net.minecraft.world.level.lighting.SkyLightSectionStorage$SkyDataLayerStorageMap#SkyDataLayerStorageMap(Long2ObjectOpenHashMap<DataLayer>,Long2IntOpenHashMap,int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SkyLightSectionStorage.java:146 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SkyLightSectionStorage.SkyDataLayerStorageMap ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: topSections, currentLowestY. เรียกต่อ: defaultReturnValue().
Parameters
Long2ObjectOpenHashMap<DataLayer> long2ObjectOpenHashMapLong2IntOpenHashMap long2IntOpenHashMapint i
ตัวอย่างใช้งาน
Long2ObjectOpenHashMap<DataLayer> long2ObjectOpenHashMap = ...;
Long2IntOpenHashMap long2IntOpenHashMap = ...;
SkyLightSectionStorage.SkyDataLayerStorageMap instance = new SkyLightSectionStorage.SkyDataLayerStorageMap(long2ObjectOpenHashMap, long2IntOpenHashMap, 0);
SpatialLongSet
- Full name:
net.minecraft.world.level.lighting.SpatialLongSet - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/SpatialLongSet.java - Type:
class - Modifiers:
public - Extends:
LongLinkedOpenHashSet
net.minecraft.world.level.lighting.SpatialLongSet#add(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SpatialLongSet.java:17 - Modifiers:
public - Return:
boolean
คืออะไร
เพิ่ม add
ทำงานยังไง
เรียกต่อ: addBit(). คืนค่า: this.map.addBit(l).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SpatialLongSet#isEmpty()
- Origin:
common - Source:
net/minecraft/world/level/lighting/SpatialLongSet.java:37 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
คืนค่า: this.map.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SpatialLongSet#rem(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SpatialLongSet.java:22 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ rem ตาม implementation ของ SpatialLongSet
ทำงานยังไง
เรียกต่อ: removeBit(). คืนค่า: this.map.removeBit(l).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SpatialLongSet#removeFirstLong()
- Origin:
common - Source:
net/minecraft/world/level/lighting/SpatialLongSet.java:27 - Modifiers:
public - Return:
long
คืออะไร
ลบ First Long
ทำงานยังไง
เรียกต่อ: removeFirstBit(). คืนค่า: this.map.removeFirstBit().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SpatialLongSet#size()
- Origin:
common - Source:
net/minecraft/world/level/lighting/SpatialLongSet.java:32 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ SpatialLongSet
ทำงานยังไง
สร้างออบเจ็กต์: UnsupportedOperationException.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SpatialLongSet#SpatialLongSet(int,float)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SpatialLongSet.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SpatialLongSet ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: map. เรียกต่อ: InternalMap(). สร้างออบเจ็กต์: SpatialLongSet.InternalMap.
Parameters
int ifloat f
ตัวอย่างใช้งาน
SpatialLongSet$InternalMap
- Full name:
net.minecraft.world.level.lighting.SpatialLongSet$InternalMap - Package:
net.minecraft.world.level.lighting - Source:
common—net/minecraft/world/level/lighting/SpatialLongSet.java - Type:
class - Modifiers:
protected static - Extends:
Long2LongLinkedOpenHashMap
net.minecraft.world.level.lighting.SpatialLongSet$InternalMap#addBit(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SpatialLongSet.java:76 - Modifiers:
public - Return:
boolean
คืออะไร
เพิ่ม Bit
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: containsNullKey, lastPos, lastOuterKey, size, first, last. เรียกต่อ: getOuterKey(), getInnerKey(), replaceBit(), mix(), rehash(), arraySize(). มีจุด return อย่างน้อย 4 จุด.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SpatialLongSet$InternalMap#InternalMap(int,float)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SpatialLongSet.java:54 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SpatialLongSet.InternalMap ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minSize.
Parameters
int ifloat f
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SpatialLongSet$InternalMap#rehash(int)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SpatialLongSet.java:217 - Modifiers:
protected - Return:
void
คืออะไร
ดำเนินการ rehash ตาม implementation ของ SpatialLongSet$InternalMap
ทำงานยังไง
ตรวจเงื่อนไขด้วย if.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SpatialLongSet$InternalMap#removeBit(long)
- Origin:
common - Source:
net/minecraft/world/level/lighting/SpatialLongSet.java:131 - Modifiers:
public - Return:
boolean
คืออะไร
ลบ Bit
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: lastPos, lastOuterKey. เรียกต่อ: getOuterKey(), getInnerKey(), removeFromNullEntry(), removeFromEntry(), mix(). มีจุด return อย่างน้อย 4 จุด.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.world.level.lighting.SpatialLongSet$InternalMap#removeFirstBit()
- Origin:
common - Source:
net/minecraft/world/level/lighting/SpatialLongSet.java:200 - Modifiers:
public - Return:
long
คืออะไร
ลบ First Bit
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: size, lastPos. เรียกต่อ: numberOfTrailingZeros(), removeFirstLong(), getFullKey(). สร้างออบเจ็กต์: NoSuchElementException. คืนค่า: getFullKey(l, j).
Parameters
- ไม่มี