|
|
|
@ -46,69 +46,62 @@ public class ParticleInventory {
|
|
|
|
|
private static final List<SWListInv.SWListEntry<SpecialParticle>> SERVERTEAM_PARTICLES_ENTRIES = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
static {
|
|
|
|
|
List<String> defaultLore = loreBuilder(null, null);
|
|
|
|
|
List<String> teamLore = loreBuilder(null, "Team beitritt");
|
|
|
|
|
List<String> serverTeamLore = loreBuilder(null, "Serverteam");
|
|
|
|
|
List<String> serverTeamLore_C = loreBuilder(new String[]{"Wolke"}, "Serverteam");
|
|
|
|
|
List<String> serverTeamLore_R = loreBuilder(new String[]{"Ring"}, "Serverteam");
|
|
|
|
|
List<String> serverTeamLore_2R = loreBuilder(new String[]{"doppel Ring"}, "Serverteam");
|
|
|
|
|
List<String> serverTeamLore_CR = loreBuilder(new String[]{"Wolke", "Ring"}, "Serverteam");
|
|
|
|
|
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.SLIME_BLOCK, "§aSneeze", defaultLore, Particle.SNEEZE, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.COBWEB, "§7Smoke", defaultLore, Particle.SMOKE_NORMAL, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.LAVA_BUCKET, "§cFeuer", defaultLore, Particle.DRIP_LAVA));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.WATER_BUCKET, "§bWasser", defaultLore, Particle.DRIP_WATER));
|
|
|
|
|
PLAYER_PARTICLES.add(new FunctionalParticle(Material.RED_DYE, "§cHerzen", defaultLore, (world, player, integer) -> world.spawnParticle(Particle.HEART, player.getLocation().add(0, 2.2, 0), 5)));
|
|
|
|
|
PLAYER_PARTICLES.add(new FunctionalParticle(Material.NOTE_BLOCK, "§eNoten", defaultLore, (world, player, integer) -> world.spawnParticle(Particle.NOTE, player.getLocation().add(0, 2.2, 0), 5)));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.NAUTILUS_SHELL, "§aNautilis", defaultLore, Particle.NAUTILUS, 0.2F, 0F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.SNOWBALL, "§fSnowball", defaultLore, Particle.SNOWBALL, 0.2F, 0F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new FunctionalParticle(Material.GLASS_BOTTLE, "§5Effekt", defaultLore, (world, player, time) -> {
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.SLIME_BLOCK, "§aSneeze", null, Particle.SNEEZE, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.COBWEB, "§7Smoke", null, Particle.SMOKE_NORMAL, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.LAVA_BUCKET, "§cFeuer", null, Particle.DRIP_LAVA));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.WATER_BUCKET, "§bWasser", null, Particle.DRIP_WATER));
|
|
|
|
|
PLAYER_PARTICLES.add(new FunctionalParticle(Material.RED_DYE, "§cHerzen", null, (world, player, integer) -> world.spawnParticle(Particle.HEART, player.getLocation().add(0, 2.2, 0), 5)));
|
|
|
|
|
PLAYER_PARTICLES.add(new FunctionalParticle(Material.NOTE_BLOCK, "§eNoten", null, (world, player, integer) -> world.spawnParticle(Particle.NOTE, player.getLocation().add(0, 2.2, 0), 5)));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.NAUTILUS_SHELL, "§aNautilis", null, Particle.NAUTILUS, 0.2F, 0F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.SNOWBALL, "§fSnowball", null, Particle.SNOWBALL, 0.2F, 0F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new FunctionalParticle(Material.GLASS_BOTTLE, "§5Effekt", loreBuilder(null, null), (world, player, time) -> {
|
|
|
|
|
world.spawnParticle(Particle.REDSTONE, player.getLocation().add(0.0, 0.2, 0.0), 5, 0F, 0.2F, 0F, 0.01, SpecialParticle.getParticleDust());
|
|
|
|
|
}));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.CAMPFIRE, "§7Rauch", defaultLore, Particle.CAMPFIRE_COSY_SMOKE, 0.0F, 0.2F, 0F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.CAULDRON, "§5Magie", defaultLore, Particle.CRIT_MAGIC, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.REDSTONE_BLOCK, "§4Wut", defaultLore, Particle.VILLAGER_ANGRY, 0.2F, 0.02F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.SLIME_BALL, "§aSchleim", defaultLore, Particle.SLIME));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.ZOMBIE_HEAD, "§7Mob", defaultLore, Particle.SPELL_MOB));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.CAMPFIRE, "§7Rauch", null, Particle.CAMPFIRE_COSY_SMOKE, 0.0F, 0.2F, 0F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.CAULDRON, "§5Magie", null, Particle.CRIT_MAGIC, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.REDSTONE_BLOCK, "§4Wut", null, Particle.VILLAGER_ANGRY, 0.2F, 0.02F, 0.2F, 0.01));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.SLIME_BALL, "§aSchleim", null, Particle.SLIME));
|
|
|
|
|
PLAYER_PARTICLES.add(new SimpleParticle(Material.ZOMBIE_HEAD, "§7Mob", null, Particle.SPELL_MOB));
|
|
|
|
|
|
|
|
|
|
TEAM_PARTICLES.addAll(PLAYER_PARTICLES);
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.INK_SAC, "§8Squid", teamLore, Particle.SQUID_INK, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.TUBE_CORAL, "§aBubble", teamLore, Particle.BUBBLE_POP, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.HONEY_BOTTLE, "§6Honey", teamLore, Particle.DRIPPING_HONEY, 0.2F, 0.2F, 0.2F, 1));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.HONEYCOMB, "§6Nectar", teamLore, Particle.FALLING_NECTAR, 0.2F, 0.2F, 0.2F, 1));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.INK_SAC, "§8Squid", "Team beitritt", Particle.SQUID_INK, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.TUBE_CORAL, "§aBubble", "Team beitritt", Particle.BUBBLE_POP, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.HONEY_BOTTLE, "§6Honey", "Team beitritt", Particle.DRIPPING_HONEY, 0.2F, 0.2F, 0.2F, 1));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.HONEYCOMB, "§6Nectar", "Team beitritt", Particle.FALLING_NECTAR, 0.2F, 0.2F, 0.2F, 1));
|
|
|
|
|
TEAM_PARTICLES.add(new FunctionalParticle(Material.FIRE_CHARGE, "§7Firework", loreBuilder(new String[]{"in Luft"}, "Team beitritt"), (world, player, time) -> {
|
|
|
|
|
if (world.getBlockAt(player.getLocation().subtract(0, 1, 0)).getType() == Material.AIR) {
|
|
|
|
|
world.spawnParticle(Particle.FIREWORKS_SPARK, player.getLocation().subtract(0, -0.2, 0), 2, 0.1F, 0.1F, 0.1F, 0.2);
|
|
|
|
|
}
|
|
|
|
|
}));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.DRAGON_BREATH, "§5Dragon Breath", teamLore, Particle.DRAGON_BREATH, 1F, 0.02F, 1F, 0.01));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.SPIDER_EYE, "§5Damage", teamLore, Particle.DAMAGE_INDICATOR, 0.2F, 0F, 0.2F, 0.01));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.BLUE_DYE, "§dDolphin", teamLore, Particle.DOLPHIN, 0.2F, 0F, 0.2F, 0.01));
|
|
|
|
|
TEAM_PARTICLES.add(new CircleParticle(Material.RED_CONCRETE, "§cHerzen", loreBuilder(new String[]{"Ring"}, "Team beitritt"), Particle.HEART, null, location -> location.add(0, 2.2, 0)));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.DRAGON_BREATH, "§5Dragon Breath", "Team beitritt", Particle.DRAGON_BREATH, 1F, 0.02F, 1F, 0.01));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.SPIDER_EYE, "§5Damage", "Team beitritt", Particle.DAMAGE_INDICATOR, 0.2F, 0F, 0.2F, 0.01));
|
|
|
|
|
TEAM_PARTICLES.add(new SimpleParticle(Material.BLUE_DYE, "§dDolphin", "Team beitritt", Particle.DOLPHIN, 0.2F, 0F, 0.2F, 0.01));
|
|
|
|
|
TEAM_PARTICLES.add(new CircleParticle(Material.RED_CONCRETE, "§cHerzen", "Team beitritt", Particle.HEART, null, location -> location.add(0, 2.2, 0)));
|
|
|
|
|
|
|
|
|
|
SERVERTEAM_PARTICLES.addAll(TEAM_PARTICLES);
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new SimpleParticle(Material.EXPERIENCE_BOTTLE, "§5Hexe", serverTeamLore, Particle.SPELL_WITCH));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new SimpleParticle(Material.ENCHANTING_TABLE, "§eZauber", serverTeamLore, Particle.ENCHANTMENT_TABLE));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new SimpleParticle(Material.EMERALD_BLOCK, "§2Freude", serverTeamLore, Particle.VILLAGER_HAPPY, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new SimpleParticle(Material.FLINT_AND_STEEL, "§7Flammen", serverTeamLore, Particle.FLAME, 0F, 0.2F, 0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new SimpleParticle(Material.END_ROD, "§fEnd Rod", serverTeamLore, Particle.END_ROD, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.WHITE_WOOL, "§fCloud", serverTeamLore_C, Particle.CLOUD));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.TOTEM_OF_UNDYING, "§aTotem", serverTeamLore_C, Particle.TOTEM));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.WHITE_DYE, "§eZauber", serverTeamLore_C, Particle.ENCHANTMENT_TABLE));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.FIRE_CORAL_BLOCK, "§cFlammen", serverTeamLore_C, Particle.FLAME));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.LIME_SHULKER_BOX, "§aSneeze", serverTeamLore_C, Particle.SNEEZE));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.GREEN_SHULKER_BOX, "§aSchleim", serverTeamLore_C, Particle.SLIME));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.DEAD_BRAIN_CORAL_BLOCK, "§8Smoke", serverTeamLore_C, Particle.CAMPFIRE_COSY_SMOKE));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.FIREWORK_STAR, "§5Town", serverTeamLore_C, Particle.TOWN_AURA));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CircleParticle(Material.MAGMA_BLOCK, "§cFlammen", serverTeamLore_R, Particle.FLAME, null, location -> location.add(0, 1.1, 0), 0F, 0.0F, 0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CircleParticle(Material.ENCHANTED_BOOK, "§fEnchanted", serverTeamLore_R, Particle.ENCHANTMENT_TABLE, null, location -> location.add(0, 1.1, 0), 0.0F, 0.0F, 0.0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CircleParticle(Material.NOTE_BLOCK, "§eNoten", serverTeamLore_R, Particle.NOTE, null, location -> location.add(0, 2.2, 0), 0.0F, 0.0F, 0.0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CircleParticle(Material.GUARDIAN_SPAWN_EGG, "§bWater§7/§cFire", serverTeamLore_2R, Particle.DRIP_WATER, Particle.DRIP_LAVA, location -> location.add(0, 1.1, 0), 0.0F, 0.0F, 0.0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CircleParticle(Material.DIAMOND_SWORD, "§5Magic§7/§eZauber", serverTeamLore_2R, Particle.CRIT_MAGIC, Particle.ENCHANTMENT_TABLE, location -> location.add(0, 1.1, 0), 0.0F, 0.0F, 0.0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudCircleParticle(Material.GLOWSTONE_DUST, "§5Magic", serverTeamLore_CR, Particle.CRIT_MAGIC, location -> location.add(0, 1.1, 0)));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudCircleParticle(Material.FIRE_CORAL, "§cFlammen", serverTeamLore_CR, Particle.FLAME, location -> location.add(0, 1.1, 0)));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudCircleParticle(Material.FIREWORK_ROCKET, "§7Firework", serverTeamLore_CR, Particle.FIREWORKS_SPARK, location -> location.add(0, 1.1, 0)));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudCircleParticle(Material.CYAN_DYE, "§aWater", serverTeamLore_CR, Particle.WATER_WAKE, location -> location.add(0, 1.1, 0)));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new SimpleParticle(Material.EXPERIENCE_BOTTLE, "§5Hexe", "Serverteam", Particle.SPELL_WITCH));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new SimpleParticle(Material.ENCHANTING_TABLE, "§eZauber", "Serverteam", Particle.ENCHANTMENT_TABLE));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new SimpleParticle(Material.EMERALD_BLOCK, "§2Freude", "Serverteam", Particle.VILLAGER_HAPPY, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new SimpleParticle(Material.FLINT_AND_STEEL, "§7Flammen", "Serverteam", Particle.FLAME, 0F, 0.2F, 0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new SimpleParticle(Material.END_ROD, "§fEnd Rod", "Serverteam", Particle.END_ROD, 0.2F, 0.2F, 0.2F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.WHITE_WOOL, "§fCloud", "Serverteam", Particle.CLOUD));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.TOTEM_OF_UNDYING, "§aTotem", "Serverteam", Particle.TOTEM));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.WHITE_DYE, "§eZauber", "Serverteam", Particle.ENCHANTMENT_TABLE));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.FIRE_CORAL_BLOCK, "§cFlammen", "Serverteam", Particle.FLAME));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.LIME_SHULKER_BOX, "§aSneeze", "Serverteam", Particle.SNEEZE));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.GREEN_SHULKER_BOX, "§aSchleim", "Serverteam", Particle.SLIME));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.DEAD_BRAIN_CORAL_BLOCK, "§8Smoke", "Serverteam", Particle.CAMPFIRE_COSY_SMOKE));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudParticle(Material.FIREWORK_STAR, "§5Town", "Serverteam", Particle.TOWN_AURA));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CircleParticle(Material.MAGMA_BLOCK, "§cFlammen", "Serverteam", Particle.FLAME, null, location -> location.add(0, 1.1, 0), 0F, 0.0F, 0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CircleParticle(Material.ENCHANTED_BOOK, "§fEnchanted", "Serverteam", Particle.ENCHANTMENT_TABLE, null, location -> location.add(0, 1.1, 0), 0.0F, 0.0F, 0.0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CircleParticle(Material.NOTE_BLOCK, "§eNoten", "Serverteam", Particle.NOTE, null, location -> location.add(0, 2.2, 0), 0.0F, 0.0F, 0.0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CircleParticle(Material.GUARDIAN_SPAWN_EGG, "§bWater§7/§cFire", "Serverteam", Particle.DRIP_WATER, Particle.DRIP_LAVA, location -> location.add(0, 1.1, 0), 0.0F, 0.0F, 0.0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CircleParticle(Material.DIAMOND_SWORD, "§5Magic§7/§eZauber", "Serverteam", Particle.CRIT_MAGIC, Particle.ENCHANTMENT_TABLE, location -> location.add(0, 1.1, 0), 0.0F, 0.0F, 0.0F, 0.01));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudCircleParticle(Material.GLOWSTONE_DUST, "§5Magic", "Serverteam", Particle.CRIT_MAGIC, location -> location.add(0, 1.1, 0)));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudCircleParticle(Material.FIRE_CORAL, "§cFlammen", "Serverteam", Particle.FLAME, location -> location.add(0, 1.1, 0)));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudCircleParticle(Material.FIREWORK_ROCKET, "§7Firework", "Serverteam", Particle.FIREWORKS_SPARK, location -> location.add(0, 1.1, 0)));
|
|
|
|
|
SERVERTEAM_PARTICLES.add(new CloudCircleParticle(Material.CYAN_DYE, "§aWater", "Serverteam", Particle.WATER_WAKE, location -> location.add(0, 1.1, 0)));
|
|
|
|
|
|
|
|
|
|
PLAYER_PARTICLES.forEach(specialParticle -> PLAYER_PARTICLES_ENTRIES.add(new SWListInv.SWListEntry<>(specialParticle.getItem(), specialParticle)));
|
|
|
|
|
TEAM_PARTICLES.forEach(specialParticle -> TEAM_PARTICLES_ENTRIES.add(new SWListInv.SWListEntry<>(specialParticle.getItem(), specialParticle)));
|
|
|
|
|
Team beitritt? Deutsch? Dänisch? Niederländisch?