Class ExpandInstrument
java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandInstrument
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCommandString(net.minecraft.world.item.Instrument internal) Gets the command string of the Instrument.static net.minecraft.resources.ResourceLocationgetRegistryName(net.minecraft.world.item.Instrument internal) Gets the registry name of the Instrument.static floatrange(net.minecraft.world.item.Instrument internal) Gets the range of the Instrument.static net.minecraft.sounds.SoundEventsoundEvent(net.minecraft.world.item.Instrument internal) Gets the sound event of the Instrument.static intuseDuration(net.minecraft.world.item.Instrument internal) Gets the use duration of the Instrument.
-
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
Gets the command string of the Instrument.- Returns:
- The command string of the Instrument.
-