Package net.minecraft.core.registries
Class BuiltInRegistries
java.lang.Object
net.minecraft.core.registries.BuiltInRegistries
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionDeprecated.Deprecated.Forge: UseForgeRegistries.ATTRIBUTES
instead.static final Registry<BannerPattern>
static final Registry<com.mojang.serialization.Codec<? extends BiomeSource>>
static final DefaultedRegistry<Block>
Deprecated.Forge: UseForgeRegistries.BLOCKS
instead.static final Registry<BlockEntityType<?>>
Deprecated.Forge: UseForgeRegistries.BLOCK_ENTITY_TYPES
instead.static final Registry<BlockPredicateType<?>>
static final Registry<BlockStateProviderType<?>>
Deprecated.Forge: UseForgeRegistries.BLOCK_STATE_PROVIDER_TYPES
instead.static final Registry<WorldCarver<?>>
Deprecated.Forge: UseForgeRegistries.WORLD_CARVERS
instead.static final Registry<CatVariant>
static final Registry<com.mojang.serialization.Codec<? extends ChunkGenerator>>
static final DefaultedRegistry<ChunkStatus>
Deprecated.Forge: UseForgeRegistries.CHUNK_STATUS
instead.static final Registry<ArgumentTypeInfo<?,
?>> Deprecated.Forge: UseForgeRegistries.COMMAND_ARGUMENT_TYPES
instead.static final Registry<CreativeModeTab>
static final Registry<ResourceLocation>
static final Registry<com.mojang.serialization.Codec<? extends DensityFunction>>
static final Registry<Enchantment>
Deprecated.Forge: UseForgeRegistries.ENCHANTMENTS
instead.static final DefaultedRegistry<EntityType<?>>
Deprecated.Forge: UseForgeRegistries.ENTITY_TYPES
instead.Deprecated.Forge: UseForgeRegistries.FEATURES
instead.static final Registry<FeatureSizeType<?>>
static final Registry<FloatProviderType<?>>
static final DefaultedRegistry<Fluid>
Deprecated.Forge: UseForgeRegistries.FLUIDS
instead.static final Registry<FoliagePlacerType<?>>
Deprecated.Forge: UseForgeRegistries.FOLIAGE_PLACER_TYPES
instead.static final Registry<FrogVariant>
static final DefaultedRegistry<GameEvent>
static final Registry<HeightProviderType<?>>
static final Registry<Instrument>
static final Registry<IntProviderType<?>>
static final DefaultedRegistry<Item>
Deprecated.Forge: UseForgeRegistries.ITEMS
instead.private static final Map<ResourceLocation,
Supplier<?>> private static final org.slf4j.Logger
static final Registry<LootItemConditionType>
static final Registry<LootItemFunctionType>
static final Registry<LootNbtProviderType>
static final Registry<LootNumberProviderType>
static final Registry<LootPoolEntryType>
static final Registry<LootScoreProviderType>
static final Registry<com.mojang.serialization.Codec<? extends SurfaceRules.ConditionSource>>
static final Registry<com.mojang.serialization.Codec<? extends SurfaceRules.RuleSource>>
static final DefaultedRegistry<MemoryModuleType<?>>
Deprecated.Forge: UseForgeRegistries.MEMORY_MODULE_TYPES
instead.Deprecated.Forge: UseForgeRegistries.MENU_TYPES
instead.Deprecated.Forge: UseForgeRegistries.MOB_EFFECTS
instead.static final DefaultedRegistry<PaintingVariant>
Deprecated.Forge: UseForgeRegistries.PAINTING_VARIANTS
instead.static final Registry<ParticleType<?>>
Deprecated.Forge: UseForgeRegistries.PARTICLE_TYPES
instead.static final Registry<PlacementModifierType<?>>
Deprecated.Forge: UseForgeRegistries.POI_TYPES
instead.static final Registry<PosRuleTestType<?>>
static final Registry<PositionSourceType<?>>
static final DefaultedRegistry<Potion>
Deprecated.Forge: UseForgeRegistries.POTIONS
instead.static final Registry<RecipeSerializer<?>>
Deprecated.Forge: UseForgeRegistries.RECIPE_SERIALIZERS
instead.static final Registry<RecipeType<?>>
Deprecated.Forge: UseForgeRegistries.RECIPE_TYPES
instead.static final Registry<RootPlacerType<?>>
static final ResourceLocation
static final Registry<RuleBlockEntityModifierType<?>>
static final Registry<RuleTestType<?>>
Deprecated.Forge: UseForgeRegistries.SCHEDULES
instead.static final DefaultedRegistry<SensorType<?>>
Deprecated.Forge: UseForgeRegistries.SENSOR_TYPES
instead.static final Registry<SoundEvent>
Deprecated.Forge: UseForgeRegistries.SOUND_EVENTS
instead.Deprecated.Forge: UseForgeRegistries.STAT_TYPES
instead.static final Registry<StructurePieceType>
static final Registry<StructurePlacementType<?>>
static final Registry<StructurePoolElementType<?>>
static final Registry<StructureProcessorType<?>>
static final Registry<StructureType<?>>
static final Registry<TreeDecoratorType<?>>
Deprecated.Forge: UseForgeRegistries.TREE_DECORATOR_TYPES
instead.static final Registry<TrunkPlacerType<?>>
static final DefaultedRegistry<VillagerProfession>
Deprecated.Forge: UseForgeRegistries.VILLAGER_PROFESSIONS
instead.static final DefaultedRegistry<VillagerType>
private static final WritableRegistry<WritableRegistry<?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private static void
private static <T> Registry<T>
forge
(ResourceKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle cycle, BuiltInRegistries.RegistryBootstrap<T> def) private static <T> DefaultedRegistry<T>
forge
(ResourceKey<? extends Registry<T>> key, String defKey, com.mojang.serialization.Lifecycle cycle, BuiltInRegistries.RegistryBootstrap<T> def) private static <T> DefaultedRegistry<T>
forge
(ResourceKey<? extends Registry<T>> key, String defKey, BuiltInRegistries.RegistryBootstrap<T> def) private static <T> Registry<T>
forge
(ResourceKey<? extends Registry<T>> key, BuiltInRegistries.RegistryBootstrap<T> def) private static void
freeze()
private static <T,
R extends WritableRegistry<T>>
RinternalRegister
(ResourceKey<? extends Registry<T>> p_259230_, R p_260327_, BuiltInRegistries.RegistryBootstrap<T> p_259210_, com.mojang.serialization.Lifecycle p_259258_) private static <T> DefaultedRegistry<T>
registerDefaulted
(ResourceKey<? extends Registry<T>> p_259400_, String p_259678_, com.mojang.serialization.Lifecycle p_259157_, BuiltInRegistries.RegistryBootstrap<T> p_259806_) private static <T> DefaultedRegistry<T>
registerDefaulted
(ResourceKey<? extends Registry<T>> p_259887_, String p_259325_, BuiltInRegistries.RegistryBootstrap<T> p_259759_) private static <T> DefaultedRegistry<T>
registerDefaultedWithIntrusiveHolders
(ResourceKey<? extends Registry<T>> p_260010_, String p_260220_, com.mojang.serialization.Lifecycle p_260139_, BuiltInRegistries.RegistryBootstrap<T> p_260185_) private static <T> DefaultedRegistry<T>
registerDefaultedWithIntrusiveHolders
(ResourceKey<? extends Registry<T>> p_259296_, String p_259101_, BuiltInRegistries.RegistryBootstrap<T> p_259485_) private static <T> Registry<T>
registerSimple
(ResourceKey<? extends Registry<T>> p_259121_, com.mojang.serialization.Lifecycle p_259977_, BuiltInRegistries.RegistryBootstrap<T> p_259874_) private static <T> Registry<T>
registerSimple
(ResourceKey<? extends Registry<T>> p_260095_, BuiltInRegistries.RegistryBootstrap<T> p_259057_) private static <T extends Registry<?>>
void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
LOADERS
-
ROOT_REGISTRY_NAME
-
WRITABLE_REGISTRY
-
GAME_EVENT
-
SOUND_EVENT
Deprecated.Forge: UseForgeRegistries.SOUND_EVENTS
instead. -
FLUID
Deprecated.Forge: UseForgeRegistries.FLUIDS
instead. -
MOB_EFFECT
Deprecated.Forge: UseForgeRegistries.MOB_EFFECTS
instead. -
BLOCK
Deprecated.Forge: UseForgeRegistries.BLOCKS
instead. -
ENCHANTMENT
Deprecated.Forge: UseForgeRegistries.ENCHANTMENTS
instead. -
ENTITY_TYPE
Deprecated.Forge: UseForgeRegistries.ENTITY_TYPES
instead. -
ITEM
Deprecated.Forge: UseForgeRegistries.ITEMS
instead. -
POTION
Deprecated.Forge: UseForgeRegistries.POTIONS
instead. -
PARTICLE_TYPE
Deprecated.Forge: UseForgeRegistries.PARTICLE_TYPES
instead. -
BLOCK_ENTITY_TYPE
Deprecated.Forge: UseForgeRegistries.BLOCK_ENTITY_TYPES
instead. -
PAINTING_VARIANT
Deprecated.Forge: UseForgeRegistries.PAINTING_VARIANTS
instead. -
CUSTOM_STAT
-
CHUNK_STATUS
Deprecated.Forge: UseForgeRegistries.CHUNK_STATUS
instead. -
RULE_TEST
-
RULE_BLOCK_ENTITY_MODIFIER
-
POS_RULE_TEST
-
MENU
Deprecated.Forge: UseForgeRegistries.MENU_TYPES
instead. -
RECIPE_TYPE
Deprecated.Forge: UseForgeRegistries.RECIPE_TYPES
instead. -
RECIPE_SERIALIZER
Deprecated.Forge: UseForgeRegistries.RECIPE_SERIALIZERS
instead. -
ATTRIBUTE
Deprecated.Forge: UseForgeRegistries.ATTRIBUTES
instead. -
POSITION_SOURCE_TYPE
-
COMMAND_ARGUMENT_TYPE
Deprecated.Forge: UseForgeRegistries.COMMAND_ARGUMENT_TYPES
instead. -
STAT_TYPE
Deprecated.Forge: UseForgeRegistries.STAT_TYPES
instead. -
VILLAGER_TYPE
-
VILLAGER_PROFESSION
Deprecated.Forge: UseForgeRegistries.VILLAGER_PROFESSIONS
instead. -
POINT_OF_INTEREST_TYPE
Deprecated.Forge: UseForgeRegistries.POI_TYPES
instead. -
MEMORY_MODULE_TYPE
Deprecated.Forge: UseForgeRegistries.MEMORY_MODULE_TYPES
instead. -
SENSOR_TYPE
Deprecated.Forge: UseForgeRegistries.SENSOR_TYPES
instead. -
SCHEDULE
Deprecated.Forge: UseForgeRegistries.SCHEDULES
instead. -
ACTIVITY
Deprecated.Forge: UseForgeRegistries.ACTIVITIES
instead. -
LOOT_POOL_ENTRY_TYPE
-
LOOT_FUNCTION_TYPE
-
LOOT_CONDITION_TYPE
-
LOOT_NUMBER_PROVIDER_TYPE
-
LOOT_NBT_PROVIDER_TYPE
-
LOOT_SCORE_PROVIDER_TYPE
-
FLOAT_PROVIDER_TYPE
-
INT_PROVIDER_TYPE
-
HEIGHT_PROVIDER_TYPE
-
BLOCK_PREDICATE_TYPE
-
CARVER
Deprecated.Forge: UseForgeRegistries.WORLD_CARVERS
instead. -
FEATURE
Deprecated.Forge: UseForgeRegistries.FEATURES
instead. -
STRUCTURE_PLACEMENT
-
STRUCTURE_PIECE
-
STRUCTURE_TYPE
-
PLACEMENT_MODIFIER_TYPE
-
BLOCKSTATE_PROVIDER_TYPE
Deprecated.Forge: UseForgeRegistries.BLOCK_STATE_PROVIDER_TYPES
instead. -
FOLIAGE_PLACER_TYPE
Deprecated.Forge: UseForgeRegistries.FOLIAGE_PLACER_TYPES
instead. -
TRUNK_PLACER_TYPE
-
ROOT_PLACER_TYPE
-
TREE_DECORATOR_TYPE
Deprecated.Forge: UseForgeRegistries.TREE_DECORATOR_TYPES
instead. -
FEATURE_SIZE_TYPE
-
BIOME_SOURCE
-
CHUNK_GENERATOR
public static final Registry<com.mojang.serialization.Codec<? extends ChunkGenerator>> CHUNK_GENERATOR -
MATERIAL_CONDITION
public static final Registry<com.mojang.serialization.Codec<? extends SurfaceRules.ConditionSource>> MATERIAL_CONDITION -
MATERIAL_RULE
public static final Registry<com.mojang.serialization.Codec<? extends SurfaceRules.RuleSource>> MATERIAL_RULE -
DENSITY_FUNCTION_TYPE
public static final Registry<com.mojang.serialization.Codec<? extends DensityFunction>> DENSITY_FUNCTION_TYPE -
STRUCTURE_PROCESSOR
-
STRUCTURE_POOL_ELEMENT
-
CAT_VARIANT
-
FROG_VARIANT
-
BANNER_PATTERN
-
INSTRUMENT
-
DECORATED_POT_PATTERNS
-
CREATIVE_MODE_TAB
-
REGISTRY
-
-
Constructor Details
-
BuiltInRegistries
public BuiltInRegistries()
-
-
Method Details
-
registerSimple
private static <T> Registry<T> registerSimple(ResourceKey<? extends Registry<T>> p_260095_, BuiltInRegistries.RegistryBootstrap<T> p_259057_) -
forge
private static <T> Registry<T> forge(ResourceKey<? extends Registry<T>> key, BuiltInRegistries.RegistryBootstrap<T> def) -
registerDefaulted
private static <T> DefaultedRegistry<T> registerDefaulted(ResourceKey<? extends Registry<T>> p_259887_, String p_259325_, BuiltInRegistries.RegistryBootstrap<T> p_259759_) -
forge
private static <T> DefaultedRegistry<T> forge(ResourceKey<? extends Registry<T>> key, String defKey, BuiltInRegistries.RegistryBootstrap<T> def) -
registerDefaultedWithIntrusiveHolders
private static <T> DefaultedRegistry<T> registerDefaultedWithIntrusiveHolders(ResourceKey<? extends Registry<T>> p_259296_, String p_259101_, BuiltInRegistries.RegistryBootstrap<T> p_259485_) -
registerSimple
private static <T> Registry<T> registerSimple(ResourceKey<? extends Registry<T>> p_259121_, com.mojang.serialization.Lifecycle p_259977_, BuiltInRegistries.RegistryBootstrap<T> p_259874_) -
forge
private static <T> Registry<T> forge(ResourceKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle cycle, BuiltInRegistries.RegistryBootstrap<T> def) -
registerDefaulted
private static <T> DefaultedRegistry<T> registerDefaulted(ResourceKey<? extends Registry<T>> p_259400_, String p_259678_, com.mojang.serialization.Lifecycle p_259157_, BuiltInRegistries.RegistryBootstrap<T> p_259806_) -
forge
private static <T> DefaultedRegistry<T> forge(ResourceKey<? extends Registry<T>> key, String defKey, com.mojang.serialization.Lifecycle cycle, BuiltInRegistries.RegistryBootstrap<T> def) -
registerDefaultedWithIntrusiveHolders
private static <T> DefaultedRegistry<T> registerDefaultedWithIntrusiveHolders(ResourceKey<? extends Registry<T>> p_260010_, String p_260220_, com.mojang.serialization.Lifecycle p_260139_, BuiltInRegistries.RegistryBootstrap<T> p_260185_) -
internalRegister
private static <T,R extends WritableRegistry<T>> R internalRegister(ResourceKey<? extends Registry<T>> p_259230_, R p_260327_, BuiltInRegistries.RegistryBootstrap<T> p_259210_, com.mojang.serialization.Lifecycle p_259258_) -
bootStrap
public static void bootStrap() -
createContents
private static void createContents() -
freeze
private static void freeze() -
validate
-
ForgeRegistries.ACTIVITIES
instead.