public abstract class ItemStackAPI<S> extends AbstractWrapped<S>
wrapped| Modifier | Constructor and Description |
|---|---|
protected |
ItemStackAPI(S stack) |
| Modifier and Type | Method and Description |
|---|---|
void |
decrement() |
abstract int |
getCount() |
abstract ItemAPI<?> |
getItem() |
CompoundTagAPI<?> |
getOrCreateTag() |
abstract CompoundTagAPI<?> |
getTag() |
void |
increment() |
abstract boolean |
isEmpty() |
boolean |
isNotEmpty() |
abstract void |
setCount(int count) |
abstract void |
setTag(CompoundTagAPI<?> tag) |
equals, getWrapped, getWrappedClass, toStringprotected ItemStackAPI(S stack)
public void decrement()
public abstract int getCount()
public abstract ItemAPI<?> getItem()
public CompoundTagAPI<?> getOrCreateTag()
@Nullable public abstract CompoundTagAPI<?> getTag()
public void increment()
public abstract boolean isEmpty()
public boolean isNotEmpty()
public abstract void setCount(int count)
public abstract void setTag(@Nullable
CompoundTagAPI<?> tag)