diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-14 19:44:11 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-14 19:44:11 +0000 |
commit | 202e44ab1a0b8365d4580183eef8fa0c336f5db1 (patch) | |
tree | 156228a74e72f61091113e4122044c577234b75b /src/main/java/net/minecraft/server/Slot.java | |
parent | fe4d5db0e0382faa10e95abb0c4d47a0823deefe (diff) | |
download | craftbukkit-202e44ab1a0b8365d4580183eef8fa0c336f5db1.tar craftbukkit-202e44ab1a0b8365d4580183eef8fa0c336f5db1.tar.gz craftbukkit-202e44ab1a0b8365d4580183eef8fa0c336f5db1.tar.lz craftbukkit-202e44ab1a0b8365d4580183eef8fa0c336f5db1.tar.xz craftbukkit-202e44ab1a0b8365d4580183eef8fa0c336f5db1.zip |
Fixed blocks not keeping data on placement
Diffstat (limited to 'src/main/java/net/minecraft/server/Slot.java')
-rw-r--r-- | src/main/java/net/minecraft/server/Slot.java | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/src/main/java/net/minecraft/server/Slot.java b/src/main/java/net/minecraft/server/Slot.java index 6827e9fd..738402e6 100644 --- a/src/main/java/net/minecraft/server/Slot.java +++ b/src/main/java/net/minecraft/server/Slot.java @@ -1,50 +1,50 @@ -package net.minecraft.server;
-
-public class Slot {
-
- public final int a; // CraftBukkit: private -> public
- public final IInventory b; // CraftBukkit: private -> public
- public int c;
- public int d;
- public int e;
-
- public Slot(IInventory iinventory, int i, int j, int k) {
- b = iinventory;
- a = i;
- d = j;
- e = k;
- }
-
- public void b() {
- d();
- }
-
- public boolean a(ItemStack itemstack) {
- return true;
- }
-
- public ItemStack c() {
- return b.a(a);
- }
-
- public void b(ItemStack itemstack) {
- b.a(a, itemstack);
- d();
- }
-
- public void d() {
- b.d();
- }
-
- public int a() {
- return b.c();
- }
-
- public ItemStack a(int i) {
- return b.b(a, i);
- }
-
- public boolean a(IInventory iinventory, int i) {
- return iinventory == b && i == a;
- }
-}
+package net.minecraft.server; + +public class Slot { + + public final int a; // CraftBukkit: private -> public + public final IInventory b; // CraftBukkit: private -> public + public int c; + public int d; + public int e; + + public Slot(IInventory iinventory, int i, int j, int k) { + b = iinventory; + a = i; + d = j; + e = k; + } + + public void b() { + d(); + } + + public boolean a(ItemStack itemstack) { + return true; + } + + public ItemStack c() { + return b.a(a); + } + + public void b(ItemStack itemstack) { + b.a(a, itemstack); + d(); + } + + public void d() { + b.d(); + } + + public int a() { + return b.c(); + } + + public ItemStack a(int i) { + return b.b(a, i); + } + + public boolean a(IInventory iinventory, int i) { + return iinventory == b && i == a; + } +} |