mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-27 20:45:27 +01:00
add compatibility sounds
This commit is contained in:
parent
93ce4b60f3
commit
1d41c3842d
@ -0,0 +1,930 @@
|
|||||||
|
package com.songoda.core.compatibility;
|
||||||
|
|
||||||
|
import org.bukkit.Sound;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sounds that are compatible with server versions 1.7+ <br>
|
||||||
|
* TODO: This needs work. Finished 1.8, finished 1.9 blocks, resume with 1.9 entities<br>
|
||||||
|
* Between 1.8 and 1.9, all sounds were renamed, and between 1.12 and 1.13, some
|
||||||
|
* sounds were renamed. New sounds have been added by different versions, as
|
||||||
|
* well. The intent of this class is to provide either the correct sound or a
|
||||||
|
* near equivalent for the current server.
|
||||||
|
*
|
||||||
|
* @since 2019-08-25
|
||||||
|
* @author jascotty2
|
||||||
|
*/
|
||||||
|
public enum CompatibleSounds {
|
||||||
|
|
||||||
|
// some of these values are missing an API value..
|
||||||
|
// would using the raw strings be better?
|
||||||
|
// 1.8 list:
|
||||||
|
// https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/mapping-and-modding-tutorials/2213619-1-8-all-playsound-sound-arguments
|
||||||
|
AMBIENT_CAVE(ServerVersion.V1_9, v("AMBIENCE_CAVE")),
|
||||||
|
AMBIENT_UNDERWATER_ENTER,
|
||||||
|
AMBIENT_UNDERWATER_EXIT,
|
||||||
|
AMBIENT_UNDERWATER_LOOP,
|
||||||
|
AMBIENT_UNDERWATER_LOOP_ADDITIONS,
|
||||||
|
AMBIENT_UNDERWATER_LOOP_ADDITIONS_RARE,
|
||||||
|
AMBIENT_UNDERWATER_LOOP_ADDITIONS_ULTRA_RARE,
|
||||||
|
BLOCK_ANVIL_BREAK(ServerVersion.V1_9, v("ANVIL_BREAK")),
|
||||||
|
BLOCK_ANVIL_DESTROY(ServerVersion.V1_9, v("ANVIL_BREAK", true)),
|
||||||
|
BLOCK_ANVIL_FALL(ServerVersion.V1_9, v("ANVIL_LAND", true)),
|
||||||
|
BLOCK_ANVIL_HIT(ServerVersion.V1_9, v("ANVIL_LAND", true)),
|
||||||
|
BLOCK_ANVIL_LAND(ServerVersion.V1_9, v("ANVIL_LAND")),
|
||||||
|
BLOCK_ANVIL_PLACE(ServerVersion.V1_9, v("ANVIL_LAND", true)),
|
||||||
|
BLOCK_ANVIL_STEP(ServerVersion.V1_9, v("ANVIL_LAND", true)),
|
||||||
|
BLOCK_ANVIL_USE("ANVIL_USE"),
|
||||||
|
BLOCK_BAMBOO_BREAK(ServerVersion.V1_14, v(ServerVersion.V1_13, "BLOCK_WOOD_BREAK"), v(ServerVersion.V1_8, "DIG_WOOD")),
|
||||||
|
BLOCK_BAMBOO_FALL,
|
||||||
|
BLOCK_BAMBOO_HIT,
|
||||||
|
BLOCK_BAMBOO_PLACE,
|
||||||
|
BLOCK_BAMBOO_SAPLING_BREAK,
|
||||||
|
BLOCK_BAMBOO_SAPLING_HIT,
|
||||||
|
BLOCK_BAMBOO_SAPLING_PLACE,
|
||||||
|
BLOCK_BAMBOO_STEP,
|
||||||
|
BLOCK_BARREL_CLOSE,
|
||||||
|
BLOCK_BARREL_OPEN,
|
||||||
|
BLOCK_BEACON_ACTIVATE,
|
||||||
|
BLOCK_BEACON_AMBIENT,
|
||||||
|
BLOCK_BEACON_DEACTIVATE,
|
||||||
|
BLOCK_BEACON_POWER_SELECT,
|
||||||
|
BLOCK_BELL_RESONATE,
|
||||||
|
BLOCK_BELL_USE,
|
||||||
|
BLOCK_BLASTFURNACE_FIRE_CRACKLE,
|
||||||
|
BLOCK_BREWING_STAND_BREW(ServerVersion.V1_9, v("LAVA_POP", true)),
|
||||||
|
BLOCK_BUBBLE_COLUMN_BUBBLE_POP,
|
||||||
|
BLOCK_BUBBLE_COLUMN_UPWARDS_AMBIENT,
|
||||||
|
BLOCK_BUBBLE_COLUMN_UPWARDS_INSIDE,
|
||||||
|
BLOCK_BUBBLE_COLUMN_WHIRLPOOL_AMBIENT,
|
||||||
|
BLOCK_BUBBLE_COLUMN_WHIRLPOOL_INSIDE,
|
||||||
|
BLOCK_CAMPFIRE_CRACKLE,
|
||||||
|
BLOCK_CHEST_CLOSE(ServerVersion.V1_9, v("CHEST_CLOSE")),
|
||||||
|
BLOCK_CHEST_LOCKED(ServerVersion.V1_9, v("CHEST_CLOSE", true)),
|
||||||
|
BLOCK_CHEST_OPEN(ServerVersion.V1_9, v("CHEST_OPEN")),
|
||||||
|
BLOCK_CHORUS_FLOWER_DEATH(ServerVersion.V1_9, v(null, true)), // I have no idea..
|
||||||
|
BLOCK_CHORUS_FLOWER_GROW(ServerVersion.V1_9, v(null, true)), // I have no idea..
|
||||||
|
BLOCK_COMPARATOR_CLICK(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_COMPOSTER_EMPTY,
|
||||||
|
BLOCK_COMPOSTER_FILL,
|
||||||
|
BLOCK_COMPOSTER_FILL_SUCCESS,
|
||||||
|
BLOCK_COMPOSTER_READY,
|
||||||
|
BLOCK_CONDUIT_ACTIVATE,
|
||||||
|
BLOCK_CONDUIT_AMBIENT,
|
||||||
|
BLOCK_CONDUIT_AMBIENT_SHORT,
|
||||||
|
BLOCK_CONDUIT_ATTACK_TARGET,
|
||||||
|
BLOCK_CONDUIT_DEACTIVATE,
|
||||||
|
BLOCK_CORAL_BLOCK_BREAK,
|
||||||
|
BLOCK_CORAL_BLOCK_FALL,
|
||||||
|
BLOCK_CORAL_BLOCK_HIT,
|
||||||
|
BLOCK_CORAL_BLOCK_PLACE,
|
||||||
|
BLOCK_CORAL_BLOCK_STEP,
|
||||||
|
BLOCK_CROP_BREAK,
|
||||||
|
BLOCK_DISPENSER_DISPENSE(ServerVersion.V1_9, v("SHOOT_ARROW", true)),
|
||||||
|
BLOCK_DISPENSER_FAIL(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_DISPENSER_LAUNCH(ServerVersion.V1_9, v("GHAST_FIREBALL", true)),
|
||||||
|
BLOCK_ENCHANTMENT_TABLE_USE,
|
||||||
|
BLOCK_ENDER_CHEST_CLOSE(ServerVersion.V1_9, v("CHEST_CLOSE", true)),
|
||||||
|
BLOCK_ENDER_CHEST_OPEN(ServerVersion.V1_9, v("CHEST_OPEN", true)),
|
||||||
|
BLOCK_END_GATEWAY_SPAWN(ServerVersion.V1_9, v("PORTAL_TRIGGER", true)),
|
||||||
|
BLOCK_END_PORTAL_FRAME_FILL,
|
||||||
|
BLOCK_END_PORTAL_SPAWN,
|
||||||
|
BLOCK_FENCE_GATE_CLOSE("DOOR_CLOSE"),
|
||||||
|
BLOCK_FENCE_GATE_OPEN("DOOR_OPEN"),
|
||||||
|
BLOCK_FIRE_AMBIENT("FIRE"),
|
||||||
|
BLOCK_FIRE_EXTINGUISH("FIZZ"),
|
||||||
|
BLOCK_FURNACE_FIRE_CRACKLE(ServerVersion.V1_9, v("FIRE", true)),
|
||||||
|
BLOCK_GLASS_BREAK("GLASS"),
|
||||||
|
BLOCK_GLASS_FALL(ServerVersion.V1_9, v("STEP_GRASS", true)),
|
||||||
|
BLOCK_GLASS_HIT(ServerVersion.V1_9, v("STEP_GRASS", true)),
|
||||||
|
BLOCK_GLASS_PLACE(ServerVersion.V1_9, v("STEP_GRASS", true)),
|
||||||
|
BLOCK_GLASS_STEP(ServerVersion.V1_9, v("STEP_STONE", true)),
|
||||||
|
BLOCK_GRASS_BREAK("DIG_GRASS"),
|
||||||
|
BLOCK_GRASS_FALL(ServerVersion.V1_9, v("STEP_GRASS", true)),
|
||||||
|
BLOCK_GRASS_HIT(ServerVersion.V1_9, v("STEP_GRASS", true)),
|
||||||
|
BLOCK_GRASS_PLACE(ServerVersion.V1_9, v("STEP_GRASS", true)),
|
||||||
|
BLOCK_GRASS_STEP("STEP_GRASS"),
|
||||||
|
BLOCK_GRAVEL_BREAK("DIG_GRAVEL"),
|
||||||
|
BLOCK_GRAVEL_FALL(ServerVersion.V1_9, v("STEP_GRAVEL", true)),
|
||||||
|
BLOCK_GRAVEL_HIT(ServerVersion.V1_9, v("STEP_GRAVEL", true)),
|
||||||
|
BLOCK_GRAVEL_PLACE(ServerVersion.V1_9, v("STEP_GRAVEL", true)),
|
||||||
|
BLOCK_GRAVEL_STEP("STEP_GRAVEL"),
|
||||||
|
BLOCK_GRINDSTONE_USE,
|
||||||
|
BLOCK_IRON_DOOR_CLOSE("DOOR_CLOSE"),
|
||||||
|
BLOCK_IRON_DOOR_OPEN("DOOR_OPEN"),
|
||||||
|
BLOCK_IRON_TRAPDOOR_CLOSE("DOOR_CLOSE"),
|
||||||
|
BLOCK_IRON_TRAPDOOR_OPEN("DOOR_OPEN"),
|
||||||
|
BLOCK_LADDER_BREAK(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_LADDER_FALL(ServerVersion.V1_9, v("STEP_LADDER", true)),
|
||||||
|
BLOCK_LADDER_HIT(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_LADDER_PLACE(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_LADDER_STEP("STEP_LADDER"),
|
||||||
|
BLOCK_LANTERN_BREAK,
|
||||||
|
BLOCK_LANTERN_FALL,
|
||||||
|
BLOCK_LANTERN_HIT,
|
||||||
|
BLOCK_LANTERN_PLACE,
|
||||||
|
BLOCK_LANTERN_STEP,
|
||||||
|
BLOCK_LAVA_AMBIENT("LAVA"),
|
||||||
|
BLOCK_LAVA_EXTINGUISH("FIZZ"),
|
||||||
|
BLOCK_LAVA_POP("LAVA_POP"),
|
||||||
|
BLOCK_LEVER_CLICK("WOOD_CLICK"),
|
||||||
|
BLOCK_LILY_PAD_PLACE(ServerVersion.V1_13, v(ServerVersion.V1_9, "BLOCK_WATERLILY_PLACE"), v(null, true)),
|
||||||
|
BLOCK_METAL_BREAK(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_METAL_FALL(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_METAL_HIT(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_METAL_PLACE(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_METAL_PRESSURE_PLATE_CLICK_OFF(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_METAL_PRESSURE_PLATE_CLICK_ON(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_METAL_STEP(ServerVersion.V1_9, v("STEP_STONE", true)),
|
||||||
|
BLOCK_NETHER_WART_BREAK,
|
||||||
|
BLOCK_NOTE_BLOCK_BANJO(ServerVersion.V1_14, v(ServerVersion.V1_13, "BLOCK_NOTE_BLOCK_GUITAR", true), v(ServerVersion.V1_9, "BLOCK_NOTE_GUITAR", true), v("NOTE_BASS_GUITAR", true)),
|
||||||
|
BLOCK_NOTE_BLOCK_BASEDRUM(v(ServerVersion.V1_9, "BLOCK_NOTE_BASEDRUM"), v("NOTE_BASS_DRUM")),
|
||||||
|
BLOCK_NOTE_BLOCK_BASS(ServerVersion.V1_13, v(ServerVersion.V1_12, "BLOCK_NOTE_BASS"), v("NOTE_BASS")),
|
||||||
|
BLOCK_NOTE_BLOCK_BELL(ServerVersion.V1_13, v(ServerVersion.V1_12, "BLOCK_NOTE_BELL"), v(ServerVersion.V1_11, "BLOCK_NOTE_HARP", true), v("NOTE_PLING", true)),
|
||||||
|
BLOCK_NOTE_BLOCK_BIT(ServerVersion.V1_14, v(ServerVersion.V1_13, "BLOCK_NOTE_BLOCK_BELL", true), v(ServerVersion.V1_12, "BLOCK_NOTE_BELL", true), v(ServerVersion.V1_11, "BLOCK_NOTE_HARP", true), v("NOTE_PLING", true)),
|
||||||
|
BLOCK_NOTE_BLOCK_CHIME(ServerVersion.V1_13, v(ServerVersion.V1_12, "BLOCK_NOTE_CHIME"), v(ServerVersion.V1_11, "BLOCK_NOTE_PLING", true), v("NOTE_PLING", true)),
|
||||||
|
BLOCK_NOTE_BLOCK_COW_BELL(ServerVersion.V1_14, v(ServerVersion.V1_13, "BLOCK_NOTE_BLOCK_BELL", true), v(ServerVersion.V1_12, "BLOCK_NOTE_BELL"), v(ServerVersion.V1_11, "BLOCK_NOTE_HARP", true), v("NOTE_PLING", true)),
|
||||||
|
BLOCK_NOTE_BLOCK_DIDGERIDOO(ServerVersion.V1_14, v(ServerVersion.V1_13, "BLOCK_NOTE_BLOCK_FLUTE", true), v(ServerVersion.V1_12, "BLOCK_NOTE_FLUTE", true), v(ServerVersion.V1_11, "BLOCK_NOTE_HARP", true), v("NOTE_BASS_GUITAR", true)),
|
||||||
|
BLOCK_NOTE_BLOCK_FLUTE(ServerVersion.V1_13, v(ServerVersion.V1_12, "BLOCK_NOTE_FLUTE"), v(ServerVersion.V1_11, "BLOCK_NOTE_HARP", true), v("NOTE_BASS_GUITAR", true)),
|
||||||
|
BLOCK_NOTE_BLOCK_GUITAR(v(ServerVersion.V1_12, "BLOCK_NOTE_GUITAR"), v(ServerVersion.V1_11, "BLOCK_NOTE_HARP", true), v("NOTE_BASS_GUITAR")), // This value disappeared from the API from 1.9-1.11 (returned in 12)
|
||||||
|
BLOCK_NOTE_BLOCK_HARP(ServerVersion.V1_13, v(ServerVersion.V1_12, "BLOCK_NOTE_HARP"), v("NOTE_PIANO")),
|
||||||
|
BLOCK_NOTE_BLOCK_HAT(ServerVersion.V1_13, v(ServerVersion.V1_12, "BLOCK_NOTE_HAT"), v("NOTE_STICKS")),
|
||||||
|
BLOCK_NOTE_BLOCK_IRON_XYLOPHONE(ServerVersion.V1_14, v(ServerVersion.V1_13, "BLOCK_NOTE_BLOCK_XYLOPHONE", true), v(ServerVersion.V1_12, "BLOCK_NOTE_XYLOPHONE", true)),
|
||||||
|
BLOCK_NOTE_BLOCK_PLING(ServerVersion.V1_13, v(ServerVersion.V1_12, "BLOCK_NOTE_PLING"), v("NOTE_PLING")),
|
||||||
|
BLOCK_NOTE_BLOCK_SNARE(ServerVersion.V1_13, v(ServerVersion.V1_12, "BLOCK_NOTE_SNARE"), v("NOTE_SNARE_DRUM")),
|
||||||
|
BLOCK_NOTE_BLOCK_XYLOPHONE(ServerVersion.V1_13, v(ServerVersion.V1_12, "BLOCK_NOTE_XYLOPHONE"), v("NOTE_PLING", true)),
|
||||||
|
BLOCK_PISTON_CONTRACT("PISTON_RETRACT"),
|
||||||
|
BLOCK_PISTON_EXTEND("PISTON_EXTEND"),
|
||||||
|
BLOCK_PORTAL_AMBIENT("PORTAL"),
|
||||||
|
BLOCK_PORTAL_TRAVEL("PORTAL_TRAVEL"),
|
||||||
|
BLOCK_PORTAL_TRIGGER("PORTAL_TRIGGER"),
|
||||||
|
BLOCK_PUMPKIN_CARVE,
|
||||||
|
BLOCK_REDSTONE_TORCH_BURNOUT("FIZZ"),
|
||||||
|
BLOCK_SAND_BREAK("DIG_SAND"),
|
||||||
|
BLOCK_SAND_FALL(ServerVersion.V1_9, v( "STEP_SAND", true)),
|
||||||
|
BLOCK_SAND_HIT(ServerVersion.V1_9, v( "STEP_SAND", true)),
|
||||||
|
BLOCK_SAND_PLACE(ServerVersion.V1_9, v( "STEP_SAND", true)),
|
||||||
|
BLOCK_SAND_STEP("STEP_SAND"),
|
||||||
|
BLOCK_SCAFFOLDING_BREAK,
|
||||||
|
BLOCK_SCAFFOLDING_FALL,
|
||||||
|
BLOCK_SCAFFOLDING_HIT,
|
||||||
|
BLOCK_SCAFFOLDING_PLACE,
|
||||||
|
BLOCK_SCAFFOLDING_STEP,
|
||||||
|
BLOCK_SHULKER_BOX_CLOSE("CHEST_CLOSE"),
|
||||||
|
BLOCK_SHULKER_BOX_OPEN("CHEST_OPEN"),
|
||||||
|
BLOCK_SLIME_BLOCK_BREAK(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_SLIME_BLOCK_FALL(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_SLIME_BLOCK_HIT(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_SLIME_BLOCK_PLACE(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_SLIME_BLOCK_STEP(ServerVersion.V1_9, v(null, true)),
|
||||||
|
BLOCK_SMOKER_SMOKE,
|
||||||
|
BLOCK_SNOW_BREAK("DIG_SNOW"),
|
||||||
|
BLOCK_SNOW_FALL(ServerVersion.V1_9, v("STEP_SNOW", true)),
|
||||||
|
BLOCK_SNOW_HIT(ServerVersion.V1_9, v("STEP_SNOW", true)),
|
||||||
|
BLOCK_SNOW_PLACE(ServerVersion.V1_9, v("STEP_SNOW", true)),
|
||||||
|
BLOCK_SNOW_STEP("STEP_SNOW"),
|
||||||
|
BLOCK_STONE_BREAK("DIG_STONE"),
|
||||||
|
BLOCK_STONE_BUTTON_CLICK_OFF(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_STONE_BUTTON_CLICK_ON(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_STONE_FALL,
|
||||||
|
BLOCK_STONE_HIT,
|
||||||
|
BLOCK_STONE_PLACE,
|
||||||
|
BLOCK_STONE_PRESSURE_PLATE_CLICK_OFF,
|
||||||
|
BLOCK_STONE_PRESSURE_PLATE_CLICK_ON,
|
||||||
|
BLOCK_STONE_STEP("STEP_STONE"),
|
||||||
|
BLOCK_SWEET_BERRY_BUSH_BREAK,
|
||||||
|
BLOCK_SWEET_BERRY_BUSH_PLACE,
|
||||||
|
BLOCK_TRIPWIRE_ATTACH(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_TRIPWIRE_CLICK_OFF(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_TRIPWIRE_CLICK_ON(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_TRIPWIRE_DETACH(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_WATER_AMBIENT("WATER"),
|
||||||
|
BLOCK_WET_GRASS_BREAK,
|
||||||
|
BLOCK_WET_GRASS_FALL,
|
||||||
|
BLOCK_WET_GRASS_HIT,
|
||||||
|
BLOCK_WET_GRASS_PLACE,
|
||||||
|
BLOCK_WET_GRASS_STEP,
|
||||||
|
BLOCK_WOODEN_BUTTON_CLICK_OFF("WOOD_CLICK"),
|
||||||
|
BLOCK_WOODEN_BUTTON_CLICK_ON("WOOD_CLICK"),
|
||||||
|
BLOCK_WOODEN_DOOR_CLOSE("DOOR_CLOSE"),
|
||||||
|
BLOCK_WOODEN_DOOR_OPEN("DOOR_OPEN"),
|
||||||
|
BLOCK_WOODEN_PRESSURE_PLATE_CLICK_OFF(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_WOODEN_PRESSURE_PLATE_CLICK_ON(ServerVersion.V1_9, v("WOOD_CLICK", true)),
|
||||||
|
BLOCK_WOODEN_TRAPDOOR_CLOSE("DOOR_OPEN"),
|
||||||
|
BLOCK_WOODEN_TRAPDOOR_OPEN("DOOR_OPEN"),
|
||||||
|
BLOCK_WOOD_BREAK("DIG_WOOD"),
|
||||||
|
BLOCK_WOOD_FALL(ServerVersion.V1_9, v("STEP_WOOD", true)),
|
||||||
|
BLOCK_WOOD_HIT(ServerVersion.V1_9, v("STEP_WOOD", true)),
|
||||||
|
BLOCK_WOOD_PLACE(ServerVersion.V1_9, v("STEP_WOOD", true)),
|
||||||
|
BLOCK_WOOD_STEP("STEP_WOOD"),
|
||||||
|
BLOCK_WOOL_BREAK(ServerVersion.V1_13, v(ServerVersion.V1_12, "BLOCK_CLOTH_BREAK"), v("DIG_WOOL")),
|
||||||
|
BLOCK_WOOL_FALL(ServerVersion.V1_13, v(ServerVersion.V1_9,"BLOCK_CLOTH_STEP", true), v("STEP_WOOL", true)),
|
||||||
|
BLOCK_WOOL_HIT(ServerVersion.V1_13, v(ServerVersion.V1_9,"BLOCK_CLOTH_STEP", true), v("STEP_WOOL", true)),
|
||||||
|
BLOCK_WOOL_PLACE(ServerVersion.V1_13, v(ServerVersion.V1_9,"BLOCK_CLOTH_STEP", true), v("STEP_WOOL", true)),
|
||||||
|
BLOCK_WOOL_STEP(ServerVersion.V1_13, v(ServerVersion.V1_12, "BLOCK_CLOTH_STEP"), v("STEP_WOOL")),
|
||||||
|
ENCHANT_THORNS_HIT,
|
||||||
|
ENTITY_ARMOR_STAND_BREAK,
|
||||||
|
ENTITY_ARMOR_STAND_FALL,
|
||||||
|
ENTITY_ARMOR_STAND_HIT,
|
||||||
|
ENTITY_ARMOR_STAND_PLACE,
|
||||||
|
ENTITY_ARROW_HIT("SUCCESSFUL_HIT"), // these may be reversed..
|
||||||
|
ENTITY_ARROW_HIT_PLAYER("ARROW_HIT"),
|
||||||
|
ENTITY_ARROW_SHOOT("SHOOT_ARROW"),
|
||||||
|
ENTITY_BAT_AMBIENT("BAT_IDLE"),
|
||||||
|
ENTITY_BAT_DEATH("BAT_DEATH"),
|
||||||
|
ENTITY_BAT_HURT("BAT_HURT"),
|
||||||
|
ENTITY_BAT_LOOP("BAT_LOOP"),
|
||||||
|
ENTITY_BAT_TAKEOFF("BAT_TAKEOFF"),
|
||||||
|
ENTITY_BLAZE_AMBIENT("BLAZE_BREATH"),
|
||||||
|
ENTITY_BLAZE_BURN("BLAZE_HIT"),
|
||||||
|
ENTITY_BLAZE_DEATH("BLAZE_DEATH"),
|
||||||
|
ENTITY_BLAZE_HURT("BLAZE_HIT"),
|
||||||
|
ENTITY_BLAZE_SHOOT,
|
||||||
|
ENTITY_BOAT_PADDLE_LAND,
|
||||||
|
ENTITY_BOAT_PADDLE_WATER,
|
||||||
|
ENTITY_CAT_AMBIENT,
|
||||||
|
ENTITY_CAT_BEG_FOR_FOOD("CAT_MEOW"),
|
||||||
|
ENTITY_CAT_DEATH,
|
||||||
|
ENTITY_CAT_EAT("EAT"),
|
||||||
|
ENTITY_CAT_HISS("CAT_HISS"),
|
||||||
|
ENTITY_CAT_HURT("CAT_HIT"),
|
||||||
|
ENTITY_CAT_PURR("CAT_PURR"),
|
||||||
|
ENTITY_CAT_PURREOW("CAT_PURREOW"),
|
||||||
|
ENTITY_CAT_STRAY_AMBIENT,
|
||||||
|
ENTITY_CHICKEN_AMBIENT("CHICKEN_IDLE"),
|
||||||
|
ENTITY_CHICKEN_DEATH,
|
||||||
|
ENTITY_CHICKEN_EGG("CHICKEN_EGG_POP"),
|
||||||
|
ENTITY_CHICKEN_HURT("CHICKEN_HURT"),
|
||||||
|
ENTITY_CHICKEN_STEP("CHICKEN_WALK"),
|
||||||
|
ENTITY_COD_AMBIENT("COW_IDLE"),
|
||||||
|
ENTITY_COD_DEATH,
|
||||||
|
ENTITY_COD_FLOP,
|
||||||
|
ENTITY_COD_HURT("COW_HURT"),
|
||||||
|
ENTITY_COW_AMBIENT,
|
||||||
|
ENTITY_COW_DEATH,
|
||||||
|
ENTITY_COW_HURT("COW_HURT"),
|
||||||
|
ENTITY_COW_MILK,
|
||||||
|
ENTITY_COW_STEP("COW_WALK"),
|
||||||
|
ENTITY_CREEPER_DEATH("CREEPER_DEATH"),
|
||||||
|
ENTITY_CREEPER_HURT,
|
||||||
|
ENTITY_CREEPER_PRIMED("CREEPER_HISS"),
|
||||||
|
ENTITY_DOLPHIN_AMBIENT,
|
||||||
|
ENTITY_DOLPHIN_AMBIENT_WATER,
|
||||||
|
ENTITY_DOLPHIN_ATTACK,
|
||||||
|
ENTITY_DOLPHIN_DEATH,
|
||||||
|
ENTITY_DOLPHIN_EAT(ServerVersion.V1_13, v(ServerVersion.V1_12, "ENTITY_GENERIC_EAT", true), v("EAT", true)),
|
||||||
|
ENTITY_DOLPHIN_HURT,
|
||||||
|
ENTITY_DOLPHIN_JUMP,
|
||||||
|
ENTITY_DOLPHIN_PLAY,
|
||||||
|
ENTITY_DOLPHIN_SPLASH(ServerVersion.V1_13, v(ServerVersion.V1_12, "ENTITY_GENERIC_SPLASH", true), v("SPLASH", true)),
|
||||||
|
ENTITY_DOLPHIN_SWIM,
|
||||||
|
ENTITY_DONKEY_AMBIENT("DONKEY_IDLE"),
|
||||||
|
ENTITY_DONKEY_ANGRY("DONKEY_ANGRY"),
|
||||||
|
ENTITY_DONKEY_CHEST,
|
||||||
|
ENTITY_DONKEY_DEATH("DONKEY_DEATH"),
|
||||||
|
ENTITY_DONKEY_HURT("DONKEY_HIT"),
|
||||||
|
ENTITY_DRAGON_FIREBALL_EXPLODE,
|
||||||
|
ENTITY_DROWNED_AMBIENT,
|
||||||
|
ENTITY_DROWNED_AMBIENT_WATER,
|
||||||
|
ENTITY_DROWNED_DEATH,
|
||||||
|
ENTITY_DROWNED_DEATH_WATER,
|
||||||
|
ENTITY_DROWNED_HURT,
|
||||||
|
ENTITY_DROWNED_HURT_WATER,
|
||||||
|
ENTITY_DROWNED_SHOOT,
|
||||||
|
ENTITY_DROWNED_STEP,
|
||||||
|
ENTITY_DROWNED_SWIM,
|
||||||
|
ENTITY_EGG_THROW,
|
||||||
|
ENTITY_ELDER_GUARDIAN_AMBIENT,
|
||||||
|
ENTITY_ELDER_GUARDIAN_AMBIENT_LAND,
|
||||||
|
ENTITY_ELDER_GUARDIAN_CURSE,
|
||||||
|
ENTITY_ELDER_GUARDIAN_DEATH,
|
||||||
|
ENTITY_ELDER_GUARDIAN_DEATH_LAND,
|
||||||
|
ENTITY_ELDER_GUARDIAN_FLOP,
|
||||||
|
ENTITY_ELDER_GUARDIAN_HURT,
|
||||||
|
ENTITY_ELDER_GUARDIAN_HURT_LAND,
|
||||||
|
ENTITY_ENDERMAN_AMBIENT("ENDERMAN_IDLE"),
|
||||||
|
ENTITY_ENDERMAN_DEATH("ENDERMAN_DEATH"),
|
||||||
|
ENTITY_ENDERMAN_HURT("ENDERMAN_HIT"),
|
||||||
|
ENTITY_ENDERMAN_SCREAM("ENDERMAN_SCREAM"),
|
||||||
|
ENTITY_ENDERMAN_STARE("ENDERMAN_STARE"),
|
||||||
|
ENTITY_ENDERMAN_TELEPORT("ENDERMAN_TELEPORT"),
|
||||||
|
ENTITY_ENDERMITE_AMBIENT,
|
||||||
|
ENTITY_ENDERMITE_DEATH,
|
||||||
|
ENTITY_ENDERMITE_HURT,
|
||||||
|
ENTITY_ENDERMITE_STEP,
|
||||||
|
ENTITY_ENDER_DRAGON_AMBIENT,
|
||||||
|
ENTITY_ENDER_DRAGON_DEATH("ENDERDRAGON_DEATH"),
|
||||||
|
ENTITY_ENDER_DRAGON_FLAP("ENDERDRAGON_WINGS"),
|
||||||
|
ENTITY_ENDER_DRAGON_GROWL("ENDERDRAGON_GROWL"),
|
||||||
|
ENTITY_ENDER_DRAGON_HURT("ENDERDRAGON_HIT"),
|
||||||
|
ENTITY_ENDER_DRAGON_SHOOT,
|
||||||
|
ENTITY_ENDER_EYE_DEATH,
|
||||||
|
ENTITY_ENDER_EYE_LAUNCH,
|
||||||
|
ENTITY_ENDER_PEARL_THROW,
|
||||||
|
ENTITY_EVOKER_AMBIENT,
|
||||||
|
ENTITY_EVOKER_CAST_SPELL,
|
||||||
|
ENTITY_EVOKER_CELEBRATE,
|
||||||
|
ENTITY_EVOKER_DEATH,
|
||||||
|
ENTITY_EVOKER_FANGS_ATTACK,
|
||||||
|
ENTITY_EVOKER_HURT,
|
||||||
|
ENTITY_EVOKER_PREPARE_ATTACK,
|
||||||
|
ENTITY_EVOKER_PREPARE_SUMMON,
|
||||||
|
ENTITY_EVOKER_PREPARE_WOLOLO,
|
||||||
|
ENTITY_EXPERIENCE_BOTTLE_THROW,
|
||||||
|
ENTITY_EXPERIENCE_ORB_PICKUP("ORB_PICKUP"),
|
||||||
|
ENTITY_FIREWORK_ROCKET_BLAST("FIREWORK_BLAST"),
|
||||||
|
ENTITY_FIREWORK_ROCKET_BLAST_FAR("FIREWORK_BLAST2"),
|
||||||
|
ENTITY_FIREWORK_ROCKET_LARGE_BLAST("FIREWORK_LARGE_BLAST"),
|
||||||
|
ENTITY_FIREWORK_ROCKET_LARGE_BLAST_FAR("FIREWORK_LARGE_BLAST2"),
|
||||||
|
ENTITY_FIREWORK_ROCKET_LAUNCH("FIREWORK_LAUNCH"),
|
||||||
|
ENTITY_FIREWORK_ROCKET_SHOOT,
|
||||||
|
ENTITY_FIREWORK_ROCKET_TWINKLE("FIREWORK_TWINKLE"),
|
||||||
|
ENTITY_FIREWORK_ROCKET_TWINKLE_FAR("FIREWORK_TWINKLE2"),
|
||||||
|
ENTITY_FISHING_BOBBER_RETRIEVE,
|
||||||
|
ENTITY_FISHING_BOBBER_SPLASH,
|
||||||
|
ENTITY_FISHING_BOBBER_THROW,
|
||||||
|
ENTITY_FISH_SWIM,
|
||||||
|
ENTITY_FOX_AGGRO,
|
||||||
|
ENTITY_FOX_AMBIENT,
|
||||||
|
ENTITY_FOX_BITE,
|
||||||
|
ENTITY_FOX_DEATH,
|
||||||
|
ENTITY_FOX_EAT("EAT"),
|
||||||
|
ENTITY_FOX_HURT,
|
||||||
|
ENTITY_FOX_SCREECH,
|
||||||
|
ENTITY_FOX_SLEEP,
|
||||||
|
ENTITY_FOX_SNIFF,
|
||||||
|
ENTITY_FOX_SPIT,
|
||||||
|
ENTITY_GENERIC_BIG_FALL("FALL_BIG"),
|
||||||
|
ENTITY_GENERIC_BURN,
|
||||||
|
ENTITY_GENERIC_DEATH,
|
||||||
|
ENTITY_GENERIC_DRINK("DRINK"),
|
||||||
|
ENTITY_GENERIC_EAT("EAT"),
|
||||||
|
ENTITY_GENERIC_EXPLODE("EXPLODE"),
|
||||||
|
ENTITY_GENERIC_EXTINGUISH_FIRE("FIZZ"),
|
||||||
|
ENTITY_GENERIC_HURT("HURT_FLESH"),
|
||||||
|
ENTITY_GENERIC_SMALL_FALL("FALL_SMALL"),
|
||||||
|
ENTITY_GENERIC_SPLASH(ServerVersion.V1_9, v("SPLASH", true)),
|
||||||
|
ENTITY_GENERIC_SWIM,
|
||||||
|
ENTITY_GHAST_AMBIENT("GHAST_MOAN"),
|
||||||
|
ENTITY_GHAST_DEATH("GHAST_DEATH"),
|
||||||
|
ENTITY_GHAST_HURT("GHAST_SCREAM2"),
|
||||||
|
ENTITY_GHAST_SCREAM("GHAST_SCREAM"),
|
||||||
|
ENTITY_GHAST_SHOOT("GHAST_FIREBALL"),
|
||||||
|
ENTITY_GHAST_WARN("GHAST_CHARGE"),
|
||||||
|
ENTITY_GUARDIAN_AMBIENT,
|
||||||
|
ENTITY_GUARDIAN_AMBIENT_LAND,
|
||||||
|
ENTITY_GUARDIAN_ATTACK,
|
||||||
|
ENTITY_GUARDIAN_DEATH,
|
||||||
|
ENTITY_GUARDIAN_DEATH_LAND,
|
||||||
|
ENTITY_GUARDIAN_FLOP,
|
||||||
|
ENTITY_GUARDIAN_HURT,
|
||||||
|
ENTITY_GUARDIAN_HURT_LAND,
|
||||||
|
ENTITY_HORSE_AMBIENT("HORSE_IDLE"),
|
||||||
|
ENTITY_HORSE_ANGRY("HORSE_ANGRY"),
|
||||||
|
ENTITY_HORSE_ARMOR("HORSE_ARMOR"),
|
||||||
|
ENTITY_HORSE_BREATHE("HORSE_BREATHE"),
|
||||||
|
ENTITY_HORSE_DEATH("HORSE_DEATH"),
|
||||||
|
ENTITY_HORSE_EAT("EAT"),
|
||||||
|
ENTITY_HORSE_GALLOP("HORSE_GALLOP"),
|
||||||
|
ENTITY_HORSE_HURT("HORSE_HIT"),
|
||||||
|
ENTITY_HORSE_JUMP("HORSE_JUMP"),
|
||||||
|
ENTITY_HORSE_LAND("HORSE_LAND"),
|
||||||
|
ENTITY_HORSE_SADDLE("HORSE_SADDLE"),
|
||||||
|
ENTITY_HORSE_STEP("HORSE_SOFT"),
|
||||||
|
ENTITY_HORSE_STEP_WOOD("HORSE_WOOD"),
|
||||||
|
ENTITY_HOSTILE_BIG_FALL,
|
||||||
|
ENTITY_HOSTILE_DEATH,
|
||||||
|
ENTITY_HOSTILE_HURT,
|
||||||
|
ENTITY_HOSTILE_SMALL_FALL,
|
||||||
|
ENTITY_HOSTILE_SPLASH(ServerVersion.V1_9, v("SPLASH", true)),
|
||||||
|
ENTITY_HOSTILE_SWIM,
|
||||||
|
ENTITY_HUSK_AMBIENT,
|
||||||
|
ENTITY_HUSK_CONVERTED_TO_ZOMBIE,
|
||||||
|
ENTITY_HUSK_DEATH,
|
||||||
|
ENTITY_HUSK_HURT,
|
||||||
|
ENTITY_HUSK_STEP,
|
||||||
|
ENTITY_ILLUSIONER_AMBIENT,
|
||||||
|
ENTITY_ILLUSIONER_CAST_SPELL,
|
||||||
|
ENTITY_ILLUSIONER_DEATH,
|
||||||
|
ENTITY_ILLUSIONER_HURT,
|
||||||
|
ENTITY_ILLUSIONER_MIRROR_MOVE,
|
||||||
|
ENTITY_ILLUSIONER_PREPARE_BLINDNESS,
|
||||||
|
ENTITY_ILLUSIONER_PREPARE_MIRROR,
|
||||||
|
ENTITY_IRON_GOLEM_ATTACK("IRONGOLEM_THROW"),
|
||||||
|
ENTITY_IRON_GOLEM_DEATH("IRONGOLEM_DEATH"),
|
||||||
|
ENTITY_IRON_GOLEM_HURT("IRONGOLEM_HIT"),
|
||||||
|
ENTITY_IRON_GOLEM_STEP("IRONGOLEM_WALK"),
|
||||||
|
ENTITY_ITEM_BREAK("ITEM_BREAK"),
|
||||||
|
ENTITY_ITEM_FRAME_ADD_ITEM,
|
||||||
|
ENTITY_ITEM_FRAME_BREAK,
|
||||||
|
ENTITY_ITEM_FRAME_PLACE,
|
||||||
|
ENTITY_ITEM_FRAME_REMOVE_ITEM,
|
||||||
|
ENTITY_ITEM_FRAME_ROTATE_ITEM,
|
||||||
|
ENTITY_ITEM_PICKUP("ITEM_PICKUP"),
|
||||||
|
ENTITY_LEASH_KNOT_BREAK,
|
||||||
|
ENTITY_LEASH_KNOT_PLACE,
|
||||||
|
ENTITY_LIGHTNING_BOLT_IMPACT,
|
||||||
|
ENTITY_LIGHTNING_BOLT_THUNDER("AMBIENCE_THUNDER"),
|
||||||
|
ENTITY_LINGERING_POTION_THROW,
|
||||||
|
ENTITY_LLAMA_AMBIENT,
|
||||||
|
ENTITY_LLAMA_ANGRY,
|
||||||
|
ENTITY_LLAMA_CHEST,
|
||||||
|
ENTITY_LLAMA_DEATH,
|
||||||
|
ENTITY_LLAMA_EAT("EAT"),
|
||||||
|
ENTITY_LLAMA_HURT,
|
||||||
|
ENTITY_LLAMA_SPIT,
|
||||||
|
ENTITY_LLAMA_STEP,
|
||||||
|
ENTITY_LLAMA_SWAG,
|
||||||
|
ENTITY_MAGMA_CUBE_DEATH,
|
||||||
|
ENTITY_MAGMA_CUBE_DEATH_SMALL,
|
||||||
|
ENTITY_MAGMA_CUBE_HURT,
|
||||||
|
ENTITY_MAGMA_CUBE_HURT_SMALL,
|
||||||
|
ENTITY_MAGMA_CUBE_JUMP("MAGMACUBE_JUMP"),
|
||||||
|
ENTITY_MAGMA_CUBE_SQUISH("MAGMACUBE_WALK"),
|
||||||
|
ENTITY_MAGMA_CUBE_SQUISH_SMALL("MAGMACUBE_WALK2"),
|
||||||
|
ENTITY_MINECART_INSIDE("MINECART_INSIDE"),
|
||||||
|
ENTITY_MINECART_RIDING("MINECART_BASE"),
|
||||||
|
ENTITY_MOOSHROOM_CONVERT,
|
||||||
|
ENTITY_MOOSHROOM_EAT("EAT"),
|
||||||
|
ENTITY_MOOSHROOM_MILK,
|
||||||
|
ENTITY_MOOSHROOM_SHEAR,
|
||||||
|
ENTITY_MOOSHROOM_SUSPICIOUS_MILK,
|
||||||
|
ENTITY_MULE_AMBIENT,
|
||||||
|
ENTITY_MULE_CHEST,
|
||||||
|
ENTITY_MULE_DEATH,
|
||||||
|
ENTITY_MULE_HURT,
|
||||||
|
ENTITY_OCELOT_AMBIENT,
|
||||||
|
ENTITY_OCELOT_DEATH,
|
||||||
|
ENTITY_OCELOT_HURT,
|
||||||
|
ENTITY_PAINTING_BREAK,
|
||||||
|
ENTITY_PAINTING_PLACE,
|
||||||
|
ENTITY_PANDA_AGGRESSIVE_AMBIENT,
|
||||||
|
ENTITY_PANDA_AMBIENT,
|
||||||
|
ENTITY_PANDA_BITE,
|
||||||
|
ENTITY_PANDA_CANT_BREED,
|
||||||
|
ENTITY_PANDA_DEATH,
|
||||||
|
ENTITY_PANDA_EAT("EAT"),
|
||||||
|
ENTITY_PANDA_HURT,
|
||||||
|
ENTITY_PANDA_PRE_SNEEZE,
|
||||||
|
ENTITY_PANDA_SNEEZE,
|
||||||
|
ENTITY_PANDA_STEP,
|
||||||
|
ENTITY_PANDA_WORRIED_AMBIENT,
|
||||||
|
ENTITY_PARROT_AMBIENT,
|
||||||
|
ENTITY_PARROT_DEATH,
|
||||||
|
ENTITY_PARROT_EAT("EAT"),
|
||||||
|
ENTITY_PARROT_FLY,
|
||||||
|
ENTITY_PARROT_HURT,
|
||||||
|
ENTITY_PARROT_IMITATE_BLAZE,
|
||||||
|
ENTITY_PARROT_IMITATE_CREEPER,
|
||||||
|
ENTITY_PARROT_IMITATE_DROWNED,
|
||||||
|
ENTITY_PARROT_IMITATE_ELDER_GUARDIAN,
|
||||||
|
ENTITY_PARROT_IMITATE_ENDERMAN,
|
||||||
|
ENTITY_PARROT_IMITATE_ENDERMITE,
|
||||||
|
ENTITY_PARROT_IMITATE_ENDER_DRAGON,
|
||||||
|
ENTITY_PARROT_IMITATE_EVOKER,
|
||||||
|
ENTITY_PARROT_IMITATE_GHAST,
|
||||||
|
ENTITY_PARROT_IMITATE_GUARDIAN,
|
||||||
|
ENTITY_PARROT_IMITATE_HUSK,
|
||||||
|
ENTITY_PARROT_IMITATE_ILLUSIONER,
|
||||||
|
ENTITY_PARROT_IMITATE_MAGMA_CUBE,
|
||||||
|
ENTITY_PARROT_IMITATE_PANDA,
|
||||||
|
ENTITY_PARROT_IMITATE_PHANTOM,
|
||||||
|
ENTITY_PARROT_IMITATE_PILLAGER,
|
||||||
|
ENTITY_PARROT_IMITATE_POLAR_BEAR,
|
||||||
|
ENTITY_PARROT_IMITATE_RAVAGER,
|
||||||
|
ENTITY_PARROT_IMITATE_SHULKER,
|
||||||
|
ENTITY_PARROT_IMITATE_SILVERFISH,
|
||||||
|
ENTITY_PARROT_IMITATE_SKELETON,
|
||||||
|
ENTITY_PARROT_IMITATE_SLIME,
|
||||||
|
ENTITY_PARROT_IMITATE_SPIDER,
|
||||||
|
ENTITY_PARROT_IMITATE_STRAY,
|
||||||
|
ENTITY_PARROT_IMITATE_VEX,
|
||||||
|
ENTITY_PARROT_IMITATE_VINDICATOR,
|
||||||
|
ENTITY_PARROT_IMITATE_WITCH,
|
||||||
|
ENTITY_PARROT_IMITATE_WITHER,
|
||||||
|
ENTITY_PARROT_IMITATE_WITHER_SKELETON,
|
||||||
|
ENTITY_PARROT_IMITATE_WOLF,
|
||||||
|
ENTITY_PARROT_IMITATE_ZOMBIE,
|
||||||
|
ENTITY_PARROT_IMITATE_ZOMBIE_PIGMAN,
|
||||||
|
ENTITY_PARROT_IMITATE_ZOMBIE_VILLAGER,
|
||||||
|
ENTITY_PARROT_STEP,
|
||||||
|
ENTITY_PHANTOM_AMBIENT,
|
||||||
|
ENTITY_PHANTOM_BITE,
|
||||||
|
ENTITY_PHANTOM_DEATH,
|
||||||
|
ENTITY_PHANTOM_FLAP,
|
||||||
|
ENTITY_PHANTOM_HURT,
|
||||||
|
ENTITY_PHANTOM_SWOOP,
|
||||||
|
ENTITY_PIG_AMBIENT("PIG_IDLE"),
|
||||||
|
ENTITY_PIG_DEATH("PIG_DEATH"),
|
||||||
|
ENTITY_PIG_HURT,
|
||||||
|
ENTITY_PIG_SADDLE,
|
||||||
|
ENTITY_PIG_STEP("PIG_WALK"),
|
||||||
|
ENTITY_PILLAGER_AMBIENT,
|
||||||
|
ENTITY_PILLAGER_CELEBRATE,
|
||||||
|
ENTITY_PILLAGER_DEATH,
|
||||||
|
ENTITY_PILLAGER_HURT,
|
||||||
|
ENTITY_PLAYER_ATTACK_CRIT,
|
||||||
|
ENTITY_PLAYER_ATTACK_KNOCKBACK,
|
||||||
|
ENTITY_PLAYER_ATTACK_NODAMAGE,
|
||||||
|
ENTITY_PLAYER_ATTACK_STRONG,
|
||||||
|
ENTITY_PLAYER_ATTACK_SWEEP,
|
||||||
|
ENTITY_PLAYER_ATTACK_WEAK,
|
||||||
|
ENTITY_PLAYER_BIG_FALL,
|
||||||
|
ENTITY_PLAYER_BREATH,
|
||||||
|
ENTITY_PLAYER_BURP("BURP"),
|
||||||
|
ENTITY_PLAYER_DEATH,
|
||||||
|
ENTITY_PLAYER_HURT,
|
||||||
|
ENTITY_PLAYER_HURT_DROWN,
|
||||||
|
ENTITY_PLAYER_HURT_ON_FIRE,
|
||||||
|
ENTITY_PLAYER_HURT_SWEET_BERRY_BUSH,
|
||||||
|
ENTITY_PLAYER_LEVELUP("LEVEL_UP"),
|
||||||
|
ENTITY_PLAYER_SMALL_FALL,
|
||||||
|
ENTITY_PLAYER_SPLASH("SPLASH"),
|
||||||
|
ENTITY_PLAYER_SPLASH_HIGH_SPEED("SPLASH2"),
|
||||||
|
ENTITY_PLAYER_SWIM("SWIM"),
|
||||||
|
ENTITY_POLAR_BEAR_AMBIENT,
|
||||||
|
ENTITY_POLAR_BEAR_AMBIENT_BABY,
|
||||||
|
ENTITY_POLAR_BEAR_DEATH,
|
||||||
|
ENTITY_POLAR_BEAR_HURT,
|
||||||
|
ENTITY_POLAR_BEAR_STEP,
|
||||||
|
ENTITY_POLAR_BEAR_WARNING,
|
||||||
|
ENTITY_PUFFER_FISH_AMBIENT,
|
||||||
|
ENTITY_PUFFER_FISH_BLOW_OUT,
|
||||||
|
ENTITY_PUFFER_FISH_BLOW_UP,
|
||||||
|
ENTITY_PUFFER_FISH_DEATH,
|
||||||
|
ENTITY_PUFFER_FISH_FLOP,
|
||||||
|
ENTITY_PUFFER_FISH_HURT,
|
||||||
|
ENTITY_PUFFER_FISH_STING,
|
||||||
|
ENTITY_RABBIT_AMBIENT,
|
||||||
|
ENTITY_RABBIT_ATTACK,
|
||||||
|
ENTITY_RABBIT_DEATH,
|
||||||
|
ENTITY_RABBIT_HURT,
|
||||||
|
ENTITY_RABBIT_JUMP,
|
||||||
|
ENTITY_RAVAGER_AMBIENT,
|
||||||
|
ENTITY_RAVAGER_ATTACK,
|
||||||
|
ENTITY_RAVAGER_CELEBRATE,
|
||||||
|
ENTITY_RAVAGER_DEATH,
|
||||||
|
ENTITY_RAVAGER_HURT,
|
||||||
|
ENTITY_RAVAGER_ROAR,
|
||||||
|
ENTITY_RAVAGER_STEP,
|
||||||
|
ENTITY_RAVAGER_STUNNED,
|
||||||
|
ENTITY_SALMON_AMBIENT,
|
||||||
|
ENTITY_SALMON_DEATH,
|
||||||
|
ENTITY_SALMON_FLOP,
|
||||||
|
ENTITY_SALMON_HURT,
|
||||||
|
ENTITY_SHEEP_AMBIENT("SHEEP_IDLE"),
|
||||||
|
ENTITY_SHEEP_DEATH,
|
||||||
|
ENTITY_SHEEP_HURT,
|
||||||
|
ENTITY_SHEEP_SHEAR("SHEEP_SHEAR"),
|
||||||
|
ENTITY_SHEEP_STEP("SHEEP_WALK"),
|
||||||
|
ENTITY_SHULKER_AMBIENT,
|
||||||
|
ENTITY_SHULKER_BULLET_HIT,
|
||||||
|
ENTITY_SHULKER_BULLET_HURT,
|
||||||
|
ENTITY_SHULKER_CLOSE,
|
||||||
|
ENTITY_SHULKER_DEATH,
|
||||||
|
ENTITY_SHULKER_HURT,
|
||||||
|
ENTITY_SHULKER_HURT_CLOSED,
|
||||||
|
ENTITY_SHULKER_OPEN,
|
||||||
|
ENTITY_SHULKER_SHOOT,
|
||||||
|
ENTITY_SHULKER_TELEPORT,
|
||||||
|
ENTITY_SILVERFISH_AMBIENT("SILVERFISH_IDLE"),
|
||||||
|
ENTITY_SILVERFISH_DEATH("SILVERFISH_KILL"),
|
||||||
|
ENTITY_SILVERFISH_HURT("SILVERFISH_HIT"),
|
||||||
|
ENTITY_SILVERFISH_STEP("SILVERFISH_WALK"),
|
||||||
|
ENTITY_SKELETON_AMBIENT("SKELETON_IDLE"),
|
||||||
|
ENTITY_SKELETON_DEATH("SKELETON_DEATH"),
|
||||||
|
ENTITY_SKELETON_HORSE_AMBIENT("HORSE_SKELETON_IDLE"),
|
||||||
|
ENTITY_SKELETON_HORSE_AMBIENT_WATER,
|
||||||
|
ENTITY_SKELETON_HORSE_DEATH("HORSE_SKELETON_DEATH"),
|
||||||
|
ENTITY_SKELETON_HORSE_GALLOP_WATER,
|
||||||
|
ENTITY_SKELETON_HORSE_HURT("HORSE_SKELETON_HIT"),
|
||||||
|
ENTITY_SKELETON_HORSE_JUMP_WATER,
|
||||||
|
ENTITY_SKELETON_HORSE_STEP_WATER,
|
||||||
|
ENTITY_SKELETON_HORSE_SWIM,
|
||||||
|
ENTITY_SKELETON_HURT("SKELETON_HURT"),
|
||||||
|
ENTITY_SKELETON_SHOOT(ServerVersion.V1_9, v("SHOOT_ARROW", true)),
|
||||||
|
ENTITY_SKELETON_STEP("SKELETON_WALK"),
|
||||||
|
ENTITY_SLIME_ATTACK("SLIME_ATTACK"),
|
||||||
|
ENTITY_SLIME_DEATH,
|
||||||
|
ENTITY_SLIME_DEATH_SMALL,
|
||||||
|
ENTITY_SLIME_HURT,
|
||||||
|
ENTITY_SLIME_HURT_SMALL,
|
||||||
|
ENTITY_SLIME_JUMP("SLIME_WALK2"), // Not sure which is 1 or 2
|
||||||
|
ENTITY_SLIME_JUMP_SMALL("SLIME_WALK"),
|
||||||
|
ENTITY_SLIME_SQUISH("SLIME_WALK2"),
|
||||||
|
ENTITY_SLIME_SQUISH_SMALL("SLIME_WALK"),
|
||||||
|
ENTITY_SNOWBALL_THROW,
|
||||||
|
ENTITY_SNOW_GOLEM_AMBIENT,
|
||||||
|
ENTITY_SNOW_GOLEM_DEATH,
|
||||||
|
ENTITY_SNOW_GOLEM_HURT,
|
||||||
|
ENTITY_SNOW_GOLEM_SHOOT(ServerVersion.V1_13, v(ServerVersion.V1_12, "ENTITY_SNOWMAN_SHOOT"), v("SHOOT_ARROW", true)), // this is missing from 1.8 API for some reason
|
||||||
|
ENTITY_SPIDER_AMBIENT("SPIDER_IDLE"),
|
||||||
|
ENTITY_SPIDER_DEATH("SPIDER_DEATH"),
|
||||||
|
ENTITY_SPIDER_HURT,
|
||||||
|
ENTITY_SPIDER_STEP("SPIDER_WALK"),
|
||||||
|
ENTITY_SPLASH_POTION_BREAK,
|
||||||
|
ENTITY_SPLASH_POTION_THROW,
|
||||||
|
ENTITY_SQUID_AMBIENT,
|
||||||
|
ENTITY_SQUID_DEATH,
|
||||||
|
ENTITY_SQUID_HURT,
|
||||||
|
ENTITY_SQUID_SQUIRT,
|
||||||
|
ENTITY_STRAY_AMBIENT,
|
||||||
|
ENTITY_STRAY_DEATH,
|
||||||
|
ENTITY_STRAY_HURT,
|
||||||
|
ENTITY_STRAY_STEP,
|
||||||
|
ENTITY_TNT_PRIMED("FUSE"),
|
||||||
|
ENTITY_TROPICAL_FISH_AMBIENT,
|
||||||
|
ENTITY_TROPICAL_FISH_DEATH,
|
||||||
|
ENTITY_TROPICAL_FISH_FLOP,
|
||||||
|
ENTITY_TROPICAL_FISH_HURT,
|
||||||
|
ENTITY_TURTLE_AMBIENT_LAND,
|
||||||
|
ENTITY_TURTLE_DEATH,
|
||||||
|
ENTITY_TURTLE_DEATH_BABY,
|
||||||
|
ENTITY_TURTLE_EGG_BREAK,
|
||||||
|
ENTITY_TURTLE_EGG_CRACK,
|
||||||
|
ENTITY_TURTLE_EGG_HATCH,
|
||||||
|
ENTITY_TURTLE_HURT,
|
||||||
|
ENTITY_TURTLE_HURT_BABY,
|
||||||
|
ENTITY_TURTLE_LAY_EGG,
|
||||||
|
ENTITY_TURTLE_SHAMBLE,
|
||||||
|
ENTITY_TURTLE_SHAMBLE_BABY,
|
||||||
|
ENTITY_TURTLE_SWIM,
|
||||||
|
ENTITY_VEX_AMBIENT,
|
||||||
|
ENTITY_VEX_CHARGE,
|
||||||
|
ENTITY_VEX_DEATH,
|
||||||
|
ENTITY_VEX_HURT,
|
||||||
|
ENTITY_VILLAGER_AMBIENT("VILLAGER_IDLE"),
|
||||||
|
ENTITY_VILLAGER_CELEBRATE,
|
||||||
|
ENTITY_VILLAGER_DEATH("VILLAGER_DEATH"),
|
||||||
|
ENTITY_VILLAGER_HURT("VILLAGER_HIT"),
|
||||||
|
ENTITY_VILLAGER_NO("VILLAGER_NO"),
|
||||||
|
ENTITY_VILLAGER_TRADE("VILLAGER_HAGGLE"),
|
||||||
|
ENTITY_VILLAGER_WORK_ARMORER,
|
||||||
|
ENTITY_VILLAGER_WORK_BUTCHER,
|
||||||
|
ENTITY_VILLAGER_WORK_CARTOGRAPHER,
|
||||||
|
ENTITY_VILLAGER_WORK_CLERIC,
|
||||||
|
ENTITY_VILLAGER_WORK_FARMER,
|
||||||
|
ENTITY_VILLAGER_WORK_FISHERMAN,
|
||||||
|
ENTITY_VILLAGER_WORK_FLETCHER,
|
||||||
|
ENTITY_VILLAGER_WORK_LEATHERWORKER,
|
||||||
|
ENTITY_VILLAGER_WORK_LIBRARIAN,
|
||||||
|
ENTITY_VILLAGER_WORK_MASON,
|
||||||
|
ENTITY_VILLAGER_WORK_SHEPHERD,
|
||||||
|
ENTITY_VILLAGER_WORK_TOOLSMITH,
|
||||||
|
ENTITY_VILLAGER_WORK_WEAPONSMITH,
|
||||||
|
ENTITY_VILLAGER_YES("VILLAGER_YES"),
|
||||||
|
ENTITY_VINDICATOR_AMBIENT,
|
||||||
|
ENTITY_VINDICATOR_CELEBRATE,
|
||||||
|
ENTITY_VINDICATOR_DEATH,
|
||||||
|
ENTITY_VINDICATOR_HURT,
|
||||||
|
ENTITY_WANDERING_TRADER_AMBIENT,
|
||||||
|
ENTITY_WANDERING_TRADER_DEATH,
|
||||||
|
ENTITY_WANDERING_TRADER_DISAPPEARED,
|
||||||
|
ENTITY_WANDERING_TRADER_DRINK_MILK("DRINK"),
|
||||||
|
ENTITY_WANDERING_TRADER_DRINK_POTION("DRINK"),
|
||||||
|
ENTITY_WANDERING_TRADER_HURT,
|
||||||
|
ENTITY_WANDERING_TRADER_NO,
|
||||||
|
ENTITY_WANDERING_TRADER_REAPPEARED,
|
||||||
|
ENTITY_WANDERING_TRADER_TRADE,
|
||||||
|
ENTITY_WANDERING_TRADER_YES,
|
||||||
|
ENTITY_WITCH_AMBIENT,
|
||||||
|
ENTITY_WITCH_CELEBRATE,
|
||||||
|
ENTITY_WITCH_DEATH,
|
||||||
|
ENTITY_WITCH_DRINK("DRINK"),
|
||||||
|
ENTITY_WITCH_HURT,
|
||||||
|
ENTITY_WITCH_THROW,
|
||||||
|
ENTITY_WITHER_AMBIENT("WITHER_IDLE"),
|
||||||
|
ENTITY_WITHER_BREAK_BLOCK("WITHER_SPAWN"),
|
||||||
|
ENTITY_WITHER_DEATH("WITHER_DEATH"),
|
||||||
|
ENTITY_WITHER_HURT("WITHER_HURT"),
|
||||||
|
ENTITY_WITHER_SHOOT("WITHER_SHOOT"),
|
||||||
|
ENTITY_WITHER_SKELETON_AMBIENT,
|
||||||
|
ENTITY_WITHER_SKELETON_DEATH,
|
||||||
|
ENTITY_WITHER_SKELETON_HURT,
|
||||||
|
ENTITY_WITHER_SKELETON_STEP,
|
||||||
|
ENTITY_WITHER_SPAWN,
|
||||||
|
ENTITY_WOLF_AMBIENT("WOLF_BARK"),
|
||||||
|
ENTITY_WOLF_DEATH("WOLF_DEATH"),
|
||||||
|
ENTITY_WOLF_GROWL("WOLF_GROWL"),
|
||||||
|
ENTITY_WOLF_HOWL("WOLF_HOWL"),
|
||||||
|
ENTITY_WOLF_HURT("WOLF_HURT"),
|
||||||
|
ENTITY_WOLF_PANT("WOLF_PANT"),
|
||||||
|
ENTITY_WOLF_SHAKE("WOLF_SHAKE"),
|
||||||
|
ENTITY_WOLF_STEP("WOLF_WALK"),
|
||||||
|
ENTITY_WOLF_WHINE("WOLF_WHINE"),
|
||||||
|
ENTITY_ZOMBIE_AMBIENT("ZOMBIE_IDLE"),
|
||||||
|
ENTITY_ZOMBIE_ATTACK_IRON_DOOR("ZOMBIE_METAL"),
|
||||||
|
ENTITY_ZOMBIE_ATTACK_WOODEN_DOOR("ZOMBIE_WOOD"),
|
||||||
|
ENTITY_ZOMBIE_BREAK_WOODEN_DOOR("ZOMBIE_WOODBREAK"),
|
||||||
|
ENTITY_ZOMBIE_CONVERTED_TO_DROWNED,
|
||||||
|
ENTITY_ZOMBIE_DEATH("ZOMBIE_DEATH"),
|
||||||
|
ENTITY_ZOMBIE_DESTROY_EGG,
|
||||||
|
ENTITY_ZOMBIE_HORSE_AMBIENT("HORSE_ZOMBIE_IDLE"),
|
||||||
|
ENTITY_ZOMBIE_HORSE_DEATH("HORSE_ZOMBIE_DEATH"),
|
||||||
|
ENTITY_ZOMBIE_HORSE_HURT("HORSE_ZOMBIE_HIT"),
|
||||||
|
ENTITY_ZOMBIE_HURT("ZOMBIE_HURT"),
|
||||||
|
ENTITY_ZOMBIE_INFECT("ZOMBIE_INFECT"),
|
||||||
|
ENTITY_ZOMBIE_PIGMAN_AMBIENT("ZOMBIE_PIG_IDLE"),
|
||||||
|
ENTITY_ZOMBIE_PIGMAN_ANGRY("ZOMBIE_PIG_ANGRY"),
|
||||||
|
ENTITY_ZOMBIE_PIGMAN_DEATH("ZOMBIE_PIG_DEATH"),
|
||||||
|
ENTITY_ZOMBIE_PIGMAN_HURT("ZOMBIE_PIG_HURT"),
|
||||||
|
ENTITY_ZOMBIE_STEP("ZOMBIE_WALK"),
|
||||||
|
ENTITY_ZOMBIE_VILLAGER_AMBIENT,
|
||||||
|
ENTITY_ZOMBIE_VILLAGER_CONVERTED("ZOMBIE_REMEDY"),
|
||||||
|
ENTITY_ZOMBIE_VILLAGER_CURE("ZOMBIE_UNFECT"),
|
||||||
|
ENTITY_ZOMBIE_VILLAGER_DEATH,
|
||||||
|
ENTITY_ZOMBIE_VILLAGER_HURT,
|
||||||
|
ENTITY_ZOMBIE_VILLAGER_STEP,
|
||||||
|
EVENT_RAID_HORN,
|
||||||
|
ITEM_ARMOR_EQUIP_CHAIN,
|
||||||
|
ITEM_ARMOR_EQUIP_DIAMOND,
|
||||||
|
ITEM_ARMOR_EQUIP_ELYTRA,
|
||||||
|
ITEM_ARMOR_EQUIP_GENERIC,
|
||||||
|
ITEM_ARMOR_EQUIP_GOLD,
|
||||||
|
ITEM_ARMOR_EQUIP_IRON,
|
||||||
|
ITEM_ARMOR_EQUIP_LEATHER,
|
||||||
|
ITEM_ARMOR_EQUIP_TURTLE,
|
||||||
|
ITEM_AXE_STRIP,
|
||||||
|
ITEM_BOOK_PAGE_TURN,
|
||||||
|
ITEM_BOOK_PUT,
|
||||||
|
ITEM_BOTTLE_EMPTY,
|
||||||
|
ITEM_BOTTLE_FILL,
|
||||||
|
ITEM_BOTTLE_FILL_DRAGONBREATH,
|
||||||
|
ITEM_BUCKET_EMPTY,
|
||||||
|
ITEM_BUCKET_EMPTY_FISH,
|
||||||
|
ITEM_BUCKET_EMPTY_LAVA,
|
||||||
|
ITEM_BUCKET_FILL,
|
||||||
|
ITEM_BUCKET_FILL_FISH,
|
||||||
|
ITEM_BUCKET_FILL_LAVA,
|
||||||
|
ITEM_CHORUS_FRUIT_TELEPORT,
|
||||||
|
ITEM_CROP_PLANT,
|
||||||
|
ITEM_CROSSBOW_HIT,
|
||||||
|
ITEM_CROSSBOW_LOADING_END,
|
||||||
|
ITEM_CROSSBOW_LOADING_MIDDLE,
|
||||||
|
ITEM_CROSSBOW_LOADING_START,
|
||||||
|
ITEM_CROSSBOW_QUICK_CHARGE_1,
|
||||||
|
ITEM_CROSSBOW_QUICK_CHARGE_2,
|
||||||
|
ITEM_CROSSBOW_QUICK_CHARGE_3,
|
||||||
|
ITEM_CROSSBOW_SHOOT,
|
||||||
|
ITEM_ELYTRA_FLYING,
|
||||||
|
ITEM_FIRECHARGE_USE,
|
||||||
|
ITEM_FLINTANDSTEEL_USE("FIRE_IGNITE"),
|
||||||
|
ITEM_HOE_TILL,
|
||||||
|
ITEM_NETHER_WART_PLANT,
|
||||||
|
ITEM_SHIELD_BLOCK,
|
||||||
|
ITEM_SHIELD_BREAK,
|
||||||
|
ITEM_SHOVEL_FLATTEN,
|
||||||
|
ITEM_SWEET_BERRIES_PICK_FROM_BUSH,
|
||||||
|
ITEM_TOTEM_USE,
|
||||||
|
ITEM_TRIDENT_HIT,
|
||||||
|
ITEM_TRIDENT_HIT_GROUND,
|
||||||
|
ITEM_TRIDENT_RETURN,
|
||||||
|
ITEM_TRIDENT_RIPTIDE_1,
|
||||||
|
ITEM_TRIDENT_RIPTIDE_2,
|
||||||
|
ITEM_TRIDENT_RIPTIDE_3,
|
||||||
|
ITEM_TRIDENT_THROW,
|
||||||
|
ITEM_TRIDENT_THUNDER,
|
||||||
|
MUSIC_CREATIVE,
|
||||||
|
MUSIC_CREDITS,
|
||||||
|
MUSIC_DISC_11(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_11"), v("WOOD_CLICK", true)),
|
||||||
|
MUSIC_DISC_13(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_13"), v("WOOD_CLICK", true)),
|
||||||
|
MUSIC_DISC_BLOCKS(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_BLOCKS"), v("WOOD_CLICK", true)),
|
||||||
|
MUSIC_DISC_CAT(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_CAT"), v("WOOD_CLICK", true)),
|
||||||
|
MUSIC_DISC_CHIRP(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_CHIRP"), v("WOOD_CLICK", true)),
|
||||||
|
MUSIC_DISC_FAR(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_FAR"), v("WOOD_CLICK", true)),
|
||||||
|
MUSIC_DISC_MALL(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_MALL"), v("WOOD_CLICK", true)),
|
||||||
|
MUSIC_DISC_MELLOHI(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_MELLOHI"), v("WOOD_CLICK", true)),
|
||||||
|
MUSIC_DISC_STAL(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_STAL"), v("WOOD_CLICK", true)),
|
||||||
|
MUSIC_DISC_STRAD(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_STRAD"), v("WOOD_CLICK", true)),
|
||||||
|
MUSIC_DISC_WAIT(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_WAIT"), v("WOOD_CLICK", true)),
|
||||||
|
MUSIC_DISC_WARD(ServerVersion.V1_13, v(ServerVersion.V1_9, "RECORD_WARD"), v("WOOD_CLICK", true)), // records are missing from 1.8 API
|
||||||
|
MUSIC_DRAGON,
|
||||||
|
MUSIC_END,
|
||||||
|
MUSIC_GAME,
|
||||||
|
MUSIC_MENU,
|
||||||
|
MUSIC_NETHER,
|
||||||
|
MUSIC_UNDER_WATER,
|
||||||
|
UI_BUTTON_CLICK("CLICK"),
|
||||||
|
UI_CARTOGRAPHY_TABLE_TAKE_RESULT,
|
||||||
|
UI_LOOM_SELECT_PATTERN,
|
||||||
|
UI_LOOM_TAKE_RESULT,
|
||||||
|
UI_STONECUTTER_SELECT_RECIPE,
|
||||||
|
UI_STONECUTTER_TAKE_RESULT,
|
||||||
|
UI_TOAST_CHALLENGE_COMPLETE,
|
||||||
|
UI_TOAST_IN,
|
||||||
|
UI_TOAST_OUT,
|
||||||
|
WEATHER_RAIN("AMBIENCE_RAIN"),
|
||||||
|
WEATHER_RAIN_ABOVE;
|
||||||
|
|
||||||
|
protected final Sound sound;
|
||||||
|
protected final boolean compatibilityMode;
|
||||||
|
|
||||||
|
private CompatibleSounds() {
|
||||||
|
// This could get risky, since we haven't finished this
|
||||||
|
//sound = Sound.valueOf(name());
|
||||||
|
Sound find = null;
|
||||||
|
for (Sound s : Sound.values()) {
|
||||||
|
if (s.name().equals(name())) {
|
||||||
|
find = s;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sound = find;
|
||||||
|
compatibilityMode = find == null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// if the sound ony ever changed from 1.8 -> 1.9
|
||||||
|
private CompatibleSounds(String compatibility_18) {
|
||||||
|
compatibilityMode = false;
|
||||||
|
if (ServerVersion.isServerVersionBelow(ServerVersion.V1_9)) {
|
||||||
|
sound = Sound.valueOf(compatibility_18);
|
||||||
|
} else {
|
||||||
|
sound = Sound.valueOf(name());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CompatibleSounds(Version... versions) {
|
||||||
|
for (Version v : versions) {
|
||||||
|
if (v.sound != null && ServerVersion.isServerVersionAtLeast(v.version)) {
|
||||||
|
sound = Sound.valueOf(v.sound);
|
||||||
|
compatibilityMode = v.compatibilityMode;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Sound find = null;
|
||||||
|
for (Sound s : Sound.values()) {
|
||||||
|
if (s.name().equals(name())) {
|
||||||
|
find = s;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sound = find;
|
||||||
|
compatibilityMode = find == null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private CompatibleSounds(ServerVersion minVersion, Version... versions) {
|
||||||
|
if (ServerVersion.isServerVersionAtLeast(minVersion)) {
|
||||||
|
// should be good to use this sound
|
||||||
|
sound = Sound.valueOf(name());
|
||||||
|
compatibilityMode = false;
|
||||||
|
} else {
|
||||||
|
for (Version v : versions) {
|
||||||
|
if (v.sound != null && ServerVersion.isServerVersionAtLeast(v.version)) {
|
||||||
|
sound = Sound.valueOf(v.sound);
|
||||||
|
compatibilityMode = v.compatibilityMode;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sound = null;
|
||||||
|
compatibilityMode = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a Bukkit API sound that matches this sound
|
||||||
|
*
|
||||||
|
* @return Returns either the matching sound or a similar sound
|
||||||
|
*/
|
||||||
|
public Sound getSound() {
|
||||||
|
return sound != null ? sound : UI_BUTTON_CLICK.sound;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check to see if this sound is available on this server.
|
||||||
|
*
|
||||||
|
* @return Returns false if we are using a different sound.
|
||||||
|
*/
|
||||||
|
public boolean isMatch() {
|
||||||
|
return !compatibilityMode;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Version v(String sound) {
|
||||||
|
return new Version(ServerVersion.UNKNOWN, sound, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Version v(ServerVersion version, String sound) {
|
||||||
|
return new Version(version, sound, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Version v(ServerVersion version, String sound, boolean compatibility) {
|
||||||
|
return new Version(version, sound, compatibility);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Version v(String sound, boolean compatibility) {
|
||||||
|
return new Version(ServerVersion.UNKNOWN, sound, compatibility);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class Version {
|
||||||
|
|
||||||
|
final ServerVersion version;
|
||||||
|
final String sound;
|
||||||
|
final boolean compatibilityMode;
|
||||||
|
|
||||||
|
public Version(ServerVersion version, String sound, boolean compatibility) {
|
||||||
|
this.version = version;
|
||||||
|
this.sound = sound;
|
||||||
|
this.compatibilityMode = compatibility;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -6,7 +6,9 @@ import org.bukkit.Material;
|
|||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Near-Materials for older servers
|
* Near-Materials for older servers 1.7+
|
||||||
|
* @since 2019-08-23
|
||||||
|
* @author jascotty2
|
||||||
*/
|
*/
|
||||||
public enum LegacyAnalouges {
|
public enum LegacyAnalouges {
|
||||||
|
|
||||||
|
@ -5,6 +5,11 @@ import java.util.Map;
|
|||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Items that are compatible with server versions 1.7+
|
||||||
|
* @since 2019-08-23
|
||||||
|
* @author jascotty2
|
||||||
|
*/
|
||||||
public enum LegacyMaterials {
|
public enum LegacyMaterials {
|
||||||
/*
|
/*
|
||||||
TODO: add another handler for getBlockItem() for materials and fallback materials
|
TODO: add another handler for getBlockItem() for materials and fallback materials
|
||||||
|
@ -12,6 +12,11 @@ import org.bukkit.Location;
|
|||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Particle effects for servers 1.8 and below
|
||||||
|
* @since 2019-08-23
|
||||||
|
* @author jascotty2
|
||||||
|
*/
|
||||||
public class LegacyParticleEffects {
|
public class LegacyParticleEffects {
|
||||||
|
|
||||||
public static enum Type {
|
public static enum Type {
|
||||||
|
@ -16,9 +16,17 @@ public enum ServerVersion {
|
|||||||
serverVersion = version;
|
serverVersion = version;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getServerVersionString() {
|
public boolean isLessThan(ServerVersion other) {
|
||||||
return serverPackageVersion;
|
return this.ordinal() < other.ordinal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isGreaterThan(ServerVersion other) {
|
||||||
|
return this.ordinal() > other.ordinal();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getServerVersionString() {
|
||||||
|
return serverPackageVersion;
|
||||||
|
}
|
||||||
|
|
||||||
public static ServerVersion getServerVersion() {
|
public static ServerVersion getServerVersion() {
|
||||||
return serverVersion;
|
return serverVersion;
|
||||||
|
Loading…
Reference in New Issue
Block a user