Interface LightTypeRegistry.DebugLightFactory

Enclosing class:
LightTypeRegistry
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface LightTypeRegistry.DebugLightFactory
Creates debug lights for the LightEditor.
  • Method Summary

    Modifier and Type
    Method
    Description
    createDebugLight(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.client.Camera camera)
    Creates a new light in the level.
  • Method Details

    • createDebugLight

      Light createDebugLight(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.client.Camera camera)
      Creates a new light in the level. The position is set automatically for PositionedLight.
      Parameters:
      level - The level the light is in
      camera - The camera the light is being spawned at
      Returns:
      The new light created