Package btw.crafting.recipe.types
Class TurntableRecipe
java.lang.Object
btw.crafting.recipe.types.TurntableRecipe
- All Implemented Interfaces:
IdentifiableRecipe<TurntableRecipe>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTurntableRecipe(Block output, int outputMetadata, ItemStack[] itemsEjected, Block block, int[] metadatas, int rotationsToCraft) -
Method Summary
Modifier and TypeMethodDescriptionint[]intintbooleanbooleanmatchesInputs(Block block, int metadata) booleanmatchesInputs(Block block, int[] metadatas) booleanmatchesRecipe(TurntableRecipe recipe) voidplayCompletionEffect(World world, int x, int y, int z) voidplayEffect(World world, int x, int y, int z) 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 completionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface api.crafting.IdentifiableRecipe
getId, setAsDefaultAfterAchievement, setAsDefaultUntilAchievement, setAsRecipeDefault
-
Constructor Details
-
TurntableRecipe
-
-
Method Details
-
ignoreMetadata
public boolean ignoreMetadata() -
matchesRecipe
-
matchesInputs
-
matchesInputs
-
getInputblock
-
getInputMetadata
public int[] getInputMetadata() -
getOutputBlock
-
getOutputMetadata
public int getOutputMetadata() -
getItemsEjected
-
getRotationsToCraft
public int getRotationsToCraft() -
setEffect
-
setCompletionEffect
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
-
playCompletionEffect
-