Class StructureEntity

    • Field Detail

      • displayCooldown

        protected transient boolean displayCooldown
    • Constructor Detail

      • StructureEntity

        public StructureEntity()
    • Method Detail

      • create

        public void create​(UUID uuid,
                           AbstractEntityDef entityDef,
                           int entityDefIdx,
                           UUID parentCompositeEntity)
        Description copied from class: AbstractEntity
        Central initialization of non-transient fields (usually on server side). Is only called once in the whole life cycle of an entity.
        Overrides:
        create in class PhysicalEntity
      • onServerTurnPass0

        public void onServerTurnPass0​(GameSession gameSession)
        Description copied from class: AbstractEntity
        Server side: Executes code on every server turn, main pass 1 of 2. Executed after composite entities pass 0
        Overrides:
        onServerTurnPass0 in class PhysicalEntity
      • serverRestrictEntity

        public boolean serverRestrictEntity​(UUID recipient,
                                            AbstractCompositeEntity parent,
                                            GameSession gameSession)
        Description copied from class: AbstractEntity
        Server side: Checks whether this entity should be restricted to the player recipient, i.e. details about this entity (state, ...) are sent to this player or not. See also RestrictedEntitySurface
        Overrides:
        serverRestrictEntity in class AbstractEntity
      • enableEntity

        protected void enableEntity​(boolean enable)
        Description copied from class: PhysicalEntity
        Server side: Called when the enabled state changed
        Overrides:
        enableEntity in class PhysicalEntity
      • getTransformedEdges

        public int getTransformedEdges()
      • getCooldown

        public int getCooldown()
      • setCooldown

        public void setCooldown​(int cooldown)
      • isCooldownDisablesEntity

        public boolean isCooldownDisablesEntity()
      • setCooldownDisablesEntity

        public void setCooldownDisablesEntity​(boolean cooldownDisablesEntity)