@@ -36,9 +36,9 @@
|
||||
this(containers, recipes, recipebooktype, i, playerinventory, new InventorySubcontainer(3), new ContainerProperties(4));
|
||||
}
|
||||
@@ -45,6 +66,7 @@
|
||||
this.a(new Slot(iinventory, 0, 56, 17));
|
||||
this.a((Slot) (new SlotFurnaceFuel(this, iinventory, 1, 56, 53)));
|
||||
this.a((Slot) (new SlotFurnaceResult(playerinventory.player, iinventory, 2, 116, 35)));
|
||||
this.addSlot(new Slot(iinventory, 0, 56, 17));
|
||||
this.addSlot(new SlotFurnaceFuel(this, iinventory, 1, 56, 53));
|
||||
this.addSlot(new SlotFurnaceResult(playerinventory.player, iinventory, 2, 116, 35));
|
||||
+ this.player = playerinventory; // CraftBukkit - save player
|
||||
|
||||
int j;
|
||||
@@ -46,17 +46,17 @@
|
||||
@@ -102,6 +124,7 @@
|
||||
|
||||
@Override
|
||||
public boolean canUse(EntityHuman entityhuman) {
|
||||
public boolean stillValid(EntityHuman entityhuman) {
|
||||
+ if (!this.checkReachable) return true; // CraftBukkit
|
||||
return this.container.a(entityhuman);
|
||||
return this.container.stillValid(entityhuman);
|
||||
}
|
||||
|
||||
@@ -157,7 +180,7 @@
|
||||
}
|
||||
|
||||
protected boolean c(ItemStack itemstack) {
|
||||
- return this.level.getCraftingManager().craft(this.recipeType, new InventorySubcontainer(new ItemStack[]{itemstack}), this.level).isPresent();
|
||||
+ return this.level.getCraftingManager().craft((Recipes<RecipeCooking>) this.recipeType, new InventorySubcontainer(new ItemStack[]{itemstack}), this.level).isPresent(); // Eclipse fail
|
||||
protected boolean canSmelt(ItemStack itemstack) {
|
||||
- return this.level.getRecipeManager().getRecipeFor(this.recipeType, new InventorySubcontainer(new ItemStack[]{itemstack}), this.level).isPresent();
|
||||
+ return this.level.getRecipeManager().getRecipeFor((Recipes<RecipeCooking>) this.recipeType, new InventorySubcontainer(new ItemStack[]{itemstack}), this.level).isPresent(); // Eclipse fail
|
||||
}
|
||||
|
||||
protected boolean d(ItemStack itemstack) {
|
||||
protected boolean isFuel(ItemStack itemstack) {
|
||||
|
||||
Reference in New Issue
Block a user