-
Method Summary
Returns the rewritten item, which may or may not be the same given Item instance.
Returns the rewritten item, which may or may not be the same given Item instance.
Returns the item array type of the current protocol.
Returns the item type of the current protocol.
Returns the mapped item array type of the target protocol.
Returns the mapped item type of the target protocol.
Returns the NBT tag name used for storing original item data.
Prefixes the NBT tag name with the current protocol's
nbtTagName()
.
-
Method Details
-
handleItemToClient
Returns the rewritten item, which may or may not be the same given Item instance.
- Parameters:
connection
- user connection
item
- item
- Returns:
- rewritten item
-
handleItemToServer
Returns the rewritten item, which may or may not be the same given Item instance.
- Parameters:
connection
- user connection
item
- item
- Returns:
- rewritten item
-
itemType
Returns the item type of the current protocol.
- Returns:
- item type
-
itemArrayType
default @Nullable Type<Item[]> itemArrayType()
Returns the item array type of the current protocol.
- Returns:
- item array type
-
mappedItemType
default @Nullable Type<Item> mappedItemType()
Returns the mapped item type of the target protocol.
- Returns:
- mapped item type
-
mappedItemArrayType
default @Nullable Type<Item[]> mappedItemArrayType()
Returns the mapped item array type of the target protocol.
- Returns:
- mapped item array type
-
nbtTagName
Returns the NBT tag name used for storing original item data.
- Returns:
- NBT tag name
-
nbtTagName
Prefixes the NBT tag name with the current protocol's
nbtTagName()
.
- Parameters:
nbt
- NBT tag name
- Returns:
- prefixed NBT tag name