Class VariableContainerDefault

java.lang.Object
org.cyclops.integrateddynamics.capability.variablecontainer.VariableContainerDefault
All Implemented Interfaces:
IVariableContainer

public class VariableContainerDefault extends Object implements IVariableContainer
Default implementation of IVariableContainer.
  • Constructor Details

    • VariableContainerDefault

      public VariableContainerDefault()
  • Method Details

    • getVariableCache

      public Map<Integer,IVariableFacade> getVariableCache()
      Specified by:
      getVariableCache in interface IVariableContainer
      Returns:
      The stored variable facades for this part.
    • refreshVariables

      public void refreshVariables(INetwork network, net.minecraft.world.Container inventory, boolean sendVariablesUpdateEvent, ValueDeseralizationContext valueDeseralizationContext)
      Description copied from interface: IVariableContainer
      Invalidate variables in this cache, clear the cache and re-populate from the supplied inventory
      Specified by:
      refreshVariables in interface IVariableContainer
      Parameters:
      network - INetwork that the variables are in
      inventory - IInventory to re-populate the cache from
      sendVariablesUpdateEvent - if true post a VariableContentsUpdatedEvent to the network when done