mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-22 04:35:53 +00:00
36 lines
632 B
Java
36 lines
632 B
Java
|
package me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems;
|
||
|
|
||
|
import org.bukkit.inventory.ItemStack;
|
||
|
|
||
|
public class MachineFuel {
|
||
|
|
||
|
int seconds;
|
||
|
ItemStack fuel;
|
||
|
ItemStack output;
|
||
|
|
||
|
public MachineFuel(int seconds, ItemStack fuel) {
|
||
|
this.seconds = seconds * 2;
|
||
|
this.fuel = fuel;
|
||
|
this.output = null;
|
||
|
}
|
||
|
|
||
|
public MachineFuel(int seconds, ItemStack fuel, ItemStack output) {
|
||
|
this.seconds = seconds * 2;
|
||
|
this.fuel = fuel;
|
||
|
this.output = output;
|
||
|
}
|
||
|
|
||
|
public ItemStack getInput() {
|
||
|
return this.fuel;
|
||
|
}
|
||
|
|
||
|
public ItemStack getOutput() {
|
||
|
return this.output;
|
||
|
}
|
||
|
|
||
|
public int getTicks() {
|
||
|
return seconds;
|
||
|
}
|
||
|
|
||
|
}
|