mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 18:45:09 +00:00
* Added AT for ContainerRepair.stackSizeToBeUsedInRepair (Now public)
* Added ability to AnvilUpdateEvent to alter stackSizeToBeUsedInRepair (vanilla behavior is now reproducable) * Added AnvilRepairEvent, fired when the player removes an ItemStack from the output slot of ContainerRepair, and allows the chance to damage the anvil to be altered.
This commit is contained in:
1 parent
7cd820d855
commit
68fd0049fb
5 files changed
+62
-2
No files matched your search
@@ -19,6 +19,7 @@ public class AnvilUpdateEvent extends Event
|
||||
public final String name; // The name to set the item, if the user specified one.
|
||||
public ItemStack output; // Set this to set the output stack
|
||||
public int cost; // The base cost, set this to change it if output != null
|
||||
public int materialCost; // The number of items from the right slot to be consumed during the repair. Leave as 0 to consume the entire stack.
|
||||
|
||||
public AnvilUpdateEvent(ItemStack left, ItemStack right, String name, int cost)
|
||||
{
|
||||
@@ -26,5 +27,6 @@ public class AnvilUpdateEvent extends Event
|
||||
this.right = right;
|
||||
this.name = name;
|
||||
this.cost = cost;
|
||||
this.materialCost = 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user