mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
All items compiling
This commit is contained in:
77 files changed
+409
-341
No files matched your search
@@ -76,11 +76,12 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem, IPickup
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public ActionResult<ItemStack> onItemRightClick(@Nonnull ItemStack stack, World world, EntityPlayer player, EnumHand hand) {
|
||||
public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, @Nonnull EnumHand hand) {
|
||||
player.setActiveHand(hand);
|
||||
return ActionResult.newResult(EnumActionResult.SUCCESS, stack);
|
||||
return ActionResult.newResult(EnumActionResult.SUCCESS, player.getHeldItem(hand));
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public ItemStack onItemUseFinish(@Nonnull ItemStack stack, World world, EntityLivingBase living) {
|
||||
if(!world.isRemote) {
|
||||
@@ -101,7 +102,7 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem, IPickup
|
||||
return baseItem.copy();
|
||||
else {
|
||||
ItemStack copy = stack.copy();
|
||||
copy.stackSize = 0;
|
||||
copy.setCount(0);
|
||||
return copy;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user