Class VariableContainerDefault
java.lang.Object
org.cyclops.integrateddynamics.capability.variablecontainer.VariableContainerDefault
- All Implemented Interfaces:
IVariableContainer
Default implementation of
IVariableContainer
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
refreshVariables
(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:
getVariableCache
in 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:IVariableContainer
Invalidate variables in this cache, clear the cache and re-populate from the supplied inventory- Specified by:
refreshVariables
in interfaceIVariableContainer
- Parameters:
network
-INetwork
that the variables are ininventory
- IInventory to re-populate the cache fromsendVariablesUpdateEvent
- if true post a VariableContentsUpdatedEvent to the network when donevalueDeseralizationContext
-
-