Package api.achievement
Record Class AchievementEvents.BlockConvertedEventData
java.lang.Object
java.lang.Record
api.achievement.AchievementEvents.BlockConvertedEventData
- Enclosing class:
- AchievementEvents
public static record AchievementEvents.BlockConvertedEventData(int previousID, int previousMetadata, int newID, int newMetadata)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockConvertedEventData(int previousID, int previousMetadata, int newID, int newMetadata) Creates an instance of aBlockConvertedEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnewID()Returns the value of thenewIDrecord component.intReturns the value of thenewMetadatarecord component.intReturns the value of thepreviousIDrecord component.intReturns the value of thepreviousMetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockConvertedEventData
public BlockConvertedEventData(int previousID, int previousMetadata, int newID, int newMetadata) Creates an instance of aBlockConvertedEventDatarecord class.- Parameters:
previousID- the value for thepreviousIDrecord componentpreviousMetadata- the value for thepreviousMetadatarecord componentnewID- the value for thenewIDrecord componentnewMetadata- the value for thenewMetadatarecord 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. All components in this record class are compared with '=='. -
previousID
public int previousID()Returns the value of thepreviousIDrecord component.- Returns:
- the value of the
previousIDrecord component
-
previousMetadata
public int previousMetadata()Returns the value of thepreviousMetadatarecord component.- Returns:
- the value of the
previousMetadatarecord component
-
newID
public int newID()Returns the value of thenewIDrecord component.- Returns:
- the value of the
newIDrecord component
-
newMetadata
public int newMetadata()Returns the value of thenewMetadatarecord component.- Returns:
- the value of the
newMetadatarecord component
-