Class CoreBlock

All Implemented Interfaces:
Comparable<Content>, Senseable

public class CoreBlock extends StorageBlock
  • Field Details

    • cloudScaling

      public static final float cloudScaling
      See Also:
    • cfinScl

      public static final float cfinScl
      See Also:
    • cfinOffset

      public static final float cfinOffset
      See Also:
    • calphaFinOffset

      public static final float calphaFinOffset
      See Also:
    • cloudAlpha

      public static final float cloudAlpha
      See Also:
    • cloudAlphas

      public static final float[] cloudAlphas
    • thrusterSizes

      public static final float[] thrusterSizes
    • thruster1

      public arc.graphics.g2d.TextureRegion thruster1
    • thruster2

      public arc.graphics.g2d.TextureRegion thruster2
    • thrusterLength

      public float thrusterLength
    • thrusterOffset

      public float thrusterOffset
    • 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
    • landDuration

      public float landDuration
    • landMusic

      public arc.audio.Music landMusic
    • launchMusic

      public arc.audio.Music launchMusic
    • launchEffect

      public Effect launchEffect
    • landZoomInterp

      public arc.math.Interp landZoomInterp
    • landZoomFrom

      public float landZoomFrom
    • landZoomTo

      public float landZoomTo
    • 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
    • postInit

      public void postInit()
      Description copied from class: Content
      Called after init().
      Overrides:
      postInit 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