Interface StaticProtocolObject<T>

All Superinterfaces:
Holder<T>, net.kyori.adventure.key.Keyed, RegistryKey<T>
All Known Subinterfaces:
Attribute, Block, BlockSoundType, DataComponent<T>, EntityType, FeatureFlag, Fluid, GameEvent, Material, Particle, PotionEffect, PotionType, StatisticType, VillagerProfession
All Known Implementing Classes:
ArgumentParserType, BlockSoundImpl, Particle.Block, Particle.BlockCrumble, Particle.BlockMarker, Particle.Dust, Particle.DustColorTransition, Particle.DustPillar, Particle.EntityEffect, Particle.FallingDust, Particle.Item, Particle.SculkCharge, Particle.Shriek, Particle.Simple, Particle.TintedLeaves, Particle.Trail, Particle.Vibration, RecipeBookCategory, RecipeDisplayType, RecipeType, SlotDisplayType, VillagerProfessionImpl, VillagerType

public interface StaticProtocolObject<T> extends RegistryKey<T>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minestom.server.registry.Holder

    Holder.Direct<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    id()
     
    @NotNull net.kyori.adventure.key.Key
    key()
     
    default @NotNull String
     
    default @Nullable Object
     

    Methods inherited from interface net.minestom.server.registry.Holder

    asKey, asValue, isDirect, resolve, unwrap
  • Method Details

    • name

      @Contract(pure=true) @NotNull default @NotNull String name()
      Specified by:
      name in interface RegistryKey<T>
    • key

      @Contract(pure=true) @NotNull @NotNull net.kyori.adventure.key.Key key()
      Specified by:
      key in interface net.kyori.adventure.key.Keyed
    • id

      @Contract(pure=true) int id()
    • registry

      @Nullable default @Nullable Object registry()