Class MobCollector

java.lang.Object
io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
All Implemented Interfaces:
io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent, io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute, io.github.thebusybiscuit.slimefun5.core.attributes.MachineProcessHolder<io.github.thebusybiscuit.slimefun5.implementation.operations.CraftingOperation>, io.github.thebusybiscuit.slimefun5.core.attributes.NotHopperable, io.github.thebusybiscuit.slimefun5.core.attributes.Placeable, io.github.thebusybiscuit.slimefun5.core.attributes.RecipeDisplayItem, me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock

public class MobCollector extends SimpleItemWithLargeContainerMachine
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack
     
    static final io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack
     
    static final io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack
     
    static Map<org.bukkit.block.Block,me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe>
     
    static Map<org.bukkit.block.Block,Integer>
     
    static final org.bukkit.inventory.ItemStack[]
     
    static final org.bukkit.inventory.ItemStack[]
     
    static final org.bukkit.inventory.ItemStack[]
     

    Fields inherited from class com.github.relativobr.supreme.generic.machine.GenericMachine

    machineRecipes

    Fields inherited from class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer

    recipes

    Fields inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem

    addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
  • Constructor Summary

    Constructors
    Constructor
    Description
    MobCollector(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup category, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe
    findNextRecipe(me.mrCookieSlime.Slimefun.api.inventory.BlockMenu inv)
     
    List<org.bukkit.inventory.ItemStack>
     
     
    me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe
    getProcessing(org.bukkit.block.Block b)
     
    org.bukkit.inventory.ItemStack
     
    getRecipeSectionLabel(org.bukkit.entity.Player p)
     
    boolean
    isProcessing(org.bukkit.block.Block b)
     
    void
     
    protected void
     
    setMobRange(int value)
     
    protected void
    tick(org.bukkit.block.Block b)
     

    Methods inherited from class com.github.relativobr.supreme.generic.machine.SimpleItemWithLargeContainerMachine

    getBorderSlots, getInputBorderSlots, getInputSlots, getOutputBorderSlots, getOutputSlots, getStatusSlot

    Methods inherited from class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer

    getCapacity, getEnergyComponentType, getEnergyConsumption, getInventoryTitle, getMachineProcessor, getMachineRecipes, getSpeed, register, registerRecipe, registerRecipe, registerRecipe, registerRecipe, registerRecipe, setCapacity, setEnergyConsumption, setProcessingSpeed, takeCharge

    Methods inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem

    addItemHandler, addItemSetting, addOfficialWikipage, bakeTranslatedDisplay, callItemHandler, canUse, decorateBakedTemplate, equals, error, getAddon, getBlockTicker, getById, getByItem, getByItem, getDrops, getDrops, getGuideType, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isTicking, isUseableInWorkbench, load, postRegister, sendDeprecationWarning, setGuideType, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, setWikiText, toString, warn

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.EnergyNetComponent

    addCharge, getCharge, getCharge, isChargeable, removeCharge, setCharge

    Methods inherited from interface me.mrCookieSlime.Slimefun.Objects.SlimefunItem.interfaces.InventoryBlock

    createPreset, createPreset

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.ItemAttribute

    getId

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.Placeable

    useVanillaBlockBreaking

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.RecipeDisplayItem

    getLabelLocalPath
  • Field Details

    • MOB_COLLECTOR_MACHINE

      public static final io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack MOB_COLLECTOR_MACHINE
    • RECIPE_MOB_COLLECTOR_MACHINE

      public static final org.bukkit.inventory.ItemStack[] RECIPE_MOB_COLLECTOR_MACHINE
    • MOB_COLLECTOR_MACHINE_II

      public static final io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack MOB_COLLECTOR_MACHINE_II
    • RECIPE_MOB_COLLECTOR_MACHINE_II

      public static final org.bukkit.inventory.ItemStack[] RECIPE_MOB_COLLECTOR_MACHINE_II
    • MOB_COLLECTOR_MACHINE_III

      public static final io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack MOB_COLLECTOR_MACHINE_III
    • RECIPE_MOB_COLLECTOR_MACHINE_III

      public static final org.bukkit.inventory.ItemStack[] RECIPE_MOB_COLLECTOR_MACHINE_III
    • processing

      public static Map<org.bukkit.block.Block,me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe> processing
    • progress

      public static Map<org.bukkit.block.Block,Integer> progress
  • Constructor Details

    • MobCollector

      @ParametersAreNonnullByDefault public MobCollector(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup category, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
  • Method Details

    • registerDefaultRecipes

      protected void registerDefaultRecipes()
      Overrides:
      registerDefaultRecipes in class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
    • addProduce

      public void addProduce(@Nonnull MobCollectorMachineRecipe produce)
    • preRegister

      public void preRegister()
      Overrides:
      preRegister in class me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.AContainer
    • getDisplayRecipes

      @Nonnull public List<org.bukkit.inventory.ItemStack> getDisplayRecipes()
      Specified by:
      getDisplayRecipes in interface io.github.thebusybiscuit.slimefun5.core.attributes.RecipeDisplayItem
      Overrides:
      getDisplayRecipes in class SimpleItemWithLargeContainerMachine
    • getRecipeSectionLabel

      @Nonnull public String getRecipeSectionLabel(@Nonnull org.bukkit.entity.Player p)
    • findNextRecipe

      protected me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe findNextRecipe(@Nonnull me.mrCookieSlime.Slimefun.api.inventory.BlockMenu inv)
      Overrides:
      findNextRecipe in class GenericMachine
    • setMobRange

      public final MobCollector setMobRange(int value)
    • tick

      protected void tick(org.bukkit.block.Block b)
      Overrides:
      tick in class GenericMachine
    • getMachineIdentifier

      @Nonnull public String getMachineIdentifier()
      Overrides:
      getMachineIdentifier in class GenericMachine
    • getProgressBar

      public org.bukkit.inventory.ItemStack getProgressBar()
      Overrides:
      getProgressBar in class GenericMachine
    • getProcessing

      public me.mrCookieSlime.Slimefun.Objects.SlimefunItem.abstractItems.MachineRecipe getProcessing(org.bukkit.block.Block b)
      Overrides:
      getProcessing in class GenericMachine
    • isProcessing

      public boolean isProcessing(org.bukkit.block.Block b)
      Overrides:
      isProcessing in class GenericMachine