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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.world.AuxiliaryLightManager
removeLightAt
-
Field Details
-
LIGHT_NBT_KEY
- See Also:
-
owner
-
lights
-
-
Constructor Details
-
LevelChunkAuxiliaryLightManager
-
-
Method Details
-
setLightAt
Description copied from interface:AuxiliaryLightManagerSet the light value at the given position to the given value- Specified by:
setLightAtin interfaceAuxiliaryLightManager
-
getLightAt
Description copied from interface:AuxiliaryLightManagerReturns the light value at the given position or 0 if none is present.- Specified by:
getLightAtin interfaceAuxiliaryLightManager- Returns:
- the light value at the given position or 0 if none is present
-
serializeNBT
- Specified by:
serializeNBTin interfaceINBTSerializable<ListTag>
-
deserializeNBT
- Specified by:
deserializeNBTin interfaceINBTSerializable<ListTag>
-
sendLightDataTo
-
handleLightDataSync
-