Interface Registry.Entry

All Superinterfaces:
Keyed
All Known Subinterfaces:
Block.Entity<B>, BlockState, DataComponentType<T>
All Known Implementing Classes:
Attribute, Biome, DamageType, Dimension, Enchantment, Material, MobEffectType, PotionType
Enclosing interface:
Registry<E extends Registry.Entry>

public static interface Registry.Entry extends Keyed
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the entry as a CompoundBinaryTag.
    int
    id()
    Gets the id of the entry
    default @NotNull String
    Gets the name of the entry.

    Methods inherited from interface net.kyori.adventure.key.Keyed

    key
  • Method Details

    • name

      @NotNull default @NotNull String name()
      Gets the name of the entry.
      Returns:
      the name of the entry
      Since:
      1.0.0
    • id

      int id()
      Gets the id of the entry
      Returns:
      the id of the entry
      Since:
      1.0.0
    • asNBT

      @NotNull @NotNull CompoundBinaryTag asNBT()
      Gets the entry as a CompoundBinaryTag.
      Returns:
      the entry as a CompoundBinaryTag
      Since:
      1.0.0