forked from SteamWar/SteamWar
Offer nearly every vanilla particle in the slot builder
Add the remaining particles, including colour, colour transition, block and item particles, which take their colours or a new block setting from the entry. Only particles that cover the screen, show only under water or need a target stay out.
This commit is contained in:
@@ -23,6 +23,7 @@ import de.steamwar.lobby.particle.ParticleElement;
|
||||
import de.steamwar.lobby.particle.elements.*;
|
||||
import de.steamwar.lobby.particle.elements.custom.NonMoving;
|
||||
import lombok.experimental.UtilityClass;
|
||||
import org.bukkit.Material;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.UnaryOperator;
|
||||
@@ -132,6 +133,52 @@ public class EntryParameters {
|
||||
public final DoubleParameter SPREAD_Z = new DoubleParameter("spreadZ", "PARTICLE_PARAM_SPREAD_Z", 0, 0, 2, 0.05);
|
||||
public final DoubleParameter SPEED = new DoubleParameter("speed", "PARTICLE_PARAM_SPEED", 0.01, 0, 1, 0.01);
|
||||
public final GradientParameter COLORS = new GradientParameter("colors", "PARTICLE_PARAM_COLORS", 8);
|
||||
// Blocks that are also items, so they work for block and item particles alike
|
||||
public final ChoiceParameter<Material> BLOCK = new ChoiceParameter<>("block", "PARTICLE_PARAM_BLOCK", Material.STONE, List.of(
|
||||
new ChoiceParameter.Choice<>("stone", Material.STONE, false),
|
||||
new ChoiceParameter.Choice<>("cobblestone", Material.COBBLESTONE, false),
|
||||
new ChoiceParameter.Choice<>("dirt", Material.DIRT, false),
|
||||
new ChoiceParameter.Choice<>("grass_block", Material.GRASS_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("sand", Material.SAND, false),
|
||||
new ChoiceParameter.Choice<>("red_sand", Material.RED_SAND, false),
|
||||
new ChoiceParameter.Choice<>("gravel", Material.GRAVEL, false),
|
||||
new ChoiceParameter.Choice<>("oak_planks", Material.OAK_PLANKS, false),
|
||||
new ChoiceParameter.Choice<>("oak_leaves", Material.OAK_LEAVES, false),
|
||||
new ChoiceParameter.Choice<>("cherry_leaves", Material.CHERRY_LEAVES, false),
|
||||
new ChoiceParameter.Choice<>("snow_block", Material.SNOW_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("ice", Material.ICE, false),
|
||||
new ChoiceParameter.Choice<>("glass", Material.GLASS, false),
|
||||
new ChoiceParameter.Choice<>("tnt", Material.TNT, false),
|
||||
new ChoiceParameter.Choice<>("pumpkin", Material.PUMPKIN, false),
|
||||
new ChoiceParameter.Choice<>("melon", Material.MELON, false),
|
||||
new ChoiceParameter.Choice<>("honey_block", Material.HONEY_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("slime_block", Material.SLIME_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("netherrack", Material.NETHERRACK, false),
|
||||
new ChoiceParameter.Choice<>("soul_sand", Material.SOUL_SAND, false),
|
||||
new ChoiceParameter.Choice<>("magma_block", Material.MAGMA_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("end_stone", Material.END_STONE, false),
|
||||
new ChoiceParameter.Choice<>("obsidian", Material.OBSIDIAN, false),
|
||||
new ChoiceParameter.Choice<>("prismarine", Material.PRISMARINE, false),
|
||||
new ChoiceParameter.Choice<>("sculk", Material.SCULK, false),
|
||||
new ChoiceParameter.Choice<>("amethyst_block", Material.AMETHYST_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("coal_block", Material.COAL_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("iron_block", Material.IRON_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("gold_block", Material.GOLD_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("redstone_block", Material.REDSTONE_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("lapis_block", Material.LAPIS_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("emerald_block", Material.EMERALD_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("diamond_block", Material.DIAMOND_BLOCK, false),
|
||||
new ChoiceParameter.Choice<>("white_wool", Material.WHITE_WOOL, false),
|
||||
new ChoiceParameter.Choice<>("red_wool", Material.RED_WOOL, false),
|
||||
new ChoiceParameter.Choice<>("orange_wool", Material.ORANGE_WOOL, false),
|
||||
new ChoiceParameter.Choice<>("yellow_wool", Material.YELLOW_WOOL, false),
|
||||
new ChoiceParameter.Choice<>("lime_wool", Material.LIME_WOOL, false),
|
||||
new ChoiceParameter.Choice<>("light_blue_wool", Material.LIGHT_BLUE_WOOL, false),
|
||||
new ChoiceParameter.Choice<>("blue_wool", Material.BLUE_WOOL, false),
|
||||
new ChoiceParameter.Choice<>("purple_wool", Material.PURPLE_WOOL, false),
|
||||
new ChoiceParameter.Choice<>("pink_wool", Material.PINK_WOOL, false),
|
||||
new ChoiceParameter.Choice<>("black_wool", Material.BLACK_WOOL, false)
|
||||
));
|
||||
public final DoubleParameter OFFSET_X = new DoubleParameter("offsetX", "PARTICLE_PARAM_OFFSET_X", 0, -3, 3, 0.1);
|
||||
public final DoubleParameter OFFSET_Y = new DoubleParameter("offsetY", "PARTICLE_PARAM_OFFSET_Y", 0, -3, 3, 0.1);
|
||||
public final DoubleParameter OFFSET_Z = new DoubleParameter("offsetZ", "PARTICLE_PARAM_OFFSET_Z", 0, -3, 3, 0.1);
|
||||
@@ -144,7 +191,7 @@ public class EntryParameters {
|
||||
public final ChoiceParameter<Visibility> VISIBILITY = ChoiceParameter.ofEnum("visibility", "PARTICLE_PARAM_VISIBILITY", Visibility.EVERYONE);
|
||||
|
||||
public final List<Parameter<?>> ALL = List.of(
|
||||
PARTICLE, COUNT, SPREAD_X, SPREAD_Y, SPREAD_Z, SPEED, COLORS,
|
||||
PARTICLE, COUNT, SPREAD_X, SPREAD_Y, SPREAD_Z, SPEED, COLORS, BLOCK,
|
||||
OFFSET_X, OFFSET_Y, OFFSET_Z, INTERVAL, TICK_MODE,
|
||||
MOVEMENT, GLIDING, GROUND, SNEAK, VISIBILITY
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user