Class EventType.UnitCreateEvent

java.lang.Object
mindustry.game.EventType.UnitCreateEvent
Enclosing class:
EventType

public static class EventType.UnitCreateEvent extends Object
Called when a unit is created in a reconstructor, factory or other unit.
  • Field Details

    • unit

      public final mindustry.gen.Unit unit
    • spawner

      @Nullable public final mindustry.gen.Building spawner
    • spawnerUnit

      @Nullable public final mindustry.gen.Unit spawnerUnit
  • Constructor Details

    • UnitCreateEvent

      public UnitCreateEvent(mindustry.gen.Unit unit, mindustry.gen.Building spawner, mindustry.gen.Unit spawnerUnit)
    • UnitCreateEvent

      public UnitCreateEvent(mindustry.gen.Unit unit, mindustry.gen.Building spawner)