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
official fzc$a
intermediary net/minecraft/class_703$class_9213
named net/minecraft/client/particle/Particle$DynamicAlpha
official b
intermediary comp_2321
named startAlpha
official c
intermediary comp_2322
named endAlpha
official d
intermediary comp_2323
named startAtNormalizedAge
official e
intermediary comp_2324
named endAtNormalizedAge
  • 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
      official a Lfzc$a;a:Lfzc$a;
      intermediary field_48941 Lnet/minecraft/class_703$class_9213;field_48941:Lnet/minecraft/class_703$class_9213;
      named OPAQUE Lnet/minecraft/client/particle/Particle$DynamicAlpha;OPAQUE:Lnet/minecraft/client/particle/Particle$DynamicAlpha;
  • Constructor Details

    • DynamicAlpha

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

    • isOpaque

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

      public float getAlpha(int age, int maxAge, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      official a Lfzc$a;a(IIF)F
      intermediary method_56834 Lnet/minecraft/class_703$class_9213;method_56834(IIF)F
      named getAlpha Lnet/minecraft/client/particle/Particle$DynamicAlpha;getAlpha(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