Interface Holder<T>

Type Parameters:
T - the type of the registry entry
All Known Subinterfaces:
Attribute, BannerPattern, Block, BlockSoundType, ChatType, DataComponent<T>, EntityType, FeatureFlag, Fluid, GameEvent, Holder.Direct<T>, Instrument, JukeboxSong, Material, PaintingVariant, Particle, PotionEffect, PotionType, RegistryKey<T>, StaticProtocolObject<T>, StatisticType, TrimMaterial, TrimPattern, VillagerProfession
All Known Implementing Classes:
ArgumentParserType, BlockSoundImpl, InstrumentImpl, 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 sealed interface Holder<T> permits RegistryKey<T>, Holder.Direct<T>

Represents either a reference to a registry entry RegistryKey or a direct registry value.

Whether registry values implement this type depends on client support for direct values.