Package mindustry.net

Class Administration.PlayerAction

java.lang.Object
mindustry.net.Administration.PlayerAction
All Implemented Interfaces:
Pool.Poolable
Enclosing class:
Administration

public static class Administration.PlayerAction extends Object implements Pool.Poolable
Defines a (potentially dangerous) action that a player has done in the world. These objects are pooled; do not cache them!
  • Field Details

    • player

      public mindustry.gen.Player player
    • type

    • tile

      @Nullable public Tile tile
    • block

      @Nullable public Block block
      valid for block placement events only
    • rotation

      public int rotation
    • config

      public Object config
      valid for configure and rotation-type events only.
    • item

      @Nullable public Item item
      valid for item-type events only.
    • itemAmount

      public int itemAmount
    • unit

      @Nullable public mindustry.gen.Unit unit
      valid for unit-type events only, and even in that case may be null.
    • payload

      @Nullable public Payload payload
      valid only for payload events
    • plans

      @Nullable public int[] plans
      valid only for removePlanned events only; contains packed positions.
    • unitIDs

      @Nullable public int[] unitIDs
      valid only for command unit events
    • buildingPositions

      @Nullable public int[] buildingPositions
      valid only for command building events
  • Constructor Details

    • PlayerAction

      public PlayerAction()
  • Method Details