blob: b49114e610c783935baa95dfa6c490b92683de33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package gtPlusPlus.api.objects.minecraft;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
public class GenericStack {
private ItemStack mItemStack;
private FluidStack mFluidStack;
public GenericStack(ItemStack s) {
this.mItemStack = s;
this.mFluidStack = null;
}
public GenericStack(FluidStack f) {
this.mItemStack = null;
this.mFluidStack = f;
}
public GenericStack() {
this.mItemStack = null;
this.mFluidStack = null;
}
public final synchronized FluidStack getFluidStack() {
return mFluidStack;
}
public final synchronized ItemStack getItemStack() {
return mItemStack;
}
public final synchronized void setItemStack(ItemStack mItemStack) {
this.mItemStack = mItemStack;
}
public final synchronized void setFluidStack(FluidStack mFluidStack) {
this.mFluidStack = mFluidStack;
}
}
|