Package net.minecraft.client.particle
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 gbt$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 Summary
Modifier and TypeFieldDescriptionprivate final float
The field for theendAlpha
record component.private final float
The field for theendAtNormalizedAge
record component.static final Particle.DynamicAlpha
private final float
The field for thestartAlpha
record component.private final float
The field for thestartAtNormalizedAge
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
endAlpha()
Returns the value of theendAlpha
record component.float
Returns the value of theendAtNormalizedAge
record component.final boolean
Indicates whether some other object is "equal to" this one.float
getAlpha
(int age, int maxAge, float tickDelta) final int
hashCode()
Returns a hash code value for this object.boolean
isOpaque()
float
Returns the value of thestartAlpha
record component.float
Returns the value of thestartAtNormalizedAge
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
startAlpha
private final float startAlphaThe field for thestartAlpha
record component. -
endAlpha
private final float endAlphaThe field for theendAlpha
record component. -
startAtNormalizedAge
private final float startAtNormalizedAgeThe field for thestartAtNormalizedAge
record component. -
endAtNormalizedAge
private final float endAtNormalizedAgeThe field for theendAtNormalizedAge
record component. -
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
Lgbt$a;a:Lgbt$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
Lgbt$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
Lgbt$a;a(IIF)F
-
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 with '=='. -
startAlpha
public float startAlpha()Returns the value of thestartAlpha
record component.- Returns:
- the value of the
startAlpha
record component
-
endAlpha
public float endAlpha()Returns the value of theendAlpha
record component.- Returns:
- the value of the
endAlpha
record component
-
startAtNormalizedAge
public float startAtNormalizedAge()Returns the value of thestartAtNormalizedAge
record component.- Returns:
- the value of the
startAtNormalizedAge
record component
-
endAtNormalizedAge
public float endAtNormalizedAge()Returns the value of theendAtNormalizedAge
record component.- Returns:
- the value of the
endAtNormalizedAge
record component
-