Package foundry.veil.api.client.property
Class Property<T>
java.lang.Object
foundry.veil.api.client.property.Property<T>
- Type Parameters:
T-
- Direct Known Subclasses:
BoolProperty,FloatProperty,IntProperty,InvertibleProperty,RandomFloatProperty,Sampler2DProperty,TimeProperty,Vec2Property,Vec3Property,Vec4Property
Properties are variables (and usually also shader uniforms) that can be created from a data driven context. Used by Flare effects to manipulate models and shader uniforms
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidapplyValue(String name, net.minecraft.client.renderer.ShaderInstance shader) protected abstract TcloneValue(T value) static <T,M extends Property<T>>
com.mojang.serialization.MapCodec<M> codec(PropertyRegistry.PropertyType<T, M> type) static <T,M extends Property<T>>
com.mojang.serialization.MapCodec<M> createCodec(Function<T, M> factory, com.mojang.serialization.Codec<T> typeCodec) Supplier<gg.moonflower.molangcompiler.api.MolangEnvironment> PropertyRegistry.PropertyType<T, ? extends Property<T>> getType()abstract voidmodify(T value, PropertyModifier.PropertyModifierMode mode, Optional<List<gg.moonflower.molangcompiler.api.MolangExpression>> optionalMolang) voidprotected voidsetQueries(gg.moonflower.molangcompiler.api.MolangRuntime.Builder builder)
-
Field Details
-
overrideValue
-
value
-
-
Constructor Details
-
Property
-
-
Method Details
-
setQueries
protected void setQueries(gg.moonflower.molangcompiler.api.MolangRuntime.Builder builder) -
applyValue
-
modify
public abstract void modify(T value, PropertyModifier.PropertyModifierMode mode, Optional<List<gg.moonflower.molangcompiler.api.MolangExpression>> optionalMolang) -
cloneValue
-
resetOverrideValue
public void resetOverrideValue() -
getType
-
codec
public static <T,M extends Property<T>> com.mojang.serialization.MapCodec<M> codec(PropertyRegistry.PropertyType<T, M> type) -
createCodec
-
getEnvironment
-