mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 16:12:18 -07:00
Update to Minecraft 1.13-pre7
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
+import org.bukkit.craftbukkit.inventory.CraftInventoryView;
|
||||
+// CraftBukkit end
|
||||
+
|
||||
public class ContainerWorkbench extends Container {
|
||||
public class ContainerWorkbench extends ContainerRecipeBook {
|
||||
|
||||
- public InventoryCrafting craftInventory = new InventoryCrafting(this, 3, 3);
|
||||
- public InventoryCraftResult resultInventory = new InventoryCraftResult();
|
||||
@@ -32,7 +32,7 @@
|
||||
this.g = world;
|
||||
this.h = blockposition;
|
||||
this.i = playerinventory.player;
|
||||
@@ -47,6 +62,7 @@
|
||||
@@ -60,6 +75,7 @@
|
||||
}
|
||||
|
||||
public boolean canUse(EntityHuman entityhuman) {
|
||||
@@ -40,9 +40,9 @@
|
||||
return this.g.getType(this.h).getBlock() != Blocks.CRAFTING_TABLE ? false : entityhuman.d((double) this.h.getX() + 0.5D, (double) this.h.getY() + 0.5D, (double) this.h.getZ() + 0.5D) <= 64.0D;
|
||||
}
|
||||
|
||||
@@ -100,4 +116,17 @@
|
||||
public boolean a(ItemStack itemstack, Slot slot) {
|
||||
return slot.inventory != this.resultInventory && super.a(itemstack, slot);
|
||||
@@ -125,4 +141,17 @@
|
||||
public int g() {
|
||||
return this.craftInventory.n();
|
||||
}
|
||||
+
|
||||
+ // CraftBukkit start
|
||||
|
Reference in New Issue
Block a user