|
|
@ -13,11 +13,11 @@ public class LinkedBeaconTeleporterItem extends LinkedBeaconTeleporter {
|
|
|
|
// INFO: Safe to store as its always cloned by bukkit
|
|
|
|
// INFO: Safe to store as its always cloned by bukkit
|
|
|
|
ItemStack item;
|
|
|
|
ItemStack item;
|
|
|
|
|
|
|
|
|
|
|
|
public LinkedBeaconTeleporterItem(ItemStack item){
|
|
|
|
public LinkedBeaconTeleporterItem(){
|
|
|
|
// Create a new LinkedBeaconTeleporter
|
|
|
|
// Create a new LinkedBeaconTeleporter
|
|
|
|
super();
|
|
|
|
super();
|
|
|
|
|
|
|
|
|
|
|
|
this.item = item;
|
|
|
|
this.item = Main.lbtManager.getItemStackFromLbtItem(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public LinkedBeaconTeleporterItem(String teleporterId, ItemStack item) {
|
|
|
|
public LinkedBeaconTeleporterItem(String teleporterId, ItemStack item) {
|
|
|
|
super(teleporterId);
|
|
|
|
super(teleporterId);
|
|
|
@ -25,9 +25,9 @@ public class LinkedBeaconTeleporterItem extends LinkedBeaconTeleporter {
|
|
|
|
this.item = item;
|
|
|
|
this.item = item;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public LinkedBeaconTeleporterItem(String teleporterId){
|
|
|
|
public LinkedBeaconTeleporterItem(String teleporterId){
|
|
|
|
this(teleporterId,
|
|
|
|
super(teleporterId);
|
|
|
|
new ItemStack(Material.BEACON)
|
|
|
|
|
|
|
|
);
|
|
|
|
this.item = Main.lbtManager.getItemStackFromLbtItem(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ItemStack item(){
|
|
|
|
public ItemStack item(){
|
|
|
@ -36,9 +36,6 @@ public class LinkedBeaconTeleporterItem extends LinkedBeaconTeleporter {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Conversion methods
|
|
|
|
// Conversion methods
|
|
|
|
public ItemStack toItemStack(){
|
|
|
|
|
|
|
|
return Main.lbtManager.getItemStackFromLbtItem(this);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public static LinkedBeaconTeleporterItem getFromItemStack(ItemStack itemStack){
|
|
|
|
public static LinkedBeaconTeleporterItem getFromItemStack(ItemStack itemStack){
|
|
|
|
return Main.lbtManager.getLbtItemFromItemStack(itemStack);
|
|
|
|
return Main.lbtManager.getLbtItemFromItemStack(itemStack);
|
|
|
|
}
|
|
|
|
}
|
|
|
|