package net.glowstone.block.blocktype; import net.glowstone.block.GlowBlock; import org.bukkit.inventory.ItemStack; import java.util.Arrays; import java.util.Collection; public class BlockRails extends BlockNeedsAttached { @Override public Collection<ItemStack> getDrops(GlowBlock block, ItemStack tool) { return Arrays.asList(new ItemStack(block.getType())); } }