Package org.spongepowered.api.registry
Interface DefaultedRegistryValue
-
- All Known Subinterfaces:
AccountDeletionResultType,AdvancementType,ArmorMaterial,ArtType,AttachmentSurface,AttributeOperation,AttributeType,BannerPatternShape,BanType,BlockEntityType,BlockType,BoatType,BodyPart,BooleanStateProperty,CatType,ChatVisibility,ChestAttachmentType,ChunkRegenerateFlag,ChunkState,ClickType<T>,ClientCompletionType,CollisionRule,CommandRegistrarType<T>,CommandTreeNodeType<T>,ComparatorMode,ContainerType,Criterion,Currency,DamageModifierType,DamageType,DataFormat,Difficulty,DismountType,DisplaySlot,DoorHinge,DragonPhaseType,DyeColor,EnchantmentType,EntityCategory,EntityType<A>,EnumStateProperty<E>,EquipmentGroup,EquipmentType,FireworkShape,FluidType,FoxType,GameMode,GameRule<V>,GoalExecutorType,GoalType,HandPreference,HandType,HeightType,HorseColor,HorseStyle,InstrumentType,IntegerStateProperty,ItemTier,ItemType,LightType,LlamaType,MapColorType,MapDecorationBannerType,MapDecorationOrientation,MapDecorationType,MapShade,MatterType,Mirror,MooshroomType,MovementType,MusicDisc,NotePitch,ObjectiveDisplayMode,Operation,Orientation,PaletteType<T,R>,PandaGene,ParrotType,ParticleOption<V>,ParticleType,PhantomPhase,PickupRule,PistonType,PlaceholderParser,PortalType,PortionType,PotionEffectType,PotionType,ProfessionType,QueryType,QueryType.NoParam,QueryType.OneParam<T>,QueryType.TwoParam<T1,T2>,RabbitType,RaidStatus,RailDirection,RangedAttributeType,RecipeType<T>,ResourceKeyedValueParameter<T>,Rotation,SelectorSortAlgorithm,SelectorType,SkinPart,SlabPortion,SpawnType,SpellType,StairShape,StringDataFormat,Structure,StructureMode,Tag<T>,Taggable<T>,TagType<T>,TaskPriority,TeleportHelperFilter,TransactionType,Trigger<C>,TropicalFishShape,ValueParameter<T>,ValueParameter.Simple<T>,VillagerType,Visibility,WeatherType,WireAttachmentType,WorldType
public interface DefaultedRegistryValueA Utility marker that assists in getting aResourceKeyfor values that generally can be within adefaulted registry.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <T> DefaultedRegistryReference<T>asDefaultedReference(DefaultedRegistryType<T> type)default <T> java.util.Optional<ResourceKey>findKey(DefaultedRegistryType<T> type)default <T> ResourceKeykey(DefaultedRegistryType<T> type)
-
-
-
Method Detail
-
key
default <T> ResourceKey key(DefaultedRegistryType<T> type)
-
findKey
default <T> java.util.Optional<ResourceKey> findKey(DefaultedRegistryType<T> type)
-
asDefaultedReference
default <T> DefaultedRegistryReference<T> asDefaultedReference(DefaultedRegistryType<T> type)
-
-