Class LevelChunkAuxiliaryLightManager
java.lang.Object
net.neoforged.neoforge.common.world.LevelChunkAuxiliaryLightManager
- All Implemented Interfaces:
- INBTSerializable<ListTag>,- AuxiliaryLightManager
@Internal
public final class LevelChunkAuxiliaryLightManager
extends Object
implements AuxiliaryLightManager, INBTSerializable<ListTag>
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddeserializeNBT(HolderLookup.Provider provider, ListTag list) intgetLightAt(BlockPos pos) Returns the light value at the given position or 0 if none is present.voidhandleLightDataSync(Map<BlockPos, Byte> lights) Packet<?> sendLightDataTo(ClientboundLevelChunkWithLightPacket chunkPacket) @Nullable ListTagserializeNBT(HolderLookup.Provider provider) voidsetLightAt(BlockPos pos, int value) Set the light value at the given position to the given valueMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.world.AuxiliaryLightManagerremoveLightAt
- 
Field Details- 
LIGHT_NBT_KEY- See Also:
 
- 
owner
- 
lights
 
- 
- 
Constructor Details- 
LevelChunkAuxiliaryLightManager
 
- 
- 
Method Details- 
setLightAtDescription copied from interface:AuxiliaryLightManagerSet the light value at the given position to the given value- Specified by:
- setLightAtin interface- AuxiliaryLightManager
 
- 
getLightAtDescription copied from interface:AuxiliaryLightManagerReturns the light value at the given position or 0 if none is present.- Specified by:
- getLightAtin interface- AuxiliaryLightManager
- Returns:
- the light value at the given position or 0 if none is present
 
- 
serializeNBT- Specified by:
- serializeNBTin interface- INBTSerializable<ListTag>
 
- 
deserializeNBT- Specified by:
- deserializeNBTin interface- INBTSerializable<ListTag>
 
- 
sendLightDataTo
- 
handleLightDataSync
 
-