Package foundry.veil.api.client.property
Class InvertibleProperty<T>
java.lang.Object
foundry.veil.api.client.property.Property<T>
foundry.veil.api.client.property.InvertibleProperty<T>
- Type Parameters:
T-
- Direct Known Subclasses:
Mat3Property,Mat4Property
A property that applies its inverse value after applying the main one, adding the "I" prefix to it.
-
Field Summary
FieldsFields inherited from class foundry.veil.api.client.property.Property
overrideValue, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyInverseValue(String name, net.minecraft.client.renderer.ShaderInstance shader) protected abstract TcalculateInverse(T value) final voidmodify(T value, PropertyModifier.PropertyModifierMode mode, Optional<List<gg.moonflower.molangcompiler.api.MolangExpression>> optionalMolang) abstract voidmodifyPreInvert(T value, PropertyModifier.PropertyModifierMode mode, Optional<List<gg.moonflower.molangcompiler.api.MolangExpression>> optionalMolang) voidMethods inherited from class foundry.veil.api.client.property.Property
applyValue, cloneValue, codec, createCodec, getEnvironment, getType, setQueries
-
Field Details
-
overrideInverseValue
-
-
Constructor Details
-
InvertibleProperty
-
-
Method Details
-
calculateInverse
-
modify
public final void modify(T value, PropertyModifier.PropertyModifierMode mode, Optional<List<gg.moonflower.molangcompiler.api.MolangExpression>> optionalMolang) -
modifyPreInvert
public abstract void modifyPreInvert(T value, PropertyModifier.PropertyModifierMode mode, Optional<List<gg.moonflower.molangcompiler.api.MolangExpression>> optionalMolang) -
applyInverseValue
-
resetOverrideValue
public void resetOverrideValue()- Overrides:
resetOverrideValuein classProperty<T>
-