Class VariableContainerDefault
java.lang.Object
org.cyclops.integrateddynamics.capability.variablecontainer.VariableContainerDefault
- All Implemented Interfaces:
IVariableContainer
Default implementation of
IVariableContainer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrefreshVariables(INetwork network, net.minecraft.world.Container inventory, boolean sendVariablesUpdateEvent, ValueDeseralizationContext valueDeseralizationContext) Invalidate variables in this cache, clear the cache and re-populate from the supplied inventory
-
Constructor Details
-
VariableContainerDefault
public VariableContainerDefault()
-
-
Method Details
-
getVariableCache
- Specified by:
getVariableCachein interfaceIVariableContainer- 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:IVariableContainerInvalidate variables in this cache, clear the cache and re-populate from the supplied inventory- Specified by:
refreshVariablesin interfaceIVariableContainer- Parameters:
network-INetworkthat the variables are ininventory- IInventory to re-populate the cache fromsendVariablesUpdateEvent- if true post a VariableContentsUpdatedEvent to the network when donevalueDeseralizationContext-
-