Interface ItemStack.Hash
- Enclosing interface:
ItemStack
public static sealed interface ItemStack.Hash
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ItemStack.Hashstatic final NetworkBuffer.Type<ItemStack.Hash> -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemStack.HashDeprecated.static ItemStack.Hashof(ItemStack itemStack, Registries registries) Creates a hash of anItemStackusing the passed registries.
-
Field Details
-
AIR
-
NETWORK_TYPE
-
-
Method Details
-
of
Deprecated.Useof(ItemStack, Registries)instead.Creates a hash of anItemStackusing the server registries. Used in packets to identify the item.- Parameters:
itemStack- The item stack to hash- Returns:
- the
ItemStack.Hash
-
of
Creates a hash of anItemStackusing the passed registries. Used in packets to identify the item.- Parameters:
itemStack- The item stack to hashregistries- The registries to use- Returns:
- the
ItemStack.Hash
-
of(ItemStack, Registries)instead.