Class CoreBlock

All Implemented Interfaces:
Comparable<Content>, Senseable

public class CoreBlock extends StorageBlock
  • Field Details

    • thrusterSizes

      protected static final float[] thrusterSizes
    • thruster1

      public TextureRegion thruster1
    • thruster2

      public TextureRegion thruster2
    • thrusterLength

      public float thrusterLength
    • isFirstTier

      public boolean isFirstTier
    • requiresCoreZone

      public boolean requiresCoreZone
      If true, this core type requires a core zone to upgrade.
    • incinerateNonBuildable

      public boolean incinerateNonBuildable
    • unitType

      public UnitType unitType
    • captureInvicibility

      public float captureInvicibility
  • Constructor Details

    • CoreBlock

      public CoreBlock(String name)
  • Method Details

    • playerSpawn

      public static void playerSpawn(Tile tile, mindustry.gen.Player player)
    • 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
    • setBars

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

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

      public boolean canBreak(Tile tile)
      Overrides:
      canBreak in class Block
      Returns:
      whether this block can be broken on the specified tile.
    • canReplace

      public boolean canReplace(Block other)
      Overrides:
      canReplace in class Block
    • 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.
    • placeBegan

      public void placeBegan(Tile tile, Block previous, mindustry.gen.Unit builder)
      Description copied from class: Block
      Called when building of this block begins.
      Overrides:
      placeBegan in class Block
    • beforePlaceBegan

      public void beforePlaceBegan(Tile tile, Block previous)
      Description copied from class: Block
      Called right before building of this block begins.
      Overrides:
      beforePlaceBegan 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
    • drawLanding

      public void drawLanding(CoreBlock.CoreBuild build, float x, float y)
    • drawLandingThrusters

      protected void drawLandingThrusters(float x, float y, float rotation, float frame)