Class ExpandInstrument

java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandInstrument

@ZenRegister public class ExpandInstrument extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getCommandString(net.minecraft.world.item.Instrument internal)
    Gets the command string of the Instrument.
    static net.minecraft.resources.ResourceLocation
    getRegistryName(net.minecraft.world.item.Instrument internal)
    Gets the registry name of the Instrument.
    static float
    range(net.minecraft.world.item.Instrument internal)
    Gets the range of the Instrument.
    static net.minecraft.sounds.SoundEvent
    soundEvent(net.minecraft.world.item.Instrument internal)
    Gets the sound event of the Instrument.
    static int
    useDuration(net.minecraft.world.item.Instrument internal)
    Gets the use duration of the Instrument.

    Methods inherited from class java.lang.Object

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

    • ExpandInstrument

      public ExpandInstrument()
  • Method Details

    • soundEvent

      public static net.minecraft.sounds.SoundEvent soundEvent(net.minecraft.world.item.Instrument internal)
      Gets the sound event of the Instrument.
      Returns:
      The sound event of the Instrument.
    • useDuration

      public static int useDuration(net.minecraft.world.item.Instrument internal)
      Gets the use duration of the Instrument.
      Returns:
      The use duration of the Instrument.
    • range

      public static float range(net.minecraft.world.item.Instrument internal)
      Gets the range of the Instrument.
      Returns:
      The range of the Instrument.
    • getRegistryName

      public static net.minecraft.resources.ResourceLocation getRegistryName(net.minecraft.world.item.Instrument internal)
      Gets the registry name of the Instrument.
      Returns:
      The registry name of the Instrument.
    • getCommandString

      public static String getCommandString(net.minecraft.world.item.Instrument internal)
      Gets the command string of the Instrument.
      Returns:
      The command string of the Instrument.