java.lang.Object
me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineFuel
All Implemented Interfaces:
Predicate<ItemStack>

public class MachineFuel extends Object implements Predicate<ItemStack>
  • Constructor Details

    • MachineFuel

      public MachineFuel(int seconds, ItemStack fuel)
    • MachineFuel

      public MachineFuel(int seconds, ItemStack fuel, ItemStack output)
  • Method Details

    • getInput

      public ItemStack getInput()
    • getOutput

      public ItemStack getOutput()
    • getTicks

      public int getTicks()
      This method returns how long this MachineFuel lasts. The result represents Slimefun ticks.
      Returns:
      How many ticks this fuel type lasts
    • test

      public boolean test(ItemStack item)
      Specified by:
      test in interface Predicate<ItemStack>