Class ProxyVariableFacadeHandler
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.ProxyVariableFacadeHandler
- All Implemented Interfaces:
- IVariableFacadeHandler<IProxyVariableFacade>
public class ProxyVariableFacadeHandler
extends Object
implements IVariableFacadeHandler<IProxyVariableFacade>
Handler for proxy variable facades.
- 
Method SummaryModifier and TypeMethodDescriptionstatic ProxyVariableFacadeHandlernet.minecraft.resources.ResourceLocationgetVariableFacade(ValueDeseralizationContext valueDeseralizationContext, int id, net.minecraft.nbt.CompoundTag tag) Get the variable facade for the given tag.booleanisInstance(IVariable<?> variable) If the given variable is created by this handler.booleanisInstance(IVariableFacade variableFacade) If the given facade is created by this handler.voidsetVariableFacade(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.CompoundTag tag, IProxyVariableFacade variableFacade) Set the variable facade for the given tag.
- 
Method Details- 
getInstance
- 
getUniqueNamepublic net.minecraft.resources.ResourceLocation getUniqueName()- Specified by:
- getUniqueNamein interface- IVariableFacadeHandler<IProxyVariableFacade>
- Returns:
- The unique name of this type used to identity variables to this handler.
 
- 
getVariableFacadepublic IProxyVariableFacade getVariableFacade(ValueDeseralizationContext valueDeseralizationContext, int id, net.minecraft.nbt.CompoundTag tag) Description copied from interface:IVariableFacadeHandlerGet the variable facade for the given tag.- Specified by:
- getVariableFacadein interface- IVariableFacadeHandler<IProxyVariableFacade>
- Parameters:
- valueDeseralizationContext-
- id- The id that was read and needs to be inserted into the variable facade.
- tag- The tag containing information that can be read and used to form a variable facade.
- Returns:
- The variable facade
 
- 
setVariableFacadepublic void setVariableFacade(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.CompoundTag tag, IProxyVariableFacade variableFacade) Description copied from interface:IVariableFacadeHandlerSet the variable facade for the given tag.- Specified by:
- setVariableFacadein interface- IVariableFacadeHandler<IProxyVariableFacade>
- Parameters:
- valueDeseralizationContext-
- tag- The tag that is used to write variable facade information to.
- variableFacade- The facade to write.
 
- 
isInstanceDescription copied from interface:IVariableFacadeHandlerIf the given facade is created by this handler.- Specified by:
- isInstancein interface- IVariableFacadeHandler<IProxyVariableFacade>
- Parameters:
- variableFacade- A facade.
- Returns:
- If it is an instance.
 
- 
isInstanceDescription copied from interface:IVariableFacadeHandlerIf the given variable is created by this handler.- Specified by:
- isInstancein interface- IVariableFacadeHandler<IProxyVariableFacade>
- Parameters:
- variable- A variable.
- Returns:
- If it is an instance.
 
 
-