Class AspectVariableFacade
java.lang.Object
org.cyclops.integrateddynamics.core.item.VariableFacadeBase
org.cyclops.integrateddynamics.core.item.AspectVariableFacade
- All Implemented Interfaces:
IAspectVariableFacade
,IVariableFacade
Variable facade for variables determined by part aspects.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.item.IVariableFacade
IVariableFacade.IValidator
-
Constructor Summary
ConstructorDescriptionAspectVariableFacade
(boolean generateId, int partId, IAspect aspect) AspectVariableFacade
(int id, int partId, IAspect aspect) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addModelOverlay
(IVariableModelBaked variableModelBaked, List<net.minecraft.client.renderer.block.model.BakedQuad> quads, net.minecraft.util.RandomSource random, net.minecraftforge.client.model.data.ModelData modelData) Handle the quads for the given baked model.void
appendHoverText
(List<net.minecraft.network.chat.Component> list, net.minecraft.world.level.Level world) Add information about this variable facade to the list.getVariable
(IPartNetwork network) Get the variable.boolean
isValid()
void
validate
(IPartNetwork network, 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
generateId, getLabel, getReferenceDisplay
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.IAspectVariableFacade
getAspect, getPartId
Methods inherited from interface org.cyclops.integrateddynamics.api.item.IVariableFacade
getId, getLabel, getVariable, getVariableItemOverrideModel, renderISTER, validate
-
Constructor Details
-
AspectVariableFacade
-
AspectVariableFacade
-
-
Method Details
-
getVariable
Description copied from interface:IVariableFacade
Get the variable.- Specified by:
getVariable
in interfaceIVariableFacade
- Overrides:
getVariable
in classVariableFacadeBase
- Type Parameters:
V
- The value type.- Parameters:
network
- The object used to look for the variable.- Returns:
- The variable.
-
isValid
public boolean isValid()- Specified by:
isValid
in interfaceIVariableFacade
- Returns:
- If this is a valid reference.
-
validate
public void validate(IPartNetwork network, IVariableFacade.IValidator validator, IValueType containingValueType) Description copied from interface:IVariableFacade
Check if this facade is valid, otherwise notify the validator of any errors.- Specified by:
validate
in interfaceIVariableFacade
- Overrides:
validate
in classVariableFacadeBase
- 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.
-
getOutputType
- Specified by:
getOutputType
in interfaceIVariableFacade
- Returns:
- The output type of this variable facade.
-
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 interfaceIVariableFacade
- Overrides:
appendHoverText
in classVariableFacadeBase
- Parameters:
list
- The list to add lines to.world
- The world.
-
addModelOverlay
public void addModelOverlay(IVariableModelBaked variableModelBaked, List<net.minecraft.client.renderer.block.model.BakedQuad> quads, net.minecraft.util.RandomSource random, net.minecraftforge.client.model.data.ModelData modelData) Description copied from interface:IVariableFacade
Handle the quads for the given baked model.- Specified by:
addModelOverlay
in interfaceIVariableFacade
- Parameters:
variableModelBaked
- The baked model.quads
- The quads that can be added to.random
- A random instance.modelData
- Model data.
-