Package api.item.tag
Interface TagOrStack
- All Known Implementing Classes:
ItemStack,TagInstance
@NonExtendable
public interface TagOrStack
-
Method Summary
Modifier and TypeMethodDescriptioncopy()intbooleanisEqual(TagOrStack tagOrStack, boolean checkIfWildcard) booleanmatches(TagOrStack inputToCheck, boolean checkIfWildcard) setStackSize(int newStackSize)
-
Method Details
-
copy
TagOrStack copy()- Returns:
- A new instance of this
-
isEqual
- Parameters:
tagOrStack- Tag or stack to check against this tag or stackcheckIfWildcard- If
-
matches
-
getStackSize
int getStackSize() -
setStackSize
- Returns:
- This instance if it is an itemstack, or a new instance if it is a tag.
-
getItemIds
- Returns:
- Map with key as id, value as a pair with the stack size as left and meta as right
-