Interface Registered

All Known Subinterfaces:
Colored, Colored, Custom, Custom, Registered.All, Registered.Client, Registered.Common, Registered.Generated, Registered.Server, Sprayed
All Known Implementing Classes:
ArmorMap, AstralAction, AstralActionFactory, AstralActions, AstralArmorItem, AstralBlock, AstralBlockItem, AstralBlocks, AstralCondition, AstralConditionFactory, AstralConditions, AstralCycledItemGroup, AstralData, AstralDataLoaders, AstralGamerules, AstralItem, AstralItemGroup, AstralItemGroups, AstralItems, AstralJsonDataLoader, AstralMetaAction, AstralMetaCondition, AstralPotion, AstralPotionItem, AstralPotions, AstralPowerFactory, AstralPowers, AstralSlabBlock, AstralSoundEvent, AstralSoundEvents, AstralStairsBlock, AstralStatusEffect, AstralStatusEffects, AstralTrinketPredicate, AstralTrinketPredicates, AstralWallBlock, BottleItem, BowlItem, ChocolateMilkItem, CloudyArmorItem, CloudyItem, CobbledSandstoneBlock, ContentRegistrar, CurrencyLoader, CustomContent, DistanceCondition, DyeableCloudyArmorItem, DyedAmethystBlock, DyedAmethystClusterBlock, DyedAmethystShardItem, DyedBuddingAmethystBlock, DyeMap, LogSlabBlock, MirrorItem, MoonPhaseCondition, PlaceholderItem, PlaceholderMimicItem, PlaceholderMimicItem.Group, RandomEffectItem, RandomizerBlock, RegisteredMap, RepeatAction, SmoothStoneStairsBlock, SprayBottleItem, SprayPotionItem, UnobstructedBlockInRadiusCondition

public interface Registered
Provides a set of interfaces that enable the automatic registration system.

Usually, you do not want to implement Registered directly. In most cases you will want one of its provided sub-interfaces.

Since:
1.0.0
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represents a type that is registered in all possible mod environments.
    static interface 
    Represents a type that should be registered on the client, but not the server environment.
    static interface 
    Represents a type that should be registered on both the client and server environments.
    static interface 
    Represents a type that generates assets or data.
    static interface 
    Represents a type that should be registered on the server, but not the client environment (unless playing in single-player).
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.util.Identifier
    Returns this value's associated registry identifier.
    Returns this value's associated registry identifier path.
  • Method Details

    • getRegistryPath

      String getRegistryPath()
      Returns this value's associated registry identifier path.

      This is by default used to determine the Identifier provided by getRegistryId(). For example, returning "my_item" will cause the associated identifier to be astral:my_item.

      Returns:
      An identifier path.
      Since:
      1.7.0
    • getRegistryId

      default net.minecraft.util.Identifier getRegistryId()
      Returns this value's associated registry identifier.

      This is used to uniquely distinguish this instance from other equally-typed instances.

      Returns:
      A new identifier.
      Since:
      1.7.0