org.bukkit.craftbukkit.inventory.CraftInventoryFurnace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chest-server Show documentation
Show all versions of chest-server Show documentation
A spigot fork to kotlin structure and news.
The newest version!
package org.bukkit.craftbukkit.inventory;
import net.minecraft.server.TileEntityFurnace;
import org.bukkit.block.Furnace;
import org.bukkit.inventory.FurnaceInventory;
import org.bukkit.inventory.ItemStack;
public class CraftInventoryFurnace extends CraftInventory implements FurnaceInventory {
public CraftInventoryFurnace(TileEntityFurnace inventory) {
super(inventory);
}
public ItemStack getResult() {
return getItem(2);
}
public void setResult(ItemStack stack) {
setItem(2, stack);
}
public ItemStack getFuel() {
return getItem(1);
}
public void setFuel(ItemStack stack) {
setItem(1, stack);
}
public ItemStack getSmelting() {
return getItem(0);
}
public void setSmelting(ItemStack stack) {
setItem(0, stack);
}
@Override
public Furnace getHolder() {
return (Furnace) inventory.getOwner();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy