Interface IRegistryHelper


public interface IRegistryHelper
  • Method Details

    • serverOnlyRegistries

      default Set<net.minecraft.resources.ResourceKey<?>> 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

      default Optional<net.minecraft.resources.ResourceLocation> maybeGetRegistryKey(Object object)
      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

      default RegistryWrapper<net.minecraft.world.item.Item> items()
    • potions

      default RegistryWrapper<net.minecraft.world.item.alchemy.Potion> potions()
    • recipeTypes

      default RegistryWrapper<net.minecraft.world.item.crafting.RecipeType<?>> recipeTypes()
    • recipeSerializers

      default RegistryWrapper<net.minecraft.world.item.crafting.RecipeSerializer<?>> recipeSerializers()
    • attributes

      default RegistryWrapper<net.minecraft.world.entity.ai.attributes.Attribute> attributes()
    • fluids

      default RegistryWrapper<net.minecraft.world.level.material.Fluid> fluids()
    • enchantments

      default RegistryWrapper<net.minecraft.world.item.enchantment.Enchantment> enchantments()
    • blocks

      default RegistryWrapper<net.minecraft.world.level.block.Block> blocks()
    • mobEffects

      default RegistryWrapper<net.minecraft.world.effect.MobEffect> mobEffects()
    • villagerProfessions

      default RegistryWrapper<net.minecraft.world.entity.npc.VillagerProfession> villagerProfessions()
    • soundEvents

      default RegistryWrapper<net.minecraft.sounds.SoundEvent> soundEvents()
    • biomes

      default RegistryWrapper<net.minecraft.world.level.biome.Biome> biomes()
    • entityTypes

      default RegistryWrapper<net.minecraft.world.entity.EntityType<?>> 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)