Class VariableFacadeBase
java.lang.Object
org.cyclops.integrateddynamics.core.item.VariableFacadeBase
- All Implemented Interfaces:
IVariableFacade
- Direct Known Subclasses:
AspectVariableFacade, OperatorVariableFacade, ProxyVariableFacade, ValueTypeVariableFacade, VariableFacadeHandlerRegistry.DummyVariableFacade
Base implementation of
IVariableFacade-
Nested Class Summary
Nested classes/interfaces inherited from interface IVariableFacade
IVariableFacade.IValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHoverText(Consumer<net.minecraft.network.chat.Component> tooltipAdder, net.minecraft.world.item.Item.TooltipContext context) Add information about this variable facade to the list.protected booleanprotected abstract IVariableFacadeClientbooleanstatic intintgetId()getLabel()protected StringgetReferenceDisplay(int variableId) inthashCode()voidsetClient(IVariableFacadeClient client) toString()Methods inherited from interface IVariableFacade
getOutputType, getVariable, isValid, validate
-
Constructor Details
-
VariableFacadeBase
public VariableFacadeBase(boolean generateId) -
VariableFacadeBase
public VariableFacadeBase(int id)
-
-
Method Details
-
constructClient
-
getClient
- Specified by:
getClientin interfaceIVariableFacade
-
generateId
public static int generateId()- Returns:
- A unique new variable id.
-
getLabel
- Specified by:
getLabelin interfaceIVariableFacade- Returns:
- The optional label for this facade.
-
getReferenceDisplay
-
appendHoverText
public void appendHoverText(Consumer<net.minecraft.network.chat.Component> tooltipAdder, net.minecraft.world.item.Item.TooltipContext context) Description copied from interface:IVariableFacadeAdd information about this variable facade to the list.- Specified by:
appendHoverTextin interfaceIVariableFacade- Parameters:
tooltipAdder- The list to add lines to.context- The context.
-
getId
public int getId()- Specified by:
getIdin interfaceIVariableFacade- Returns:
- The unique id for this facade.
-
setClient
-
equals
-
canEqual
-
hashCode
-
toString
-