mirror of
https://github.com/PaperMC/Paper.git
synced 2024-10-29 23:09:33 +01:00
56 lines
1.0 KiB
Java
56 lines
1.0 KiB
Java
package net.minecraft.server;
|
|
|
|
public class InventoryCraftResult implements IInventory {
|
|
|
|
private ItemStack[] items = new ItemStack[1];
|
|
|
|
// CraftBukkit start
|
|
public ItemStack[] getContents() {
|
|
return this.items;
|
|
}
|
|
// CraftBukkit end
|
|
|
|
public InventoryCraftResult() {}
|
|
|
|
public int getSize() {
|
|
return 1;
|
|
}
|
|
|
|
public ItemStack getItem(int i) {
|
|
return this.items[i];
|
|
}
|
|
|
|
public String getName() {
|
|
return "Result";
|
|
}
|
|
|
|
public ItemStack splitStack(int i, int j) {
|
|
if (this.items[i] != null) {
|
|
ItemStack itemstack = this.items[i];
|
|
|
|
this.items[i] = null;
|
|
return itemstack;
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public void setItem(int i, ItemStack itemstack) {
|
|
this.items[i] = itemstack;
|
|
}
|
|
|
|
public int getMaxStackSize() {
|
|
return 64;
|
|
}
|
|
|
|
public void update() {}
|
|
|
|
public boolean a(EntityHuman entityhuman) {
|
|
return true;
|
|
}
|
|
|
|
public void e() {}
|
|
|
|
public void t_() {}
|
|
}
|