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

@ZenRegister public class ExpandFireworks extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.minecraft.world.item.component.FireworkExplosion>
    explosions(net.minecraft.world.item.component.Fireworks internal)
    Gets the explosions of the Fireworks.
    static int
    flightDuration(net.minecraft.world.item.component.Fireworks internal)
    Gets the flight duration of the Fireworks.
    static net.minecraft.world.item.component.Fireworks
    of(int flightDuration, List<net.minecraft.world.item.component.FireworkExplosion> explosions)
    Creates a new Fireworks with the given flight duration and explosions.

    Methods inherited from class java.lang.Object

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

    • ExpandFireworks

      public ExpandFireworks()
  • Method Details

    • of

      public static net.minecraft.world.item.component.Fireworks of(int flightDuration, List<net.minecraft.world.item.component.FireworkExplosion> explosions)
      Creates a new Fireworks with the given flight duration and explosions.
      Parameters:
      flightDuration - The flight duration of the Fireworks.
      explosions - The explosions of the Fireworks.
      Returns:
      The new Fireworks.
    • explosions

      public static List<net.minecraft.world.item.component.FireworkExplosion> explosions(net.minecraft.world.item.component.Fireworks internal)
      Gets the explosions of the Fireworks.
      Returns:
      The explosions of the Fireworks.
    • flightDuration

      public static int flightDuration(net.minecraft.world.item.component.Fireworks internal)
      Gets the flight duration of the Fireworks.
      Returns:
      The flight duration of the Fireworks.