Record Class Particle.DynamicAlpha

java.lang.Object
java.lang.Record
net.minecraft.client.particle.Particle.DynamicAlpha
Record Components:
startAlpha -
endAlpha -
startAtNormalizedAge -
endAtNormalizedAge -
Enclosing class:
Particle

@Environment(CLIENT) public static record Particle.DynamicAlpha(float startAlpha, float endAlpha, float startAtNormalizedAge, float endAtNormalizedAge) extends Record
Mappings:
Namespace Name
named net/minecraft/client/particle/Particle$DynamicAlpha
intermediary net/minecraft/class_703$class_9213
official gch$a
named startAlpha
intermediary comp_2321
official b
named endAlpha
intermediary comp_2322
official c
named startAtNormalizedAge
intermediary comp_2323
official d
named endAtNormalizedAge
intermediary comp_2324
official e
  • Field Details

    • startAlpha

      private final float startAlpha
      The field for the startAlpha record component.
    • endAlpha

      private final float endAlpha
      The field for the endAlpha record component.
    • startAtNormalizedAge

      private final float startAtNormalizedAge
      The field for the startAtNormalizedAge record component.
    • endAtNormalizedAge

      private final float endAtNormalizedAge
      The field for the endAtNormalizedAge record component.
    • OPAQUE

      public static final Particle.DynamicAlpha OPAQUE
      Mappings:
      Namespace Name Mixin selector
      named OPAQUE Lnet/minecraft/client/particle/Particle$DynamicAlpha;OPAQUE:Lnet/minecraft/client/particle/Particle$DynamicAlpha;
      intermediary field_48941 Lnet/minecraft/class_703$class_9213;field_48941:Lnet/minecraft/class_703$class_9213;
      official a Lgch$a;a:Lgch$a;
  • Constructor Details

    • DynamicAlpha

      public DynamicAlpha(float float2, float float3, float float4, float float5)
  • Method Details

    • isOpaque

      public boolean isOpaque()
      Mappings:
      Namespace Name Mixin selector
      named isOpaque Lnet/minecraft/client/particle/Particle$DynamicAlpha;isOpaque()Z
      intermediary method_56833 Lnet/minecraft/class_703$class_9213;method_56833()Z
      official a Lgch$a;a()Z
    • getAlpha

      public float getAlpha(int age, int maxAge, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getAlpha Lnet/minecraft/client/particle/Particle$DynamicAlpha;getAlpha(IIF)F
      intermediary method_56834 Lnet/minecraft/class_703$class_9213;method_56834(IIF)F
      official a Lgch$a;a(IIF)F
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • startAlpha

      public float startAlpha()
      Returns the value of the startAlpha record component.
      Returns:
      the value of the startAlpha record component
    • endAlpha

      public float endAlpha()
      Returns the value of the endAlpha record component.
      Returns:
      the value of the endAlpha record component
    • startAtNormalizedAge

      public float startAtNormalizedAge()
      Returns the value of the startAtNormalizedAge record component.
      Returns:
      the value of the startAtNormalizedAge record component
    • endAtNormalizedAge

      public float endAtNormalizedAge()
      Returns the value of the endAtNormalizedAge record component.
      Returns:
      the value of the endAtNormalizedAge record component