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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHoverText(List<net.minecraft.network.chat.Component> list, net.minecraft.world.level.Level world) Add information about this variable facade to the list.static intgetLabel()protected StringgetReferenceDisplay(int variableId) getVariable(IPartNetwork network) Deprecated.voidvalidate(IPartNetwork network, IVariableFacade.IValidator validator, IValueType containingValueType) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getLabelin interfaceIVariableFacade- Returns:
- The optional label for this facade.
-
getReferenceDisplay
-
appendHoverText
public void appendHoverText(List<net.minecraft.network.chat.Component> list, net.minecraft.world.level.Level world) Description copied from interface:IVariableFacadeAdd information about this variable facade to the list.- Specified by:
appendHoverTextin interfaceIVariableFacade- Parameters:
list- The list to add lines to.world- The world.
-
getVariable
Deprecated.Description copied from interface:IVariableFacadeGet the variable.- Specified by:
getVariablein interfaceIVariableFacade- 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:IVariableFacadeCheck if this facade is valid, otherwise notify the validator of any errors.- Specified by:
validatein interfaceIVariableFacade- 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.
-