Class LightBlock

All Implemented Interfaces:
Comparable<Content>, Senseable

public class LightBlock extends Block
  • Field Details

    • brightness

      public float brightness
    • radius

      public float radius
    • topRegion

      public TextureRegion topRegion
  • Constructor Details

    • LightBlock

      public LightBlock(String name)
  • Method Details

    • init

      public void init()
      Description copied from class: Block
      Called after all blocks are created.
      Overrides:
      init in class Block
    • drawPlace

      public void drawPlace(int x, int y, int rotation, boolean valid)
      Description copied from class: Block
      Drawn when you are placing a block.
      Overrides:
      drawPlace in class Block
    • changePlacementPath

      public void changePlacementPath(Seq<Point2> points, int rotation)
      Description copied from class: Block
      Mutates the given list of points used during line placement.
      Overrides:
      changePlacementPath in class Block