Record Class SellShop.SellRecord
java.lang.Object
java.lang.Record
com.mclds.plugins.mcldscustomcontainer.impl.SellShop.SellRecord
- Enclosing class:
SellShop
-
Constructor Summary
ConstructorsConstructorDescriptionSellRecord(String player_uuid, String item_namespaced_id, String item_display_name, int per_item_amount, int number, int price, int current_owner_money, double time) Creates an instance of aSellRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecurrent_owner_moneyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theitem_display_namerecord component.Returns the value of theitem_namespaced_idrecord component.intnumber()Returns the value of thenumberrecord component.intReturns the value of theper_item_amountrecord component.Returns the value of theplayer_uuidrecord component.intprice()Returns the value of thepricerecord component.doubletime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SellRecord
public SellRecord(String player_uuid, String item_namespaced_id, String item_display_name, int per_item_amount, int number, int price, int current_owner_money, double time) Creates an instance of aSellRecordrecord class.- Parameters:
player_uuid- the value for theplayer_uuidrecord componentitem_namespaced_id- the value for theitem_namespaced_idrecord componentitem_display_name- the value for theitem_display_namerecord componentper_item_amount- the value for theper_item_amountrecord componentnumber- the value for thenumberrecord componentprice- the value for thepricerecord componentcurrent_owner_money- the value for thecurrent_owner_moneyrecord componenttime- the value for thetimerecord 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 '=='. -
player_uuid
Returns the value of theplayer_uuidrecord component.- Returns:
- the value of the
player_uuidrecord component
-
item_namespaced_id
Returns the value of theitem_namespaced_idrecord component.- Returns:
- the value of the
item_namespaced_idrecord component
-
item_display_name
Returns the value of theitem_display_namerecord component.- Returns:
- the value of the
item_display_namerecord component
-
per_item_amount
public int per_item_amount()Returns the value of theper_item_amountrecord component.- Returns:
- the value of the
per_item_amountrecord component
-
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
price
public int price()Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-
current_owner_money
public int current_owner_money()Returns the value of thecurrent_owner_moneyrecord component.- Returns:
- the value of the
current_owner_moneyrecord component
-
time
public double time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-