Class EntityBaseGadget

java.lang.Object
emu.grasscutter.game.entity.GameEntity
emu.grasscutter.game.entity.EntityBaseGadget
Direct Known Subclasses:
EntityClientGadget, EntityGadget, EntityItem, EntityPlatform, EntityVehicle

public abstract class EntityBaseGadget extends GameEntity
  • Field Details

    • position

      protected final Position position
    • rotation

      protected final Position rotation
  • Constructor Details

    • EntityBaseGadget

      public EntityBaseGadget(Scene scene)
    • EntityBaseGadget

      public EntityBaseGadget(Scene scene, Position position, Position rotation)
  • Method Details

    • getGadgetId

      public abstract int getGadgetId()
    • onDeath

      public void onDeath(int killerId)
      Description copied from class: GameEntity
      Called when this entity dies
      Overrides:
      onDeath in class GameEntity
      Parameters:
      killerId - Entity id of the entity that killed this entity
    • fillFightProps

      protected void fillFightProps(ConfigGadget configGadget)
    • getPosition

      public Position getPosition()
      Specified by:
      getPosition in class GameEntity
    • getRotation

      public Position getRotation()
      Specified by:
      getRotation in class GameEntity