Package org.geysermc.geyser.item.hashing
Class DataComponentHashers
java.lang.Object
org.geysermc.geyser.item.hashing.DataComponentHashers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <V,T extends org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<V>>
com.google.common.hash.HashCodehash(JavaRegistryProvider registries, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponent<V, T> component) static <T> com.google.common.hash.HashCodehash(JavaRegistryProvider registries, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> component, T value) static <T> MinecraftHasher<T> hasher(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> component) static org.geysermc.mcprotocollib.protocol.data.game.item.HashedStackhashStack(GeyserSession session, org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack stack)
-
Field Details
-
NOT_HASHED
@VisibleForTesting public static final Set<org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<?>> NOT_HASHED
-
-
Constructor Details
-
DataComponentHashers
public DataComponentHashers()
-
-
Method Details
-
hasher
public static <T> MinecraftHasher<T> hasher(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> component) -
hash
public static <T> com.google.common.hash.HashCode hash(JavaRegistryProvider registries, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> component, T value) -
hash
public static <V,T extends org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<V>> com.google.common.hash.HashCode hash(JavaRegistryProvider registries, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponent<V, T> component) -
hashStack
public static org.geysermc.mcprotocollib.protocol.data.game.item.HashedStack hashStack(GeyserSession session, org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack stack)
-