Class DelayVariableFacadeHandler
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.DelayVariableFacadeHandler
- All Implemented Interfaces:
IVariableFacadeHandler<IDelayVariableFacade>
public class DelayVariableFacadeHandler
extends Object
implements IVariableFacadeHandler<IDelayVariableFacade>
Handler for delay variable facades.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DelayVariableFacadeHandler
net.minecraft.resources.ResourceLocation
getVariableFacade
(ValueDeseralizationContext valueDeseralizationContext, int id, net.minecraft.nbt.CompoundTag tag) Get the variable facade for the given tag.void
setVariableFacade
(net.minecraft.nbt.CompoundTag tag, IDelayVariableFacade variableFacade) Set the variable facade for the given tag.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.integrateddynamics.api.item.IVariableFacadeHandler
deserializeVariableFacadePredicate, deserializeVariablePredicate
-
Method Details
-
getInstance
-
getUniqueName
public net.minecraft.resources.ResourceLocation getUniqueName()- Specified by:
getUniqueName
in interfaceIVariableFacadeHandler<IDelayVariableFacade>
- Returns:
- The unique name of this type used to identity variables to this handler.
-
getVariableFacade
public IDelayVariableFacade getVariableFacade(ValueDeseralizationContext valueDeseralizationContext, int id, net.minecraft.nbt.CompoundTag tag) Description copied from interface:IVariableFacadeHandler
Get the variable facade for the given tag.- Specified by:
getVariableFacade
in interfaceIVariableFacadeHandler<IDelayVariableFacade>
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
-
setVariableFacade
public void setVariableFacade(net.minecraft.nbt.CompoundTag tag, IDelayVariableFacade variableFacade) Description copied from interface:IVariableFacadeHandler
Set the variable facade for the given tag.- Specified by:
setVariableFacade
in interfaceIVariableFacadeHandler<IDelayVariableFacade>
- Parameters:
tag
- The tag that is used to write variable facade information to.variableFacade
- The facade to write.
-