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
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 TypeMethodDescriptionintid()key()default Stringname()registry()Deprecated, for removal: This API element is subject to removal in a future version.registry values are exposed directly by each protocol objectdefault RegistryKey<T> Returns the typed registry key for this value.
-
Method Details
-
name
-
key
-
registryKey
Returns the typed registry key for this value.- Returns:
- the registry key
-
id
-
registry
Deprecated, for removal: This API element is subject to removal in a future version.registry values are exposed directly by each protocol objectReturns the legacy registry data backing this object.- Returns:
- the legacy registry data, or
nullwhen none is exposed
-