Class TurntableRecipe

java.lang.Object
btw.crafting.recipe.types.TurntableRecipe
All Implemented Interfaces:
IdentifiableRecipe<TurntableRecipe>

public class TurntableRecipe extends Object implements IdentifiableRecipe<TurntableRecipe>
  • Constructor Details

    • TurntableRecipe

      public TurntableRecipe(Block output, int outputMetadata, ItemStack[] itemsEjected, Block block, int[] metadatas, int rotationsToCraft)
  • Method Details

    • ignoreMetadata

      public boolean ignoreMetadata()
    • matchesRecipe

      public boolean matchesRecipe(TurntableRecipe recipe)
    • matchesInputs

      public boolean matchesInputs(Block block, int metadata)
    • matchesInputs

      public boolean matchesInputs(Block block, int[] metadatas)
    • getInputblock

      public Block getInputblock()
    • getInputMetadata

      public int[] getInputMetadata()
    • getOutputBlock

      public Block getOutputBlock()
    • getOutputMetadata

      public int getOutputMetadata()
    • getItemsEjected

      public ItemStack[] getItemsEjected()
    • getRotationsToCraft

      public int getRotationsToCraft()
    • setEffect

    • setCompletionEffect

      public TurntableRecipe setCompletionEffect(TurntableRecipe.TurntableEffect effect)
      Sets effect on recipe completed if different than the in progress effect If a normal effect is set and completion is not set, it will play the normal effect on completion
      Parameters:
      effect -
      Returns:
    • playEffect

      public void playEffect(World world, int x, int y, int z)
    • playCompletionEffect

      public void playCompletionEffect(World world, int x, int y, int z)