Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/src/main/java/net/minecraft/server/Slot.java

51 Zeilen
969 B
Java

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) {
2011-01-29 22:50:29 +01:00
this.b = iinventory;
this.a = i;
this.d = j;
this.e = k;
}
public void b() {
2011-01-29 22:50:29 +01:00
this.d();
}
public boolean a(ItemStack itemstack) {
return true;
}
public ItemStack c() {
2011-01-29 22:50:29 +01:00
return this.b.a(this.a);
}
public void b(ItemStack itemstack) {
2011-01-29 22:50:29 +01:00
this.b.a(this.a, itemstack);
this.d();
}
public void d() {
2011-01-29 22:50:29 +01:00
this.b.d();
}
public int a() {
2011-01-29 22:50:29 +01:00
return this.b.c();
}
public ItemStack a(int i) {
2011-01-29 22:50:29 +01:00
return this.b.b(this.a, i);
}
public boolean a(IInventory iinventory, int i) {
2011-01-29 22:50:29 +01:00
return iinventory == this.b && i == this.a;
}
}