Package org.geysermc.geyser.item
Record Class GeyserCustomMappingData
java.lang.Object
java.lang.Record
org.geysermc.geyser.item.GeyserCustomMappingData
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserCustomMappingData(com.nukkitx.protocol.bedrock.data.inventory.ComponentItemData componentItemData, com.nukkitx.protocol.bedrock.packet.StartGamePacket.ItemEntry startGamePacketItemEntry, String stringId, int integerId)Creates an instance of aGeyserCustomMappingDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.nukkitx.protocol.bedrock.data.inventory.ComponentItemDataReturns the value of thecomponentItemDatarecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intReturns the value of theintegerIdrecord component.com.nukkitx.protocol.bedrock.packet.StartGamePacket.ItemEntryReturns the value of thestartGamePacketItemEntryrecord component.stringId()Returns the value of thestringIdrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserCustomMappingData
public GeyserCustomMappingData(com.nukkitx.protocol.bedrock.data.inventory.ComponentItemData componentItemData, com.nukkitx.protocol.bedrock.packet.StartGamePacket.ItemEntry startGamePacketItemEntry, String stringId, int integerId)Creates an instance of aGeyserCustomMappingDatarecord class.- Parameters:
componentItemData- the value for thecomponentItemDatarecord componentstartGamePacketItemEntry- the value for thestartGamePacketItemEntryrecord componentstringId- the value for thestringIdrecord componentintegerId- the value for theintegerIdrecord 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 '=='. -
componentItemData
public com.nukkitx.protocol.bedrock.data.inventory.ComponentItemData componentItemData()Returns the value of thecomponentItemDatarecord component.- Returns:
- the value of the
componentItemDatarecord component
-
startGamePacketItemEntry
public com.nukkitx.protocol.bedrock.packet.StartGamePacket.ItemEntry startGamePacketItemEntry()Returns the value of thestartGamePacketItemEntryrecord component.- Returns:
- the value of the
startGamePacketItemEntryrecord component
-
stringId
Returns the value of thestringIdrecord component.- Returns:
- the value of the
stringIdrecord component
-
integerId
public int integerId()Returns the value of theintegerIdrecord component.- Returns:
- the value of the
integerIdrecord component
-