Interface RegistryKey<T>
- Type Parameters:
T- the type of the registry entry
- All Known Subinterfaces:
Attribute, Block, BlockEntityType, BlockSoundType, DataComponent<T>, DebugSubscription<T>, EntityType, FeatureFlag, Fluid, GameEvent, Material, Particle, PotionEffect, PotionType, StaticProtocolObject<T>, StatisticType, VillagerProfession
- All Known Implementing Classes:
ArgumentParserType, BlockEntityTypeImpl, 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.InstantEffect, Particle.Item, Particle.SculkCharge, Particle.Shriek, Particle.Simple, Particle.TintedLeaves, Particle.Trail, Particle.Vibration, RecipeBookCategory, RecipeDisplayType, RecipeType, SlotDisplayType, VillagerProfessionImpl, VillagerType
Represents a reference to a
Registry entry.-
Nested Class Summary
Nested classes/interfaces inherited from interface Holder
Holder.Direct<T> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Codec<RegistryKey<T>> codec(Registries.Selector<T> selector) default Stringname()static <T> NetworkBuffer.Type<RegistryKey<T>> networkType(Registries.Selector<T> selector) static <T> Codec<RegistryKey<T>> static <T> NetworkBuffer.Type<RegistryKey<T>> static <T> RegistryKey<T> Creates a newRegistryKeyfrom the given raw string.static <T> RegistryKey<T> Creates a newRegistryKeyfrom the given raw string.
-
Method Details
-
networkType
-
codec
-
uncheckedNetworkType
-
uncheckedCodec
-
unsafeOf
Creates a newRegistryKeyfrom the given raw string. Should not be used externally. Registry keys are returned fromDynamicRegistry.register(Key, Object). -
unsafeOf
Creates a newRegistryKeyfrom the given raw string. Should not be used externally. Registry keys are returned fromDynamicRegistry.register(Key, Object). -
name
-