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$DynamicAlphaintermediary net/minecraft/class_703$class_9213official gcn$anamed startAlphaintermediary comp_2321official bnamed endAlphaintermediary comp_2322official cnamed startAtNormalizedAgeintermediary comp_2323official dnamed endAtNormalizedAgeintermediary comp_2324official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theendAlpharecord component.private final floatThe field for theendAtNormalizedAgerecord component.static final Particle.DynamicAlphaprivate final floatThe field for thestartAlpharecord component.private final floatThe field for thestartAtNormalizedAgerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatendAlpha()Returns the value of theendAlpharecord component.floatReturns the value of theendAtNormalizedAgerecord component.final booleanIndicates whether some other object is "equal to" this one.floatgetAlpha(int age, int maxAge, float tickDelta) final inthashCode()Returns a hash code value for this object.booleanisOpaque()floatReturns the value of thestartAlpharecord component.floatReturns the value of thestartAtNormalizedAgerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
startAlpha
private final float startAlphaThe field for thestartAlpharecord component. -
endAlpha
private final float endAlphaThe field for theendAlpharecord component. -
startAtNormalizedAge
private final float startAtNormalizedAgeThe field for thestartAtNormalizedAgerecord component. -
endAtNormalizedAge
private final float endAtNormalizedAgeThe field for theendAtNormalizedAgerecord component. -
OPAQUE
- Mappings:
Namespace Name Mixin selector named OPAQUELnet/minecraft/client/particle/Particle$DynamicAlpha;OPAQUE:Lnet/minecraft/client/particle/Particle$DynamicAlpha;intermediary field_48941Lnet/minecraft/class_703$class_9213;field_48941:Lnet/minecraft/class_703$class_9213;official aLgcn$a;a:Lgcn$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 isOpaqueLnet/minecraft/client/particle/Particle$DynamicAlpha;isOpaque()Zintermediary method_56833Lnet/minecraft/class_703$class_9213;method_56833()Zofficial aLgcn$a;a()Z
-
getAlpha
public float getAlpha(int age, int maxAge, float tickDelta) - Mappings:
Namespace Name Mixin selector named getAlphaLnet/minecraft/client/particle/Particle$DynamicAlpha;getAlpha(IIF)Fintermediary method_56834Lnet/minecraft/class_703$class_9213;method_56834(IIF)Fofficial aLgcn$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 thestartAlpharecord component.- Returns:
- the value of the
startAlpharecord component
-
endAlpha
public float endAlpha()Returns the value of theendAlpharecord component.- Returns:
- the value of the
endAlpharecord component
-
startAtNormalizedAge
public float startAtNormalizedAge()Returns the value of thestartAtNormalizedAgerecord component.- Returns:
- the value of the
startAtNormalizedAgerecord component
-
endAtNormalizedAge
public float endAtNormalizedAge()Returns the value of theendAtNormalizedAgerecord component.- Returns:
- the value of the
endAtNormalizedAgerecord component
-