public interface IAEStack<StackType extends IAEStack>
Modifier and Type | Method and Description |
---|---|
void |
add(StackType is)
add two stacks together
|
StackType |
copy()
Clone the Item / Fluid Stack
|
void |
decCountRequestable(long i)
removes items from the requestable
|
void |
decStackSize(long i)
removes some from the stack size.
|
StackType |
empty()
create an empty stack.
|
boolean |
equals(java.lang.Object obj)
Compare stacks using precise logic.
|
boolean |
fuzzyComparison(java.lang.Object st,
FuzzyMode mode)
compare stacks using fuzzy logic
|
StorageChannel |
getChannel() |
long |
getCountRequestable()
Same as getStackSize, but for requestable items.
|
long |
getStackSize()
number of items in the stack.
|
IAETagCompound |
getTagCompound()
obtain the NBT Data for the item.
|
void |
incCountRequestable(long i)
adds items to the requestable
|
void |
incStackSize(long i)
Adds more to the stack size...
|
boolean |
isCraftable()
true, if the item can be crafted.
|
boolean |
isFluid() |
boolean |
isItem() |
boolean |
isMeaningful()
returns true, if the item can be crafted, requested, or extracted.
|
StackType |
reset()
clears, requestable, craftable, and stack sizes.
|
StackType |
setCountRequestable(long countRequestable)
Same as setStackSize, but for requestable items.
|
StackType |
setCraftable(boolean isCraftable)
change weather the item can be crafted.
|
StackType |
setStackSize(long stackSize)
changes the number of items in the stack.
|
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound i)
write to a NBTTagCompound.
|
void |
writeToPacket(io.netty.buffer.ByteBuf data)
Slower for disk saving, but smaller/more efficient for packets.
|
void add(StackType is)
is
- added itemlong getStackSize()
StackType setStackSize(long stackSize)
stackSize
- , ItemStack.stackSize = Nlong getCountRequestable()
StackType setCountRequestable(long countRequestable)
boolean isCraftable()
StackType setCraftable(boolean isCraftable)
isCraftable
- can item be craftedStackType reset()
boolean isMeaningful()
void incStackSize(long i)
i
- additional stack sizevoid decStackSize(long i)
void incCountRequestable(long i)
i
- increased amount of requested itemsvoid decCountRequestable(long i)
i
- decreased amount of requested itemsvoid writeToNBT(net.minecraft.nbt.NBTTagCompound i)
i
- to be written databoolean equals(java.lang.Object obj)
a IAEItemStack to another AEItemStack or a ItemStack.
or
IAEFluidStack, FluidStack
equals
in class java.lang.Object
obj
- compared objectboolean fuzzyComparison(java.lang.Object st, FuzzyMode mode)
a IAEItemStack to another AEItemStack or a ItemStack.
st
- stacksmode
- used fuzzy modevoid writeToPacket(io.netty.buffer.ByteBuf data) throws java.io.IOException
data
- to be written datajava.io.IOException
StackType copy()
StackType empty()
IAETagCompound getTagCompound()
boolean isItem()
IAEItemStack
boolean isFluid()
IAEFluidStack
StorageChannel getChannel()