Interface ToolItemFactories.VanillaItemConstructor

Enclosing class:
ToolItemFactories
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ToolItemFactories.VanillaItemConstructor
Functional interface matching the constructor signature of most vanilla tool classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.Item
    create(net.minecraft.world.item.Tier tier, net.minecraft.world.item.Item.Properties properties)
    Creates an item using the given tier and properties.
  • Method Details

    • create

      net.minecraft.world.item.Item create(net.minecraft.world.item.Tier tier, net.minecraft.world.item.Item.Properties properties)
      Creates an item using the given tier and properties.
      Parameters:
      tier - the material tier (never null)
      properties - the item properties (never null)
      Returns:
      the created item, never null