Package mindustry.game
Class EventType.UnitCreateEvent
java.lang.Object
mindustry.game.EventType.UnitCreateEvent
- Enclosing class:
- EventType
Called when a unit is created in a reconstructor, factory or other unit.
-
Field Summary
Modifier and TypeFieldDescriptionfinal mindustry.gen.Building
final mindustry.gen.Unit
final mindustry.gen.Unit
-
Constructor Summary
ConstructorDescriptionUnitCreateEvent
(mindustry.gen.Unit unit, mindustry.gen.Building spawner) UnitCreateEvent
(mindustry.gen.Unit unit, mindustry.gen.Building spawner, mindustry.gen.Unit spawnerUnit) -
Method Summary
-
Field Details
-
unit
public final mindustry.gen.Unit unit -
spawner
-
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)
-