Record Class GeyserStonecutterData
java.lang.Object
java.lang.Record
org.geysermc.geyser.inventory.recipe.GeyserStonecutterData
- Record Components:
- the button that needs to be pressed for Java Edition to accept this item.output- the expected output of this item when cut.
public record GeyserStonecutterData(int buttonId, com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack output)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserStonecutterData(int buttonId, com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack output)Creates an instance of aGeyserStonecutterDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbuttonId()Returns the value of thebuttonIdrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStackoutput()Returns the value of theoutputrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserStonecutterData
public GeyserStonecutterData(int buttonId, com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack output)Creates an instance of aGeyserStonecutterDatarecord class.
-
-
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 '=='. -
buttonId
public int buttonId()Returns the value of thebuttonIdrecord component.- Returns:
- the value of the
buttonIdrecord component
-
output
public com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack output()Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-