Interface IVariableContainer

All Known Implementing Classes:
VariableContainerDefault

public interface IVariableContainer
Capability that can hold IVariableFacades.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    refreshVariables(INetwork network, net.minecraft.world.Container inventory, boolean sendVariablesUpdateEvent)
    Invalidate variables in this cache, clear the cache and re-populate from the supplied inventory
  • Method Details

    • getVariableCache

      Map<Integer,IVariableFacade> getVariableCache()
      Returns:
      The stored variable facades for this part.
    • refreshVariables

      void refreshVariables(INetwork network, net.minecraft.world.Container inventory, boolean sendVariablesUpdateEvent)
      Invalidate variables in this cache, clear the cache and re-populate from the supplied inventory
      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