@@ -1,19 +1,20 @@
|
||||
--- a/net/minecraft/world/inventory/ContainerFurnace.java
|
||||
+++ b/net/minecraft/world/inventory/ContainerFurnace.java
|
||||
@@ -14,6 +14,11 @@
|
||||
@@ -18,6 +18,12 @@
|
||||
import net.minecraft.world.item.crafting.SingleRecipeInput;
|
||||
import net.minecraft.world.level.World;
|
||||
import net.minecraft.world.level.block.entity.TileEntityFurnace;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import net.minecraft.world.level.block.entity.TileEntityFurnace;
|
||||
+import org.bukkit.craftbukkit.inventory.CraftInventoryFurnace;
|
||||
+import org.bukkit.craftbukkit.inventory.view.CraftFurnaceView;
|
||||
+// CraftBukkit end
|
||||
+
|
||||
public abstract class ContainerFurnace extends ContainerRecipeBook<SingleRecipeInput, RecipeCooking> {
|
||||
public abstract class ContainerFurnace extends ContainerRecipeBook {
|
||||
|
||||
public static final int INGREDIENT_SLOT = 0;
|
||||
@@ -31,6 +36,22 @@
|
||||
private final Recipes<? extends RecipeCooking> recipeType;
|
||||
@@ -36,6 +42,22 @@
|
||||
private final RecipePropertySet acceptedInputs;
|
||||
private final RecipeBookType recipeBookType;
|
||||
|
||||
+ // CraftBukkit start
|
||||
@@ -32,18 +33,18 @@
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
protected ContainerFurnace(Containers<?> containers, Recipes<? extends RecipeCooking> recipes, RecipeBookType recipebooktype, int i, PlayerInventory playerinventory) {
|
||||
this(containers, recipes, recipebooktype, i, playerinventory, new InventorySubcontainer(3), new ContainerProperties(4));
|
||||
protected ContainerFurnace(Containers<?> containers, Recipes<? extends RecipeCooking> recipes, ResourceKey<RecipePropertySet> resourcekey, RecipeBookType recipebooktype, int i, PlayerInventory playerinventory) {
|
||||
this(containers, recipes, resourcekey, recipebooktype, i, playerinventory, new InventorySubcontainer(3), new ContainerProperties(4));
|
||||
}
|
||||
@@ -47,6 +68,7 @@
|
||||
@@ -53,6 +75,7 @@
|
||||
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;
|
||||
|
||||
@@ -104,6 +126,7 @@
|
||||
this.addStandardInventorySlots(playerinventory, 8, 84);
|
||||
this.addDataSlots(icontainerproperties);
|
||||
}
|
||||
@@ -71,6 +94,7 @@
|
||||
|
||||
@Override
|
||||
public boolean stillValid(EntityHuman entityhuman) {
|
||||
@@ -51,3 +52,11 @@
|
||||
return this.container.stillValid(entityhuman);
|
||||
}
|
||||
|
||||
@@ -180,6 +204,6 @@
|
||||
public boolean recipeMatches(RecipeHolder<RecipeCooking> recipeholder1) {
|
||||
return ((RecipeCooking) recipeholder1.value()).matches(new SingleRecipeInput(ContainerFurnace.this.container.getItem(0)), worldserver);
|
||||
}
|
||||
- }, 1, 1, List.of(this.getSlot(0)), list, playerinventory, recipeholder, flag, flag1);
|
||||
+ }, 1, 1, List.of(this.getSlot(0)), list, playerinventory, (RecipeHolder<RecipeCooking>) recipeholder, flag, flag1); // CraftBukkit - decompile error
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user