Interface StorageProviderEntity

  • All Known Subinterfaces:
    AutomationResupplyRequired
    All Known Implementing Classes:
    CrewEntity, StorageProviderComposite

    public interface StorageProviderEntity
    Entities implementing StorageProviderEntity provide storage space (inventory). See also StorageEntitySupport which implements almost everything for your convencience.
    • Method Detail

      • storageAdd

        int storageAdd​(int entityDefIdx,
                       int amount)
      • storageTake

        int storageTake​(int entityDefIdx,
                        int amount)
      • storageTransfer

        int storageTransfer​(StorageProviderEntity destination,
                            int entityDefIdx,
                            int amount)
      • storageEject

        void storageEject()
      • storageEjectSingle

        void storageEjectSingle​(int entityDefIdx,
                                int amount)
      • storageExplode

        void storageExplode()
      • isStorageAdding

        boolean isStorageAdding()
      • isStorageTaking

        boolean isStorageTaking()
      • isStorageTransferring

        boolean isStorageTransferring()
      • isStorageEjecting

        boolean isStorageEjecting()
      • getUuid

        UUID getUuid()
      • getParentCompositeEntity

        UUID getParentCompositeEntity()
      • getEntityDef

        int getEntityDef()
      • getStorageAmount

        int getStorageAmount()
      • setStorageAmount

        void setStorageAmount​(int amount)
      • getStorageCapacity

        int getStorageCapacity()
      • setStorageCapacity

        void setStorageCapacity​(int capacity)
      • getStoredMass

        double getStoredMass()
      • setStoredMass

        void setStoredMass​(double storedMass)
      • hasInStock

        default boolean hasInStock​(int entityDefIdx,
                                   int amount)
      • hasInStock

        default boolean hasInStock​(Predicate<Integer> predicate,
                                   int amount)
      • getStorageAmount

        default int getStorageAmount​(int entityDefIdx)
      • getStorageAmount

        default int getStorageAmount​(Predicate<Integer> predicate)
      • storageTake

        default boolean storageTake​(Predicate<Integer> predicate,
                                    int amount)