Class Badge

java.lang.Object
com.petrolpark.core.badge.Badge
All Implemented Interfaces:
net.minecraft.world.level.ItemLike

public class Badge extends Object implements net.minecraft.world.level.ItemLike
  • Field Details

    • id

      protected net.minecraft.resources.ResourceLocation id
    • itemEntry

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

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

    • Badge

      public Badge()
  • Method Details

    • setDuplicationItem

      public void setDuplicationItem(Supplier<net.minecraft.world.item.crafting.Ingredient> ingredient)
    • getDuplicationIngredient

      @Nullable public net.minecraft.world.item.crafting.Ingredient getDuplicationIngredient()
    • getExampleDuplicationRecipe

      @Nullable public net.minecraft.world.item.crafting.CraftingRecipe getExampleDuplicationRecipe()
    • setId

      public void setId(net.minecraft.resources.ResourceLocation id)
    • setBadgeItem

      public void setBadgeItem(com.tterrag.registrate.util.entry.ItemEntry<BadgeItem> entry)
    • getName

      public net.minecraft.network.chat.Component getName()
    • getDescription

      public net.minecraft.network.chat.Component getDescription()
    • getId

      public net.minecraft.resources.ResourceLocation getId()
    • asItem

      public BadgeItem asItem()
      Specified by:
      asItem in interface net.minecraft.world.level.ItemLike
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getBadge

      @Nullable public static Badge getBadge(String namespace, String name)
    • getBadge

      @Nullable public static Badge getBadge(net.minecraft.resources.ResourceLocation id)