Class ExpandFireworks
java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandFireworks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<net.minecraft.world.item.component.FireworkExplosion> explosions(net.minecraft.world.item.component.Fireworks internal) Gets the explosions of the Fireworks.static intflightDuration(net.minecraft.world.item.component.Fireworks internal) Gets the flight duration of the Fireworks.static net.minecraft.world.item.component.FireworksCreates a new Fireworks with the given flight duration and explosions.
-
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.
-