Class AttributeCrafter

All Implemented Interfaces:
Comparable<Content>, Senseable

public class AttributeCrafter extends GenericCrafter
A crafter that gains efficiency from attribute tiles.
  • Field Details

    • attribute

      public Attribute attribute
    • baseEfficiency

      public float baseEfficiency
    • boostScale

      public float boostScale
    • maxBoost

      public float maxBoost
    • minEfficiency

      public float minEfficiency
    • displayEfficiencyScale

      public float displayEfficiencyScale
    • displayEfficiency

      public boolean displayEfficiency
    • scaleLiquidConsumption

      public boolean scaleLiquidConsumption
  • Constructor Details

    • AttributeCrafter

      public AttributeCrafter(String name)
  • Method Details

    • 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
    • setBars

      public void setBars()
      Overrides:
      setBars in class GenericCrafter
    • canPlaceOn

      public boolean canPlaceOn(Tile tile, Team team, int rotation)
      Overrides:
      canPlaceOn in class Block
      Returns:
      whether this block can be placed on the specified tile.
    • setStats

      public void setStats()
      Description copied from class: UnlockableContent
      Initializes stats on demand. Should only be called once. Only called before something is displayed.
      Overrides:
      setStats in class GenericCrafter