public abstract class Registry<T> extends java.lang.Object implements IObjectIntIterable<T>
| コンストラクタと説明 | 
|---|
| Registry() | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| abstract boolean | containsKey(ResourceLocation name) | 
| abstract int | getId(T value)Gets the integer ID we use to identify the given object. | 
| abstract ResourceLocation | getKey(T value)Gets the name we use to identify the given object. | 
| abstract T | getOrDefault(ResourceLocation name) | 
| abstract T | getRandom(java.util.Random random) | 
| abstract java.util.Optional<T> | getValue(ResourceLocation key)Gets the value assosiated by the key. | 
| abstract java.util.Set<ResourceLocation> | keySet()Gets all the keys recognized by this registry. | 
| 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_) | 
| 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
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
public static final Registry<BlockStateProviderType<?>> BLOCK_STATE_PROVIDER_TYPE
public static final Registry<BlockPlacerType<?>> BLOCK_PLACER_TYPE
public static final Registry<FoliagePlacerType<?>> FOLIAGE_PLACER_TYPE
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
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
@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_)