Class RegistryEntryData<T>

java.lang.Object
org.geysermc.geyser.registry.java.RegistryEntryData<T>
Type Parameters:
T - the type of the registry

public final class RegistryEntryData<T> extends Object
An entry in a JavaRegistry. This class groups a network ID, a Key, and a RegistryEntryData together.

The entry may not be bound when the JavaRegistry is not bound. Trying to access unbound entries will result in an IllegalStateException.

See Also:
  • Constructor Details

    • RegistryEntryData

      public RegistryEntryData(int id, net.kyori.adventure.key.Key key)
  • Method Details

    • data

      public T data()
    • isBound

      public boolean isBound()
      Returns:
      true if this entry is bound
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • id

      public int id()
    • key

      public net.kyori.adventure.key.Key key()