Class BadgeRegistrateBuilder<T extends Badge,P>

java.lang.Object
com.tterrag.registrate.builders.AbstractBuilder<Badge,T,P,BadgeRegistrateBuilder<T,P>>
com.petrolpark.core.badge.BadgeRegistrateBuilder<T,P>
All Implemented Interfaces:
com.tterrag.registrate.builders.Builder<Badge,T,P,BadgeRegistrateBuilder<T,P>>, com.tterrag.registrate.util.nullness.NonNullSupplier<com.tterrag.registrate.util.entry.RegistryEntry<Badge,T>>, Supplier<com.tterrag.registrate.util.entry.RegistryEntry<Badge,T>>

public class BadgeRegistrateBuilder<T extends Badge,P> extends com.tterrag.registrate.builders.AbstractBuilder<Badge,T,P,BadgeRegistrateBuilder<T,P>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Supplier<net.minecraft.world.item.crafting.Ingredient>
     
    protected com.tterrag.registrate.util.entry.ItemEntry<BadgeItem>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BadgeRegistrateBuilder(PetrolparkRegistrate owner, P parent, String name, com.tterrag.registrate.builders.BuilderCallback callback, com.tterrag.registrate.util.nullness.NonNullSupplier<T> factory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends Badge, P>
    BadgeRegistrateBuilder<T,P>
    create(PetrolparkRegistrate owner, P parent, String name, com.tterrag.registrate.builders.BuilderCallback callback, com.tterrag.registrate.util.nullness.NonNullSupplier<T> factory)
     
    protected T
     
    duplicationIngredient(Supplier<net.minecraft.world.item.crafting.Ingredient> ingredient)
     
    static Collection<net.minecraft.world.item.crafting.CraftingRecipe>
     

    Methods inherited from class com.tterrag.registrate.builders.AbstractBuilder

    asOptional, asSupplier, asTag, createEntryWrapper, getCallback, getName, getOwner, getParent, getRegistryKey, lang, lang, register, removeTag, tag

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.tterrag.registrate.builders.Builder

    addMiscData, build, dataMap, get, getEntry, onRegister, onRegisterAfter, setData, transform

    Methods inherited from interface com.tterrag.registrate.util.nullness.NonNullSupplier

    lazy
  • Field Details

    • item

      protected com.tterrag.registrate.util.entry.ItemEntry<BadgeItem> item
    • duplicationIngredient

      protected Supplier<net.minecraft.world.item.crafting.Ingredient> duplicationIngredient
  • Constructor Details

    • BadgeRegistrateBuilder

      public BadgeRegistrateBuilder(PetrolparkRegistrate owner, P parent, String name, com.tterrag.registrate.builders.BuilderCallback callback, com.tterrag.registrate.util.nullness.NonNullSupplier<T> factory)
  • Method Details

    • create

      public static <T extends Badge, P> BadgeRegistrateBuilder<T,P> create(PetrolparkRegistrate owner, P parent, String name, com.tterrag.registrate.builders.BuilderCallback callback, com.tterrag.registrate.util.nullness.NonNullSupplier<T> factory)
    • duplicationIngredient

      public BadgeRegistrateBuilder<T,P> duplicationIngredient(Supplier<net.minecraft.world.item.crafting.Ingredient> ingredient)
    • createEntry

      @NonnullType protected T createEntry()
      Specified by:
      createEntry in class com.tterrag.registrate.builders.AbstractBuilder<Badge,T extends Badge,P,BadgeRegistrateBuilder<T extends Badge,P>>
    • getExampleDuplicationRecipes

      public static Collection<net.minecraft.world.item.crafting.CraftingRecipe> getExampleDuplicationRecipes()