Interface IRegistryHelper
public interface IRegistryHelper
-
Method Summary
Modifier and TypeMethodDescriptiondefault RegistryWrapper<net.minecraft.world.entity.ai.attributes.Attribute>default RegistryWrapper<net.minecraft.world.level.biome.Biome>biomes()default RegistryWrapper<net.minecraft.world.level.block.Block>blocks()default CTShapedRecipeBasecreateCTShapedRecipe(String name, IItemStack output, IIngredient[][] ingredients, MirrorAxis mirrorAxis, RecipeFunctionMatrix function) default CTShapelessRecipeBasecreateCTShapelessRecipe(String name, IItemStack output, IIngredient[] ingredients, RecipeFunctionArray function) default RegistryWrapper<net.minecraft.world.item.enchantment.Enchantment>default RegistryWrapper<net.minecraft.world.entity.EntityType<?>>default RegistryWrapper<net.minecraft.world.level.material.Fluid>fluids()net.minecraft.world.item.crafting.Ingredient<T extends IIngredient>
net.minecraft.world.item.crafting.IngredientgetIngredientConditioned(IIngredientConditioned<T> conditioned) net.minecraft.world.item.crafting.IngredientgetIngredientList(List<net.minecraft.world.item.crafting.Ingredient> children) net.minecraft.world.item.crafting.IngredientgetIngredientPartialTag(net.minecraft.world.item.ItemStack stack) <T extends IIngredient>
net.minecraft.world.item.crafting.IngredientgetIngredientTransformed(IIngredientTransformed<T> transformed) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.sounds.SoundEvent biome) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.effect.MobEffect mobEffect) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.entity.ai.attributes.Attribute attribute) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.entity.EntityType<?> type) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.entity.npc.VillagerProfession profession) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.item.alchemy.Potion potion) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.item.crafting.RecipeSerializer<?> serializer) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.item.crafting.RecipeType<?> type) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.item.enchantment.Enchantment enchantment) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.item.Item item) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.level.biome.Biome biome) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.level.block.Block block) default net.minecraft.resources.ResourceLocationgetRegistryKey(net.minecraft.world.level.material.Fluid fluid) voidinit()default RegistryWrapper<net.minecraft.world.item.Item>items()default <T> net.minecraft.core.Holder<T>makeHolder(net.minecraft.resources.ResourceKey<?> resourceKey, com.mojang.datafixers.util.Either<T, net.minecraft.resources.ResourceLocation> objectOrKey) default <T> net.minecraft.core.Holder<T>makeHolder(net.minecraft.resources.ResourceKey<?> resourceKey, net.minecraft.resources.ResourceLocation key) default <T> net.minecraft.core.Holder<T>makeHolder(net.minecraft.resources.ResourceKey<?> resourceKey, T object) default Optional<net.minecraft.resources.ResourceLocation>maybeGetRegistryKey(Object object) Maybe returns the registry key of the given object if we know about its type.default RegistryWrapper<net.minecraft.world.effect.MobEffect>default RegistryWrapper<net.minecraft.world.item.alchemy.Potion>potions()default RegistryWrapper<net.minecraft.world.item.crafting.RecipeSerializer<?>>default RegistryWrapper<net.minecraft.world.item.crafting.RecipeType<?>>default voidregisterSerializer(net.minecraft.core.MappedRegistry<IIngredientConditionSerializer<?>> registry, IIngredientConditionSerializer<?> serializer) default voidregisterSerializer(net.minecraft.core.MappedRegistry<IIngredientTransformerSerializer<?>> registry, IIngredientTransformerSerializer<?> serializer) default <T> net.minecraft.core.MappedRegistry<T>registerVanillaRegistry(net.minecraft.resources.ResourceLocation location) default Set<net.minecraft.resources.ResourceKey<?>>default RegistryWrapper<net.minecraft.sounds.SoundEvent>default RegistryWrapper<net.minecraft.world.entity.npc.VillagerProfession>
-
Method Details
-
serverOnlyRegistries
-
registerSerializer
default void registerSerializer(net.minecraft.core.MappedRegistry<IIngredientTransformerSerializer<?>> registry, IIngredientTransformerSerializer<?> serializer) -
registerSerializer
default void registerSerializer(net.minecraft.core.MappedRegistry<IIngredientConditionSerializer<?>> registry, IIngredientConditionSerializer<?> serializer) -
registerVanillaRegistry
default <T> net.minecraft.core.MappedRegistry<T> registerVanillaRegistry(net.minecraft.resources.ResourceLocation location) -
init
void init() -
getCTShapedRecipeSerializer
ICTShapedRecipeBaseSerializer getCTShapedRecipeSerializer() -
getCTShapelessRecipeSerializer
ICTShapelessRecipeBaseSerializer getCTShapelessRecipeSerializer() -
createCTShapedRecipe
default CTShapedRecipeBase createCTShapedRecipe(String name, IItemStack output, IIngredient[][] ingredients, MirrorAxis mirrorAxis, @Nullable RecipeFunctionMatrix function) -
createCTShapelessRecipe
default CTShapelessRecipeBase createCTShapelessRecipe(String name, IItemStack output, IIngredient[] ingredients, @Nullable RecipeFunctionArray function) -
getIngredientAny
net.minecraft.world.item.crafting.Ingredient getIngredientAny() -
getIngredientList
net.minecraft.world.item.crafting.Ingredient getIngredientList(List<net.minecraft.world.item.crafting.Ingredient> children) -
getIngredientConditioned
<T extends IIngredient> net.minecraft.world.item.crafting.Ingredient getIngredientConditioned(IIngredientConditioned<T> conditioned) -
getIngredientTransformed
<T extends IIngredient> net.minecraft.world.item.crafting.Ingredient getIngredientTransformed(IIngredientTransformed<T> transformed) -
getIngredientPartialTag
net.minecraft.world.item.crafting.Ingredient getIngredientPartialTag(net.minecraft.world.item.ItemStack stack) -
maybeGetRegistryKey
Maybe returns the registry key of the given object if we know about its type. -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.item.Item item) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.item.alchemy.Potion potion) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.entity.EntityType<?> type) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.item.crafting.RecipeType<?> type) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.item.crafting.RecipeSerializer<?> serializer) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.entity.ai.attributes.Attribute attribute) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.level.material.Fluid fluid) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.item.enchantment.Enchantment enchantment) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.level.block.Block block) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.effect.MobEffect mobEffect) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.entity.npc.VillagerProfession profession) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.world.level.biome.Biome biome) -
getRegistryKey
default net.minecraft.resources.ResourceLocation getRegistryKey(net.minecraft.sounds.SoundEvent biome) -
items
-
potions
-
recipeTypes
-
recipeSerializers
-
attributes
-
fluids
-
enchantments
-
blocks
-
mobEffects
-
villagerProfessions
-
soundEvents
-
biomes
-
entityTypes
-
makeHolder
default <T> net.minecraft.core.Holder<T> makeHolder(net.minecraft.resources.ResourceKey<?> resourceKey, com.mojang.datafixers.util.Either<T, net.minecraft.resources.ResourceLocation> objectOrKey) -
makeHolder
default <T> net.minecraft.core.Holder<T> makeHolder(net.minecraft.resources.ResourceKey<?> resourceKey, T object) -
makeHolder
default <T> net.minecraft.core.Holder<T> makeHolder(net.minecraft.resources.ResourceKey<?> resourceKey, net.minecraft.resources.ResourceLocation key)
-