Interface IAspectWrite<V extends IValue,T extends IValueType<V>>
- All Superinterfaces:
IAspect<V,
T>
- All Known Implementing Classes:
AspectWriteBase
An element that can be used inside parts to access a specific aspect of something to write.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.part.aspect.IAspect
IAspect.AspectComparator
-
Method Summary
Modifier and TypeMethodDescription<P extends IPartTypeWriter<P,
S>, S extends IPartStateWriter<P>>
voidonActivate
(P partType, PartTarget target, S state) When this aspect has become active.<P extends IPartTypeWriter<P,
S>, S extends IPartStateWriter<P>>
voidonDeactivate
(P partType, PartTarget target, S state) When this aspect has become inactive.<P extends IPartTypeWriter<P,
S>, S extends IPartStateWriter<P>>
voidwrite
(P partType, PartTarget target, S state, IVariable<V> variable) Write the given variable value for the given part.Methods inherited from interface org.cyclops.integrateddynamics.api.part.aspect.IAspect
getDefaultProperties, getProperties, getPropertiesContainerProvider, getPropertyTypes, getTranslationKey, getUniqueName, getValueType, hasProperties, loadTooltip, setProperties, update
-
Method Details
-
write
<P extends IPartTypeWriter<P,S>, void writeS extends IPartStateWriter<P>> (P partType, PartTarget target, S state, IVariable<V> variable) throws EvaluationException Write the given variable value for the given part.- Type Parameters:
P
- The part type type.S
- The part state.- Parameters:
partType
- The part type.target
- The position that is targeted by the given part.state
- The current state of the given part.variable
- The variable to write.- Throws:
EvaluationException
- If something went wrong while evaluating the variable to write.
-
onActivate
<P extends IPartTypeWriter<P,S>, void onActivateS extends IPartStateWriter<P>> (P partType, PartTarget target, S state) When this aspect has become active.- Type Parameters:
P
- The part type type.S
- The part state.- Parameters:
partType
- The part type.target
- The position that is targeted by the given part.state
- The current state of the given part.
-
onDeactivate
<P extends IPartTypeWriter<P,S>, void onDeactivateS extends IPartStateWriter<P>> (P partType, PartTarget target, S state) When this aspect has become inactive.- Type Parameters:
P
- The part type type.S
- The part state.- Parameters:
partType
- The part type.target
- The position that is targeted by the given part.state
- The current state of the given part.
-