public final class ConstructEvent extends Event
IApiHandler.construct(AbstractPlayerEntity, IInventory, IInventory, PlayerCompendiumRecipe, TileEntity, int, List, float). Cancelling the event will
cause the construction not to take place.| Modifier and Type | Field and Description |
|---|---|
int |
amount |
java.util.List<ItemInstance> |
availableInputs |
boolean |
hasEnoughItems |
IInventory |
inputInventory |
TileEntity |
machine |
IInventory |
outputInventory |
AbstractPlayerEntity |
player |
PlayerCompendiumRecipe |
recipe |
float |
skillReward |
| Constructor and Description |
|---|
ConstructEvent(AbstractPlayerEntity player,
IInventory inputInventory,
IInventory outputInventory,
PlayerCompendiumRecipe recipe,
TileEntity machine,
int amount,
java.util.List<ItemInstance> availableInputs,
float skillReward,
boolean hasEnoughItems) |
public final AbstractPlayerEntity player
public IInventory inputInventory
public IInventory outputInventory
public PlayerCompendiumRecipe recipe
public TileEntity machine
public int amount
public java.util.List<ItemInstance> availableInputs
public float skillReward
public final boolean hasEnoughItems
public ConstructEvent(AbstractPlayerEntity player, IInventory inputInventory, IInventory outputInventory, PlayerCompendiumRecipe recipe, TileEntity machine, int amount, java.util.List<ItemInstance> availableInputs, float skillReward, boolean hasEnoughItems)