Package com.petrolpark.badge
Class Badge
java.lang.Object
com.petrolpark.badge.Badge
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final net.minecraftforge.registries.ForgeRegistry<Badge>booleanstatic Badgestatic BadgegetBadge(net.minecraft.resources.ResourceLocation id) net.minecraft.network.chat.Componentnet.minecraft.world.item.crafting.Ingredientnet.minecraft.world.item.crafting.CraftingRecipenet.minecraft.resources.ResourceLocationgetId()getItem()net.minecraft.network.chat.ComponentgetName()voidgrantAdvancement(net.minecraft.world.entity.player.Player player) voidvoidsetBadgeItem(com.tterrag.registrate.util.entry.ItemEntry<BadgeItem> entry) voidsetDuplicationItem(Supplier<net.minecraft.world.item.crafting.Ingredient> ingredient) voidsetId(net.minecraft.resources.ResourceLocation id)
-
Field Details
-
id
protected net.minecraft.resources.ResourceLocation id -
itemEntry
-
duplicationIngredient
-
advancementTrigger
-
-
Constructor Details
-
Badge
public Badge()
-
-
Method Details
-
badgeRegistry
-
setDuplicationItem
-
getDuplicationIngredient
@Nullable public net.minecraft.world.item.crafting.Ingredient getDuplicationIngredient() -
getExampleDuplicationRecipe
@Nullable public net.minecraft.world.item.crafting.CraftingRecipe getExampleDuplicationRecipe() -
setAdvancementTrigger
-
grantAdvancement
public void grantAdvancement(net.minecraft.world.entity.player.Player player) -
setId
public void setId(net.minecraft.resources.ResourceLocation id) -
setBadgeItem
-
getName
public net.minecraft.network.chat.Component getName() -
getDescription
public net.minecraft.network.chat.Component getDescription() -
getId
public net.minecraft.resources.ResourceLocation getId() -
getItem
-
equals
-
getBadge
-
getBadge
-