public abstract class Registry<T> extends java.lang.Object implements IObjectIntIterable<T>
| Constructor and Description | 
|---|
| Registry() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract boolean | containsKey(ResourceLocation name) | 
| private static <T extends IForgeRegistryEntry<T>> | forge(java.lang.String name,
     java.lang.Class<? super T> cls,
     java.util.function.Supplier<T> def) | 
| private static <T extends IForgeRegistryEntry<T>> | forgeDefaulted(java.lang.String name,
              java.lang.Class<? super T> cls,
              java.util.function.Supplier<T> def) | 
| abstract int | getId(T value) | 
| abstract ResourceLocation | getKey(T value) | 
| abstract T | getOrDefault(ResourceLocation name) | 
| abstract T | getRandom(java.util.Random random) | 
| abstract java.util.Optional<T> | getValue(ResourceLocation key) | 
| abstract java.util.Set<ResourceLocation> | keySet() | 
| static <T> T | register(Registry<? super T> p_218343_0_,
        int p_218343_1_,
        java.lang.String p_218343_2_,
        T p_218343_3_) | 
| static <T> T | register(Registry<? super T> p_218322_0_,
        ResourceLocation p_218322_1_,
        T p_218322_2_) | 
| static <T> T | register(Registry<? super T> p_218325_0_,
        java.lang.String p_218325_1_,
        T p_218325_2_) | 
| private static <T,R extends MutableRegistry<T>> | register(java.lang.String p_222939_0_,
        R p_222939_1_,
        java.util.function.Supplier<T> p_222939_2_) | 
| private static <T> DefaultedRegistry<T> | registerDefaulted(java.lang.String p_222933_0_,
                 java.lang.String p_222933_1_,
                 java.util.function.Supplier<T> p_222933_2_) | 
| private static <T> Registry<T> | registerSimple(java.lang.String p_222935_0_,
              java.util.function.Supplier<T> p_222935_1_) | 
| java.util.stream.Stream<T> | stream() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByValueprotected static final org.apache.logging.log4j.Logger LOGGER
private static final java.util.Map<ResourceLocation,java.util.function.Supplier<?>> LOCATION_TO_SUPPLIER
public static final MutableRegistry<MutableRegistry<?>> REGISTRY
@Deprecated public static final Registry<SoundEvent> SOUND_EVENT
@Deprecated public static final DefaultedRegistry<Fluid> FLUID
@Deprecated public static final DefaultedRegistry<Block> BLOCK
@Deprecated public static final Registry<Enchantment> ENCHANTMENT
@Deprecated public static final DefaultedRegistry<EntityType<?>> ENTITY_TYPE
@Deprecated public static final DefaultedRegistry<Item> ITEM
@Deprecated public static final DefaultedRegistry<Potion> POTION
@Deprecated public static final Registry<WorldCarver<?>> CARVER
@Deprecated public static final Registry<SurfaceBuilder<?>> SURFACE_BUILDER
@Deprecated public static final Registry<BlockStateProviderType<?>> BLOCK_STATE_PROVIDER_TYPE
@Deprecated public static final Registry<BlockPlacerType<?>> BLOCK_PLACER_TYPE
@Deprecated public static final Registry<FoliagePlacerType<?>> FOLIAGE_PLACER_TYPE
@Deprecated public static final Registry<TreeDecoratorType<?>> TREE_DECORATOR_TYPE
@Deprecated public static final Registry<ParticleType<? extends IParticleData>> PARTICLE_TYPE
@Deprecated public static final Registry<BiomeProviderType<?,?>> BIOME_SOURCE_TYPE
@Deprecated public static final Registry<TileEntityType<?>> BLOCK_ENTITY_TYPE
@Deprecated public static final Registry<ChunkGeneratorType<?,?>> CHUNK_GENERATOR_TYPE
@Deprecated public static final Registry<DimensionType> DIMENSION_TYPE
@Deprecated public static final DefaultedRegistry<PaintingType> MOTIVE
public static final Registry<ResourceLocation> CUSTOM_STAT
@Deprecated public static final DefaultedRegistry<ChunkStatus> CHUNK_STATUS
@Deprecated public static final Registry<Structure<?>> STRUCTURE_FEATURE
public static final Registry<IStructurePieceType> STRUCTURE_PIECE
public static final Registry<IRuleTestType> RULE_TEST
public static final Registry<IStructureProcessorType> STRUCTURE_PROCESSOR
public static final Registry<IJigsawDeserializer> STRUCTURE_POOL_ELEMENT
@Deprecated public static final Registry<ContainerType<?>> MENU
public static final Registry<IRecipeType<?>> RECIPE_TYPE
@Deprecated public static final Registry<IRecipeSerializer<?>> RECIPE_SERIALIZER
public static final DefaultedRegistry<IVillagerType> VILLAGER_TYPE
@Deprecated public static final DefaultedRegistry<VillagerProfession> VILLAGER_PROFESSION
@Deprecated public static final DefaultedRegistry<PointOfInterestType> POINT_OF_INTEREST_TYPE
@Deprecated public static final DefaultedRegistry<MemoryModuleType<?>> MEMORY_MODULE_TYPE
@Deprecated public static final DefaultedRegistry<SensorType<?>> SENSOR_TYPE
private static <T> Registry<T> registerSimple(java.lang.String p_222935_0_, java.util.function.Supplier<T> p_222935_1_)
private static <T> DefaultedRegistry<T> registerDefaulted(java.lang.String p_222933_0_, java.lang.String p_222933_1_, java.util.function.Supplier<T> p_222933_2_)
private static <T,R extends MutableRegistry<T>> R register(java.lang.String p_222939_0_, R p_222939_1_, java.util.function.Supplier<T> p_222939_2_)
@Nullable public abstract ResourceLocation getKey(T value)
public abstract int getId(@Nullable
                          T value)
@Nullable public abstract T getOrDefault(@Nullable ResourceLocation name)
public abstract java.util.Optional<T> getValue(@Nullable ResourceLocation key)
public abstract java.util.Set<ResourceLocation> keySet()
@Nullable public abstract T getRandom(java.util.Random random)
public java.util.stream.Stream<T> stream()
public abstract boolean containsKey(ResourceLocation name)
public static <T> T register(Registry<? super T> p_218325_0_, java.lang.String p_218325_1_, T p_218325_2_)
public static <T> T register(Registry<? super T> p_218322_0_, ResourceLocation p_218322_1_, T p_218322_2_)
public static <T> T register(Registry<? super T> p_218343_0_, int p_218343_1_, java.lang.String p_218343_2_, T p_218343_3_)
private static <T extends IForgeRegistryEntry<T>> Registry<T> forge(java.lang.String name, java.lang.Class<? super T> cls, java.util.function.Supplier<T> def)
private static <T extends IForgeRegistryEntry<T>> DefaultedRegistry<T> forgeDefaulted(java.lang.String name, java.lang.Class<? super T> cls, java.util.function.Supplier<T> def)