|
|
@ -1,7 +1,10 @@
|
|
|
|
package eu.ruekov.ruakij.LinkedBeaconTeleporters.linkedBeaconTeleporter;
|
|
|
|
package eu.ruekov.ruakij.LinkedBeaconTeleporters.linkedBeaconTeleporter;
|
|
|
|
|
|
|
|
|
|
|
|
import eu.ruekov.ruakij.LinkedBeaconTeleporters.Main;
|
|
|
|
import eu.ruekov.ruakij.LinkedBeaconTeleporters.Main;
|
|
|
|
|
|
|
|
import org.bukkit.GameMode;
|
|
|
|
import org.bukkit.Material;
|
|
|
|
import org.bukkit.Material;
|
|
|
|
|
|
|
|
import org.bukkit.event.block.BlockBreakEvent;
|
|
|
|
|
|
|
|
import org.bukkit.event.block.BlockPlaceEvent;
|
|
|
|
import org.bukkit.inventory.ItemStack;
|
|
|
|
import org.bukkit.inventory.ItemStack;
|
|
|
|
import org.bukkit.inventory.meta.ItemMeta;
|
|
|
|
import org.bukkit.inventory.meta.ItemMeta;
|
|
|
|
|
|
|
|
|
|
|
@ -35,6 +38,12 @@ public class LinkedBeaconTeleporterItem extends LinkedBeaconTeleporter {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public LinkedBeaconTeleporterBlock place(BlockPlaceEvent e){
|
|
|
|
|
|
|
|
LinkedBeaconTeleporterBlock lbtBlock = Main.lbtManager.placeLbtItem(this, e.getBlock());
|
|
|
|
|
|
|
|
return lbtBlock;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Conversion methods
|
|
|
|
// Conversion methods
|
|
|
|
public static LinkedBeaconTeleporterItem getFromItemStack(ItemStack itemStack){
|
|
|
|
public static LinkedBeaconTeleporterItem getFromItemStack(ItemStack itemStack){
|
|
|
|
return Main.lbtManager.getLbtItemFromItemStack(itemStack);
|
|
|
|
return Main.lbtManager.getLbtItemFromItemStack(itemStack);
|
|
|
|