@@ -9,7 +9,7 @@
|
||||
+import org.bukkit.craftbukkit.inventory.CraftInventoryView;
|
||||
+// CraftBukkit end
|
||||
+
|
||||
public abstract class ContainerFurnace extends ContainerRecipeBook<IInventory> {
|
||||
public abstract class ContainerFurnace extends ContainerRecipeBook<SingleRecipeInput, RecipeCooking> {
|
||||
|
||||
public static final int INGREDIENT_SLOT = 0;
|
||||
@@ -31,6 +36,22 @@
|
||||
@@ -51,12 +51,3 @@
|
||||
return this.container.stillValid(entityhuman);
|
||||
}
|
||||
|
||||
@@ -159,7 +182,7 @@
|
||||
}
|
||||
|
||||
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 isFuel(ItemStack itemstack) {
|
||||
|
||||
Reference in New Issue
Block a user