mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-09-29 23:17:30 +02:00
Hopefully make SignShops actually serialize now."
This commit is contained in:
parent
3f0e0a17e3
commit
60fb2e6d93
@ -18,6 +18,11 @@
|
|||||||
<artifactId>SaneEconomyCore</artifactId>
|
<artifactId>SaneEconomyCore</artifactId>
|
||||||
<version>0.9.0-SNAPSHOT</version>
|
<version>0.9.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.appledash</groupId>
|
||||||
|
<artifactId>SaneEconomyCore</artifactId>
|
||||||
|
<version>0.9.0-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.appledash.saneeconomysignshop.signshop;
|
package org.appledash.saneeconomysignshop.signshop;
|
||||||
|
|
||||||
|
import org.appledash.saneeconomysignshop.util.ItemInfo;
|
||||||
import org.appledash.saneeconomysignshop.util.SerializableLocation;
|
import org.appledash.saneeconomysignshop.util.SerializableLocation;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
@ -14,7 +15,7 @@ import java.util.UUID;
|
|||||||
public class SignShop implements Serializable {
|
public class SignShop implements Serializable {
|
||||||
private final UUID ownerUuid;
|
private final UUID ownerUuid;
|
||||||
private final SerializableLocation location;
|
private final SerializableLocation location;
|
||||||
private final ItemStack item;
|
private final ItemInfo item;
|
||||||
private final int quantity;
|
private final int quantity;
|
||||||
private final double buyPrice;
|
private final double buyPrice;
|
||||||
private final double sellPrice;
|
private final double sellPrice;
|
||||||
@ -30,7 +31,7 @@ public class SignShop implements Serializable {
|
|||||||
|
|
||||||
this.ownerUuid = ownerUuid;
|
this.ownerUuid = ownerUuid;
|
||||||
this.location = new SerializableLocation(location);
|
this.location = new SerializableLocation(location);
|
||||||
this.item = item;
|
this.item = new ItemInfo(item);
|
||||||
this.quantity = quantity;
|
this.quantity = quantity;
|
||||||
this.buyPrice = buyPrice;
|
this.buyPrice = buyPrice;
|
||||||
this.sellPrice = sellPrice;
|
this.sellPrice = sellPrice;
|
||||||
@ -49,7 +50,7 @@ public class SignShop implements Serializable {
|
|||||||
* @return Material representing item/block type
|
* @return Material representing item/block type
|
||||||
*/
|
*/
|
||||||
public ItemStack getItem() {
|
public ItemStack getItem() {
|
||||||
return item;
|
return item.toItemStack();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user