Class VariableFacadeHandlerRegistry.DummyVariableFacade
java.lang.Object
org.cyclops.integrateddynamics.core.item.VariableFacadeBase
org.cyclops.integrateddynamics.core.item.VariableFacadeHandlerRegistry.DummyVariableFacade
- All Implemented Interfaces:
IVariableFacade
- Enclosing class:
VariableFacadeHandlerRegistry
Variable facade used for items that have no (valid) information on them.
-
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(Consumer<net.minecraft.network.chat.Component> tooltipAdder, net.minecraft.world.item.Item.TooltipContext context) Add information about this variable facade to the list.protected IVariableFacadeClientgetVariable(INetwork network, IPartNetwork partNetwork) Get the variable.booleanisValid()voidvalidate(INetwork network, IPartNetwork partNetwork, IVariableFacade.IValidator validator, IValueType containingValueType) Check if this facade is valid, otherwise notify the validator of any errors.Methods inherited from class org.cyclops.integrateddynamics.core.item.VariableFacadeBase
canEqual, equals, generateId, getClient, getId, getLabel, getReferenceDisplay, hashCode, setClient, toString
-
Constructor Details
-
DummyVariableFacade
-
-
Method Details
-
getVariable
Description copied from interface:IVariableFacadeGet the variable.- Type Parameters:
V- The value type.- Parameters:
network- The network used to look for the variable.partNetwork- The part network used to look for the variable.- Returns:
- The variable.
-
isValid
public boolean isValid()- Returns:
- If this is a valid reference.
-
validate
public void validate(INetwork network, IPartNetwork partNetwork, IVariableFacade.IValidator validator, IValueType containingValueType) Description copied from interface:IVariableFacadeCheck if this facade is valid, otherwise notify the validator of any errors.- Parameters:
network- The network used to look for the variable.partNetwork- The part network 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.
-
getOutputType
- Returns:
- The output type of this variable facade.
-
constructClient
- Specified by:
constructClientin classVariableFacadeBase
-
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- Overrides:
appendHoverTextin classVariableFacadeBase- Parameters:
tooltipAdder- The list to add lines to.context- The context.
-