Class AmmunitionTableRecipe.MaterialGroup
java.lang.Object
tech.anonymoushacker1279.immersiveweapons.item.crafting.AmmunitionTableRecipe.MaterialGroup
- Enclosing class:
- AmmunitionTableRecipe
-
Constructor Summary
ConstructorsConstructorDescriptionMaterialGroup(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 TypeMethodDescriptionfloatfloatnet.minecraft.world.item.crafting.Ingredient
-
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- anIngredientdensity- the density of the materialbaseMultiplier- 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()
-