Record Class FlareEffectTemplate
java.lang.Object
java.lang.Record
foundry.veil.api.flare.data.effect.FlareEffectTemplate
- Since:
- 2.5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FlareEffectTemplate> -
Constructor Summary
ConstructorsConstructorDescriptionFlareEffectTemplate(List<FlareEffectLayer> effectLayers) Creates an instance of aFlareEffectTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theeffectLayersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidrender(EffectHost host, MatrixStack matrixStack, float partialTick) voidrender(EffectHost host, MatrixStack matrixStack, float partialTick, @Nullable Map<net.minecraft.resources.ResourceLocation, BakedShell> shellOverrides) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
FlareEffectTemplate
Creates an instance of aFlareEffectTemplaterecord class.- Parameters:
effectLayers- the value for theeffectLayersrecord component
-
-
Method Details
-
render
public void render(EffectHost host, MatrixStack matrixStack, float partialTick, @Nullable @Nullable Map<net.minecraft.resources.ResourceLocation, BakedShell> shellOverrides) -
render
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
effectLayers
Returns the value of theeffectLayersrecord component.- Returns:
- the value of the
effectLayersrecord component
-