public class AnvilUpdateEvent extends Event
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private int |
cost |
private ItemStack |
left |
private int |
materialCost |
private java.lang.String |
name |
private ItemStack |
output |
private ItemStack |
right |
Constructor and Description |
---|
AnvilUpdateEvent(ItemStack left,
ItemStack right,
java.lang.String name,
int cost) |
Modifier and Type | Method and Description |
---|---|
int |
getCost() |
ItemStack |
getLeft() |
int |
getMaterialCost() |
java.lang.String |
getName() |
ItemStack |
getOutput() |
ItemStack |
getRight() |
void |
setCost(int cost) |
void |
setMaterialCost(int materialCost) |
void |
setOutput(ItemStack output) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
@Nonnull private final ItemStack left
@Nonnull private final ItemStack right
private final java.lang.String name
@Nonnull private ItemStack output
private int cost
private int materialCost
@Nonnull public ItemStack getLeft()
@Nonnull public ItemStack getRight()
public java.lang.String getName()
@Nonnull public ItemStack getOutput()
public void setOutput(@Nonnull ItemStack output)
public int getCost()
public void setCost(int cost)
public int getMaterialCost()
public void setMaterialCost(int materialCost)