Interface StaticProtocolObject<T>

Type Parameters:
T - the registry value type
All Superinterfaces:
Holder<T>, Keyed, RegistryKey<T>
All Known Subinterfaces:
Attribute, Block, BlockEntityType, BlockSoundType, DataComponent<T>, DebugSubscription<T>, EntityType, FeatureFlag, Fluid, GameEvent, GameRule<T>, Material, Particle, PotionEffect, PotionType, StatisticType, VillagerProfession
All Known Implementing Classes:
ArgumentParserType, BuiltinSoundEvent, DebugSubscriptionImpl, Particle.Block, Particle.BlockCrumble, Particle.BlockMarker, Particle.DragonBreath, Particle.Dust, Particle.DustColorTransition, Particle.DustPillar, Particle.Effect, Particle.EntityEffect, Particle.FallingDust, Particle.Flash, Particle.Geyser, Particle.GeyserBase, Particle.GeyserPlume, Particle.GeyserPoof, Particle.InstantEffect, Particle.Item, Particle.SculkCharge, Particle.Shriek, Particle.Simple, Particle.TintedLeaves, Particle.Trail, Particle.Vibration, RecipeBookCategory, RecipeDisplayType, RecipeType, SlotDisplayType, VillagerProfessionImpl, VillagerType

@NonExtendable public interface StaticProtocolObject<T> extends RegistryKey<T>
Represents a value from a static protocol registry.

Warning: This interface will no longer extend RegistryKey in a future release. Use registryKey() when a registry key is required.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface Holder

    Holder.Direct<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    id()
     
    key()
     
    default String
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    registry values are exposed directly by each protocol object
    default RegistryKey<T>
    Returns the typed registry key for this value.

    Methods inherited from interface Holder

    asKey, asValue, isDirect, resolve, unwrap