Class PartTypeTerminalStorage.State

java.lang.Object
org.cyclops.integrateddynamics.core.part.PartStateBase<P>
org.cyclops.integrateddynamics.core.part.PartStateEmpty<PartTypeTerminalStorage>
org.cyclops.integratedterminals.part.PartTypeTerminalStorage.State
All Implemented Interfaces:
org.cyclops.cyclopscore.persist.IDirtyMarkListener, org.cyclops.integrateddynamics.api.part.IPartState<PartTypeTerminalStorage>, ITerminalStorageTabCommon.IVariableInventory
Enclosing class:
PartTypeTerminalStorage

public static class PartTypeTerminalStorage.State extends org.cyclops.integrateddynamics.core.part.PartStateEmpty<PartTypeTerminalStorage> implements ITerminalStorageTabCommon.IVariableInventory
  • Field Summary

    Fields inherited from interface org.cyclops.integrateddynamics.api.part.IPartState

    GLOBALCOUNTER_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    Map<String,net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>>
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
     
    getPlayerStorageState(net.minecraft.world.entity.player.Player player)
     
    int
     
    void
    readFromNBT(net.minecraft.nbt.CompoundTag tag)
     
    void
    setNamedInventory(String name, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> inventory)
     
    void
    writeToNBT(net.minecraft.nbt.CompoundTag tag)
     

    Methods inherited from class org.cyclops.integrateddynamics.core.part.PartStateBase

    addVolatileCapability, forceBlockRenderUpdate, gatherCapabilities, generateId, getAspectProperties, getCapability, getChannel, getDefaultUpdateInterval, getId, getPriority, getTargetSideOverride, isDirtyAndReset, isEnabled, isForceBlockRenderUpdateAndReset, isUpdateAndReset, onDirty, readAspectProperties, removeVolatileCapability, sendUpdate, setAspectProperties, setChannel, setEnabled, setPriority, setTargetSideOverride, setUpdateInterval, writeAspectProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.cyclops.integratedterminals.api.terminalstorage.ITerminalStorageTabCommon.IVariableInventory

    loadNamedInventory, saveNamedInventory
  • Constructor Details

    • State

      public State()
  • Method Details

    • getUpdateInterval

      public int getUpdateInterval()
      Specified by:
      getUpdateInterval in interface org.cyclops.integrateddynamics.api.part.IPartState<PartTypeTerminalStorage>
      Overrides:
      getUpdateInterval in class org.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeTerminalStorage>
    • clearNamedInventories

      public void clearNamedInventories()
    • setNamedInventory

      public void setNamedInventory(String name, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> inventory)
      Specified by:
      setNamedInventory in interface ITerminalStorageTabCommon.IVariableInventory
    • getNamedInventories

      public Map<String,net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>> getNamedInventories()
    • getNamedInventory

      @Nullable public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getNamedInventory(String name)
      Specified by:
      getNamedInventory in interface ITerminalStorageTabCommon.IVariableInventory
    • getPlayerStorageState

      public TerminalStorageState getPlayerStorageState(net.minecraft.world.entity.player.Player player)
    • writeToNBT

      public void writeToNBT(net.minecraft.nbt.CompoundTag tag)
      Specified by:
      writeToNBT in interface org.cyclops.integrateddynamics.api.part.IPartState<PartTypeTerminalStorage>
      Overrides:
      writeToNBT in class org.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeTerminalStorage>
    • readFromNBT

      public void readFromNBT(net.minecraft.nbt.CompoundTag tag)
      Specified by:
      readFromNBT in interface org.cyclops.integrateddynamics.api.part.IPartState<PartTypeTerminalStorage>
      Overrides:
      readFromNBT in class org.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeTerminalStorage>