Class ConstructEvent
java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.ConstructEvent
This event is fired when construction takes place in
IApiHandler.construct(AbstractPlayerEntity, IInventory, IInventory, PlayerCompendiumRecipe, TileEntity, int, List, float). Cancelling the event will
cause the construction not to take place.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructEvent(AbstractPlayerEntity player, IInventory inputInventory, IInventory outputInventory, PlayerCompendiumRecipe recipe, TileEntity machine, int amount, List<ItemInstance> availableInputs, float skillReward, boolean hasEnoughItems) -
Method Summary
-
Field Details
-
player
-
inputInventory
-
outputInventory
-
recipe
-
machine
-
amount
public int amount -
availableInputs
-
skillReward
public float skillReward -
hasEnoughItems
public final boolean hasEnoughItems
-
-
Constructor Details
-
ConstructEvent
public ConstructEvent(AbstractPlayerEntity player, IInventory inputInventory, IInventory outputInventory, PlayerCompendiumRecipe recipe, TileEntity machine, int amount, List<ItemInstance> availableInputs, float skillReward, boolean hasEnoughItems)
-