Class CellLiquid

All Implemented Interfaces:
Comparable<Content>, Senseable

public class CellLiquid extends Liquid
Liquid that draws cells in its puddle.
  • Field Details

    • colorFrom

      public Color colorFrom
    • colorTo

      public Color colorTo
    • cells

      public int cells
    • spreadTarget

      @Nullable public Liquid spreadTarget
    • maxSpread

      public float maxSpread
    • spreadConversion

      public float spreadConversion
    • spreadDamage

      public float spreadDamage
    • removeScaling

      public float removeScaling
  • Constructor Details

    • CellLiquid

      public CellLiquid(String name, Color color)
    • CellLiquid

      public CellLiquid(String name)
  • Method Details

    • update

      public void update(mindustry.gen.Puddle puddle)
      Description copied from class: Liquid
      Runs when puddles update.
      Overrides:
      update in class Liquid
    • react

      public float react(Liquid other, float amount, Tile tile, float x, float y)
      Overrides:
      react in class Liquid
    • drawPuddle

      public void drawPuddle(mindustry.gen.Puddle puddle)
      Description copied from class: Liquid
      Draws a puddle of this liquid on the floor.
      Overrides:
      drawPuddle in class Liquid