Class VariableFacadeBase

java.lang.Object
org.cyclops.integrateddynamics.core.item.VariableFacadeBase
All Implemented Interfaces:
IVariableFacade
Direct Known Subclasses:
AspectVariableFacade, OperatorVariableFacade, ProxyVariableFacade, ValueTypeVariableFacade, VariableFacadeHandlerRegistry.DummyVariableFacade

public abstract class VariableFacadeBase extends Object implements IVariableFacade
Base implementation of IVariableFacade
  • Constructor Details

    • VariableFacadeBase

      public VariableFacadeBase(boolean generateId)
  • Method Details

    • generateId

      public static int generateId()
      Returns:
      A unique new variable id.
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface IVariableFacade
      Returns:
      The optional label for this facade.
    • getReferenceDisplay

      protected String getReferenceDisplay(int variableId)
    • appendHoverText

      public void appendHoverText(List<net.minecraft.network.chat.Component> list, net.minecraft.world.level.Level world)
      Description copied from interface: IVariableFacade
      Add information about this variable facade to the list.
      Specified by:
      appendHoverText in interface IVariableFacade
      Parameters:
      list - The list to add lines to.
      world - The world.
    • getVariable

      @Deprecated public <V extends IValue> IVariable<V> getVariable(IPartNetwork network)
      Deprecated.
      Description copied from interface: IVariableFacade
      Get the variable.
      Specified by:
      getVariable in interface IVariableFacade
      Type Parameters:
      V - The value type.
      Parameters:
      network - The object used to look for the variable.
      Returns:
      The variable.
    • validate

      @Deprecated public void validate(IPartNetwork network, IVariableFacade.IValidator validator, IValueType containingValueType)
      Deprecated.
      Description copied from interface: IVariableFacade
      Check if this facade is valid, otherwise notify the validator of any errors.
      Specified by:
      validate in interface IVariableFacade
      Parameters:
      network - The object used to look for the variable.
      validator - The object to notify errors to.
      containingValueType - The value type in which this variable facade is being used.