Record Class BedrockAnimationParticle
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockAnimationParticle
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBedrockAnimationParticle(float time, String effect, String locator, boolean attached, com.viaversion.viafabricplus.bedrock.appearance.BedrockMolang.Program initialization) Creates an instance of aBedrockAnimationParticlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanattached()Returns the value of theattachedrecord component.effect()Returns the value of theeffectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.viaversion.viafabricplus.bedrock.appearance.BedrockMolang.ProgramReturns the value of theinitializationrecord component.locator()Returns the value of thelocatorrecord component.floattime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BedrockAnimationParticle
public BedrockAnimationParticle(float time, String effect, String locator, boolean attached, com.viaversion.viafabricplus.bedrock.appearance.BedrockMolang.Program initialization) Creates an instance of aBedrockAnimationParticlerecord class.- Parameters:
time- the value for thetimerecord componenteffect- the value for theeffectrecord componentlocator- the value for thelocatorrecord componentattached- the value for theattachedrecord componentinitialization- the value for theinitializationrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
time
public float time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
effect
Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-
locator
Returns the value of thelocatorrecord component.- Returns:
- the value of the
locatorrecord component
-
attached
public boolean attached()Returns the value of theattachedrecord component.- Returns:
- the value of the
attachedrecord component
-
initialization
public com.viaversion.viafabricplus.bedrock.appearance.BedrockMolang.Program initialization()Returns the value of theinitializationrecord component.- Returns:
- the value of the
initializationrecord component
-