Record Class FlareMaterial
java.lang.Object
java.lang.Record
foundry.veil.api.flare.data.effect.FlareMaterial
public record FlareMaterial(String clazz, net.minecraft.resources.ResourceLocation renderTypeLocation, boolean randomizeSeed, Map<String,Property<?>> properties)
extends Record
- Since:
- 2.5.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFlareMaterial(String clazz, net.minecraft.resources.ResourceLocation renderTypeLocation, boolean randomizeSeed, Map<String, Property<?>> properties) Creates an instance of aFlareMaterialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyProperties(EffectHost host, @Nullable net.minecraft.client.renderer.ShaderInstance shader, Map<String, List<PropertyModifier<?>>> modifiers) clazz()Returns the value of theclazzrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.booleanReturns the value of therandomizeSeedrecord component.net.minecraft.resources.ResourceLocationReturns the value of therenderTypeLocationrecord component.voidresetProperties(EffectHost host, @Nullable net.minecraft.client.renderer.ShaderInstance shader) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
FlareMaterial
public FlareMaterial(String clazz, net.minecraft.resources.ResourceLocation renderTypeLocation, boolean randomizeSeed, Map<String, Property<?>> properties) Creates an instance of aFlareMaterialrecord class.- Parameters:
clazz- the value for theclazzrecord componentrenderTypeLocation- the value for therenderTypeLocationrecord componentrandomizeSeed- the value for therandomizeSeedrecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
applyProperties
public void applyProperties(EffectHost host, @Nullable @Nullable net.minecraft.client.renderer.ShaderInstance shader, Map<String, List<PropertyModifier<?>>> modifiers) -
resetProperties
public void resetProperties(EffectHost host, @Nullable @Nullable net.minecraft.client.renderer.ShaderInstance shader) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
clazz
Returns the value of theclazzrecord component.- Returns:
- the value of the
clazzrecord component
-
renderTypeLocation
public net.minecraft.resources.ResourceLocation renderTypeLocation()Returns the value of therenderTypeLocationrecord component.- Returns:
- the value of the
renderTypeLocationrecord component
-
randomizeSeed
public boolean randomizeSeed()Returns the value of therandomizeSeedrecord component.- Returns:
- the value of the
randomizeSeedrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-