Interface RestrictedEntitySurface


  • public interface RestrictedEntitySurface
    Handles restricting composite entities to a representation for other players, e.g. to not see details about the inside if not in scan range You can access the corresponding bean implementation via ServerFacade::getBusinessObject
    • Method Detail

      • serverRestrictEntity

        boolean serverRestrictEntity​(UUID recipient,
                                     AbstractCompositeEntity parent,
                                     GameSession gameSession)
        Whether to restrict the inside of a composite entity parent to player recipient
      • serverPrepareRestrictedEntities

        void serverPrepareRestrictedEntities​(AbstractEntity entity,
                                             AbstractCompositeEntity parent,
                                             UUID recipient,
                                             GameSession gameSession)
        Handles restricting entities, if you derive from core entities this is already integrated. Otherwise check for references
      • serverCleanupRestrictedEntities

        void serverCleanupRestrictedEntities​(AbstractCompositeEntity parent,
                                             AbstractEntity entity,
                                             GameSession gameSession)
        Handles restricting entities, if you derive from core entities this is already integrated. Otherwise check for references
      • serverCleanupRestrictedHullEntity

        void serverCleanupRestrictedHullEntity​(AbstractCompositeEntity parent,
                                               AbstractEntity entity,
                                               GameSession gameSession)
        Handles restricting entities, if you derive from core entities this is already integrated. Otherwise check for references
      • resetRestrictedWalls

        void resetRestrictedWalls​(AbstractEntity entity,
                                  AbstractCompositeEntity parent,
                                  UUID recipient)
        Handles restricting entities, if you derive from core entities this is already integrated. Otherwise check for references