Class Drill

All Implemented Interfaces:
Comparable<Content>, Senseable
Direct Known Subclasses:
BurstDrill

public class Drill extends Block
  • Field Details

    • hardnessDrillMultiplier

      public float hardnessDrillMultiplier
    • oreCount

      protected final ObjectIntMap<Item> oreCount
    • itemArray

      protected final Seq<Item> itemArray
    • tier

      public int tier
      Maximum tier of blocks this drill can mine.
    • drillTime

      public float drillTime
      Base time to drill one ore, in frames.
    • liquidBoostIntensity

      public float liquidBoostIntensity
      How many times faster the drill will progress when boosted by liquid.
    • warmupSpeed

      public float warmupSpeed
      Speed at which the drill speeds up.
    • blockedItem

      @Nullable public Item blockedItem
      Special exemption item that this drill can't mine.
    • returnItem

      @Nullable protected Item returnItem
    • returnCount

      protected int returnCount
    • drawMineItem

      public boolean drawMineItem
      Whether to draw the item this drill is mining.
    • drillEffect

      public Effect drillEffect
      Effect played when an item is produced. This is colored.
    • drillEffectRnd

      public float drillEffectRnd
      Drill effect randomness. Block size by default.
    • drillEffectChance

      public float drillEffectChance
      Chance of displaying the effect. Useful for extremely fast drills.
    • rotateSpeed

      public float rotateSpeed
      Speed the drill bit rotates at.
    • updateEffect

      public Effect updateEffect
      Effect randomly played while drilling.
    • updateEffectChance

      public float updateEffectChance
      Chance the update effect will appear.
    • drillMultipliers

      public ObjectFloatMap<Item> drillMultipliers
      Multipliers of drill speed for each item. Defaults to 1.
    • drawRim

      public boolean drawRim
    • drawSpinSprite

      public boolean drawSpinSprite
    • heatColor

      public Color heatColor
    • rimRegion

      public TextureRegion rimRegion
    • rotatorRegion

      public TextureRegion rotatorRegion
    • topRegion

      public TextureRegion topRegion
    • itemRegion

      public TextureRegion itemRegion
  • Constructor Details

    • Drill

      public Drill(String name)
  • Method Details

    • init

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

      public void drawPlanConfigTop(BuildPlan plan, Eachable<BuildPlan> list)
      Overrides:
      drawPlanConfigTop in class Block
    • setBars

      public void setBars()
      Overrides:
      setBars in class Block
    • getDrop

      public Item getDrop(Tile tile)
    • 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.
    • 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
    • getDrillTime

      public float getDrillTime(Item item)
    • 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 Block
    • icons

      public TextureRegion[] icons()
      Overrides:
      icons in class Block
    • countOre

      protected void countOre(Tile tile)
    • canMine

      public boolean canMine(Tile tile)