Java Code Examples for cn.nukkit.blockentity.BlockEntityBrewingStand#getInventory()
The following examples show how to use
cn.nukkit.blockentity.BlockEntityBrewingStand#getInventory() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BrewEvent.java From Nukkit with GNU General Public License v3.0 | 5 votes |
public BrewEvent(BlockEntityBrewingStand blockEntity) { super(blockEntity.getInventory()); this.brewingStand = blockEntity; this.fuel = blockEntity.fuelAmount; this.ingredient = blockEntity.getInventory().getIngredient(); this.potions = new Item[3]; for (int i = 0; i < 3; i++) { this.potions[i] = blockEntity.getInventory().getItem(i); } }
Example 2
Source File: StartBrewEvent.java From Nukkit with GNU General Public License v3.0 | 5 votes |
public StartBrewEvent(BlockEntityBrewingStand blockEntity) { super(blockEntity.getInventory()); this.brewingStand = blockEntity; this.ingredient = blockEntity.getInventory().getIngredient(); this.potions = new Item[3]; for (int i = 0; i < 3; i++) { this.potions[i] = blockEntity.getInventory().getItem(i); } }
Example 3
Source File: BrewEvent.java From Nukkit with GNU General Public License v3.0 | 5 votes |
public BrewEvent(BlockEntityBrewingStand blockEntity) { super(blockEntity.getInventory()); this.brewingStand = blockEntity; this.fuel = blockEntity.fuelAmount; this.ingredient = blockEntity.getInventory().getIngredient(); this.potions = new Item[3]; for (int i = 0; i < 3; i++) { this.potions[i] = blockEntity.getInventory().getItem(i); } }
Example 4
Source File: StartBrewEvent.java From Nukkit with GNU General Public License v3.0 | 5 votes |
public StartBrewEvent(BlockEntityBrewingStand blockEntity) { super(blockEntity.getInventory()); this.brewingStand = blockEntity; this.ingredient = blockEntity.getInventory().getIngredient(); this.potions = new Item[3]; for (int i = 0; i < 3; i++) { this.potions[i] = blockEntity.getInventory().getItem(i); } }