Record Class AppearingTextConfiguration
java.lang.Object
java.lang.Record
net.thewinnt.cutscenes.effect.configuration.AppearingTextConfiguration
public record AppearingTextConfiguration(net.minecraft.network.chat.Component text, CoordinateProvider rx, CoordinateProvider ry, CoordinateProvider width, boolean dropShadow, net.minecraft.resources.ResourceLocation soundbite, DelayProvider delays, net.minecraft.util.valueproviders.FloatProvider pitch)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAppearingTextConfiguration(net.minecraft.network.chat.Component text, CoordinateProvider rx, CoordinateProvider ry, CoordinateProvider width, boolean dropShadow, net.minecraft.resources.ResourceLocation soundbite, DelayProvider delays, net.minecraft.util.valueproviders.FloatProvider pitch) Creates an instance of aAppearingTextConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelays()Returns the value of thedelaysrecord component.booleanReturns the value of thedropShadowrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.util.valueproviders.FloatProviderpitch()Returns the value of thepitchrecord component.rx()Returns the value of therxrecord component.ry()Returns the value of theryrecord component.net.minecraft.resources.ResourceLocationReturns the value of thesoundbiterecord component.net.minecraft.network.chat.Componenttext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
AppearingTextConfiguration
public AppearingTextConfiguration(net.minecraft.network.chat.Component text, CoordinateProvider rx, CoordinateProvider ry, CoordinateProvider width, boolean dropShadow, net.minecraft.resources.ResourceLocation soundbite, DelayProvider delays, net.minecraft.util.valueproviders.FloatProvider pitch) Creates an instance of aAppearingTextConfigurationrecord class.- Parameters:
text- the value for thetextrecord componentrx- the value for therxrecord componentry- the value for theryrecord componentwidth- the value for thewidthrecord componentdropShadow- the value for thedropShadowrecord componentsoundbite- the value for thesoundbiterecord componentdelays- the value for thedelaysrecord componentpitch- the value for thepitchrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
text
public net.minecraft.network.chat.Component text()Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
rx
Returns the value of therxrecord component.- Returns:
- the value of the
rxrecord component
-
ry
Returns the value of theryrecord component.- Returns:
- the value of the
ryrecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
dropShadow
public boolean dropShadow()Returns the value of thedropShadowrecord component.- Returns:
- the value of the
dropShadowrecord component
-
soundbite
public net.minecraft.resources.ResourceLocation soundbite()Returns the value of thesoundbiterecord component.- Returns:
- the value of the
soundbiterecord component
-
delays
Returns the value of thedelaysrecord component.- Returns:
- the value of the
delaysrecord component
-
pitch
public net.minecraft.util.valueproviders.FloatProvider pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-