Class AmmunitionTableRecipe.MaterialGroup

java.lang.Object
tech.anonymoushacker1279.immersiveweapons.item.crafting.AmmunitionTableRecipe.MaterialGroup
Enclosing class:
AmmunitionTableRecipe

public static class AmmunitionTableRecipe.MaterialGroup extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    MaterialGroup(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tagKey, float density, float baseMultiplier)
     
    MaterialGroup(net.minecraft.world.item.crafting.Ingredient ingredient, float density, float baseMultiplier)
    Represents a group of materials within a recipe for the Ammunition Table.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
    float
     
    net.minecraft.world.item.crafting.Ingredient
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MaterialGroup

      public MaterialGroup(net.minecraft.world.item.crafting.Ingredient ingredient, float density, float baseMultiplier)
      Represents a group of materials within a recipe for the Ammunition Table.
      Parameters:
      ingredient - an Ingredient
      density - the density of the material
      baseMultiplier - the base multiplier for the material (how much this item is worth)

      For example, an ingot may be 1x, while its nugget is 1/9th of that, or 0.11x.

    • MaterialGroup

      public MaterialGroup(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tagKey, float density, float baseMultiplier)
  • Method Details

    • getIngredient

      public net.minecraft.world.item.crafting.Ingredient getIngredient()
    • getDensity

      public float getDensity()
    • getBaseMultiplier

      public float getBaseMultiplier()