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 org.cyclops.integrateddynamics.api.item.IVariableFacade
IVariableFacade.IValidator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendHoverText
(List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.Item.TooltipContext context) Add information about this variable facade to the list.static int
getLabel()
protected String
getReferenceDisplay
(int variableId) 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.IVariableFacade
addModelOverlay, getId, getOutputType, getVariable, getVariableItemOverrideModel, isValid, renderISTER, validate
-
Constructor Details
-
VariableFacadeBase
public VariableFacadeBase(boolean generateId)
-
-
Method Details
-
generateId
public static int generateId()- Returns:
- A unique new variable id.
-
getLabel
- Specified by:
getLabel
in interfaceIVariableFacade
- Returns:
- The optional label for this facade.
-
getReferenceDisplay
-
appendHoverText
public void appendHoverText(List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.Item.TooltipContext context) Description copied from interface:IVariableFacade
Add information about this variable facade to the list.- Specified by:
appendHoverText
in interfaceIVariableFacade
- Parameters:
list
- The list to add lines to.context
- The context.
-