Class DataComponentHashers

java.lang.Object
org.geysermc.geyser.item.hashing.DataComponentHashers

public class DataComponentHashers extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Set<org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<?>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    static <T> com.google.common.hash.HashCode
    hash(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.HashedStack
    hashStack(GeyserSession session, org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)