Class AContainer

    • Method Detail

      • getInventoryTitle

        public abstract String getInventoryTitle​()
        This method returns the title that is used for the Inventory of an AContainer that has been opened by a Player. Override this method to set the title.
        Returns:
        The title of the Inventory of this AContainer
      • getProgressBar

        public abstract ItemStack getProgressBar​()
        This method returns the ItemStack that this AContainer will use as a progress bar. Override this method to set the progress bar.
        Returns:
        The ItemStack to use as the progress bar
      • getEnergyConsumption

        public abstract int getEnergyConsumption​()
        This method returns the amount of energy that is consumed per operation.
        Returns:
        The rate of energy consumption
      • getSpeed

        public abstract int getSpeed​()
        This method returns the speed at which this machine will operate. This can be implemented on an instantiation-level to create different tiers of machines.
        Returns:
        The speed of this machine
      • getMachineIdentifier

        public abstract String getMachineIdentifier​()
        This method returns an internal identifier that is used to identify this AContainer and its recipes. When adding recipes to an AContainer we will use this identifier to identify all instances of the same AContainer. This way we can add the recipes to all instances of the same machine.
        Returns:
        The identifier of this machine
      • registerDefaultRecipes

        protected void registerDefaultRecipes​()
        This method registers all default recipes for this machine.
      • getDisplayRecipes

        public List<ItemStack> getDisplayRecipes​()
      • isProcessing

        public boolean isProcessing​(Block b)
      • registerRecipe

        public void registerRecipe​(MachineRecipe recipe)
      • registerRecipe

        public void registerRecipe​(int seconds,
                                   ItemStack[] input,
                                   ItemStack[] output)
      • tick

        protected void tick​(Block b)