Record Class SoundMapping
java.lang.Object
java.lang.Record
org.geysermc.geyser.registry.type.SoundMapping
-
Constructor Summary
ConstructorsConstructorDescriptionSoundMapping(String java, String bedrock, String playsound, int extraData, String identifier, boolean levelEvent, float pitchAdjust) Creates an instance of aSoundMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbedrock()Returns the value of thebedrockrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theextraDatarecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.java()Returns the value of thejavarecord component.booleanReturns the value of thelevelEventrecord component.floatReturns the value of thepitchAdjustrecord component.Returns the value of theplaysoundrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SoundMapping
public SoundMapping(String java, String bedrock, String playsound, int extraData, String identifier, boolean levelEvent, float pitchAdjust) Creates an instance of aSoundMappingrecord class.- Parameters:
java- the value for thejavarecord componentbedrock- the value for thebedrockrecord componentplaysound- the value for theplaysoundrecord componentextraData- the value for theextraDatarecord componentidentifier- the value for theidentifierrecord componentlevelEvent- the value for thelevelEventrecord componentpitchAdjust- the value for thepitchAdjustrecord 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 '=='. -
java
Returns the value of thejavarecord component.- Returns:
- the value of the
javarecord component
-
bedrock
Returns the value of thebedrockrecord component.- Returns:
- the value of the
bedrockrecord component
-
playsound
Returns the value of theplaysoundrecord component.- Returns:
- the value of the
playsoundrecord component
-
extraData
public int extraData()Returns the value of theextraDatarecord component.- Returns:
- the value of the
extraDatarecord component
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
levelEvent
public boolean levelEvent()Returns the value of thelevelEventrecord component.- Returns:
- the value of the
levelEventrecord component
-
pitchAdjust
public float pitchAdjust()Returns the value of thepitchAdjustrecord component.- Returns:
- the value of the
pitchAdjustrecord component
-