Interface IVariableContainer
- All Known Implementing Classes:
VariableContainerDefault
public interface IVariableContainer
Capability that can hold
IVariableFacade
s.-
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
-
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, ValueDeseralizationContext valueDeseralizationContext) Invalidate variables in this cache, clear the cache and re-populate from the supplied inventory- 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
-
-