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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deserializeNBT
(HolderLookup.Provider provider, ListTag list) int
getLightAt
(BlockPos pos) Returns the light value at the given position or 0 if none is present.void
handleLightDataSync
(Map<BlockPos, Byte> lights) Packet
<?> sendLightDataTo
(ClientboundLevelChunkWithLightPacket chunkPacket) @Nullable ListTag
serializeNBT
(HolderLookup.Provider provider) void
setLightAt
(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, wait
Methods 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:AuxiliaryLightManager
Set the light value at the given position to the given value- Specified by:
setLightAt
in interfaceAuxiliaryLightManager
-
getLightAt
Description copied from interface:AuxiliaryLightManager
Returns the light value at the given position or 0 if none is present.- Specified by:
getLightAt
in interfaceAuxiliaryLightManager
- Returns:
- the light value at the given position or 0 if none is present
-
serializeNBT
- Specified by:
serializeNBT
in interfaceINBTSerializable<ListTag>
-
deserializeNBT
- Specified by:
deserializeNBT
in interfaceINBTSerializable<ListTag>
-
sendLightDataTo
-
handleLightDataSync
-