diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-01-29 22:50:29 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-01-30 13:24:39 +0100 |
commit | df69047324abc54f5d5b8d069bb69b1061b20cce (patch) | |
tree | 76f8d13addf80730deea9285f4bd9a1ffbe45f80 /src/main/java/net/minecraft/server/InventoryCraftResult.java | |
parent | d0cd8c6cc7d1aaf38934996e7e5d3e03272e4ff1 (diff) | |
download | craftbukkit-df69047324abc54f5d5b8d069bb69b1061b20cce.tar craftbukkit-df69047324abc54f5d5b8d069bb69b1061b20cce.tar.gz craftbukkit-df69047324abc54f5d5b8d069bb69b1061b20cce.tar.lz craftbukkit-df69047324abc54f5d5b8d069bb69b1061b20cce.tar.xz craftbukkit-df69047324abc54f5d5b8d069bb69b1061b20cce.zip |
Port to new mc-dev format.
Diffstat (limited to 'src/main/java/net/minecraft/server/InventoryCraftResult.java')
-rw-r--r-- | src/main/java/net/minecraft/server/InventoryCraftResult.java | 104 |
1 files changed, 51 insertions, 53 deletions
diff --git a/src/main/java/net/minecraft/server/InventoryCraftResult.java b/src/main/java/net/minecraft/server/InventoryCraftResult.java index 208c1a4c..12a06285 100644 --- a/src/main/java/net/minecraft/server/InventoryCraftResult.java +++ b/src/main/java/net/minecraft/server/InventoryCraftResult.java @@ -1,53 +1,51 @@ -package net.minecraft.server;
-
-public class InventoryCraftResult implements IInventory {
-
- private ItemStack a[];
-
- // CraftBukkit start
- public ItemStack[] getContents() {
- return a;
- }
- // CraftBukkit end
-
- public InventoryCraftResult() {
- a = new ItemStack[1];
- }
-
- public int h_() {
- return 1;
- }
-
- public ItemStack a(int i) {
- return a[i];
- }
-
- public String b() {
- return "Result";
- }
-
- public ItemStack b(int i, int j) {
- if (a[i] != null) {
- ItemStack itemstack = a[i];
-
- a[i] = null;
- return itemstack;
- } else {
- return null;
- }
- }
-
- public void a(int i, ItemStack itemstack) {
- a[i] = itemstack;
- }
-
- public int c() {
- return 64;
- }
-
- public void d() {}
-
- public boolean a_(EntityPlayer entityplayer) {
- return true;
- }
-}
+package net.minecraft.server; + +public class InventoryCraftResult implements IInventory { + + private ItemStack[] a = new ItemStack[1]; + + // CraftBukkit start + public ItemStack[] getContents() { + return a; + } + // CraftBukkit end + + public InventoryCraftResult() {} + + public int h_() { + return 1; + } + + public ItemStack a(int i) { + return this.a[i]; + } + + public String b() { + return "Result"; + } + + public ItemStack b(int i, int j) { + if (this.a[i] != null) { + ItemStack itemstack = this.a[i]; + + this.a[i] = null; + return itemstack; + } else { + return null; + } + } + + public void a(int i, ItemStack itemstack) { + this.a[i] = itemstack; + } + + public int c() { + return 64; + } + + public void d() {} + + public boolean a_(EntityHuman entityhuman) { + return true; + } +} |