#1082: Add "since" to Deprecation annotations
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
@ -20,41 +20,41 @@ public abstract class GameEvent implements Keyed {
|
||||
public static final GameEvent BLOCK_DETACH = getEvent("block_detach");
|
||||
public static final GameEvent BLOCK_OPEN = getEvent("block_open");
|
||||
public static final GameEvent BLOCK_PLACE = getEvent("block_place");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent BLOCK_PRESS = getEvent("block_activate");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent BLOCK_SWITCH = getEvent("block_activate");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent BLOCK_UNPRESS = getEvent("block_deactivate");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent BLOCK_UNSWITCH = getEvent("block_deactivate");
|
||||
public static final GameEvent CONTAINER_CLOSE = getEvent("container_close");
|
||||
public static final GameEvent CONTAINER_OPEN = getEvent("container_open");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.20")
|
||||
public static final GameEvent DISPENSE_FAIL = getEvent("block_activate");
|
||||
public static final GameEvent DRINK = getEvent("drink");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent DRINKING_FINISH = getEvent("drink");
|
||||
public static final GameEvent EAT = getEvent("eat");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent ELYTRA_FREE_FALL = getEvent("elytra_glide");
|
||||
public static final GameEvent ELYTRA_GLIDE = getEvent("elytra_glide");
|
||||
public static final GameEvent ENTITY_DAMAGE = getEvent("entity_damage");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent ENTITY_DAMAGED = getEvent("entity_damage");
|
||||
public static final GameEvent ENTITY_DIE = getEvent("entity_die");
|
||||
public static final GameEvent ENTITY_DISMOUNT = getEvent("entity_dismount");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent ENTITY_DYING = getEvent("entity_die");
|
||||
public static final GameEvent ENTITY_INTERACT = getEvent("entity_interact");
|
||||
public static final GameEvent ENTITY_MOUNT = getEvent("entity_mount");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent ENTITY_KILLED = getEvent("entity_die");
|
||||
public static final GameEvent ENTITY_PLACE = getEvent("entity_place");
|
||||
public static final GameEvent ENTITY_ACTION = getEvent("entity_action");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.20.2")
|
||||
public static final GameEvent ENTITY_ROAR = getEvent("entity_action");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.20.2")
|
||||
public static final GameEvent ENTITY_SHAKE = getEvent("entity_action");
|
||||
public static final GameEvent EQUIP = getEvent("equip");
|
||||
public static final GameEvent EXPLODE = getEvent("explode");
|
||||
@ -68,33 +68,33 @@ public abstract class GameEvent implements Keyed {
|
||||
public static final GameEvent JUKEBOX_PLAY = getEvent("jukebox_play");
|
||||
public static final GameEvent JUKEBOX_STOP_PLAY = getEvent("jukebox_stop_play");
|
||||
public static final GameEvent LIGHTNING_STRIKE = getEvent("lightning_strike");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent MOB_INTERACT = getEvent("entity_interact");
|
||||
public static final GameEvent NOTE_BLOCK_PLAY = getEvent("note_block_play");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.20")
|
||||
public static final GameEvent PISTON_CONTRACT = getEvent("block_deactivate");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.20")
|
||||
public static final GameEvent PISTON_EXTEND = getEvent("block_activate");
|
||||
public static final GameEvent PRIME_FUSE = getEvent("prime_fuse");
|
||||
public static final GameEvent PROJECTILE_LAND = getEvent("projectile_land");
|
||||
public static final GameEvent PROJECTILE_SHOOT = getEvent("projectile_shoot");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent RAVAGER_ROAR = getEvent("entity_action");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent RING_BELL = getEvent("block_change");
|
||||
public static final GameEvent SCULK_SENSOR_TENDRILS_CLICKING = getEvent("sculk_sensor_tendrils_clicking");
|
||||
public static final GameEvent SHEAR = getEvent("shear");
|
||||
public static final GameEvent SHRIEK = getEvent("shriek");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent SHULKER_CLOSE = getEvent("container_close");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent SHULKER_OPEN = getEvent("container_open");
|
||||
public static final GameEvent SPLASH = getEvent("splash");
|
||||
public static final GameEvent STEP = getEvent("step");
|
||||
public static final GameEvent SWIM = getEvent("swim");
|
||||
public static final GameEvent TELEPORT = getEvent("teleport");
|
||||
public static final GameEvent UNEQUIP = getEvent("unequip");
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.19")
|
||||
public static final GameEvent WOLF_SHAKING = getEvent("entity_action");
|
||||
public static final GameEvent RESONATE_1 = getEvent("resonate_1");
|
||||
public static final GameEvent RESONATE_2 = getEvent("resonate_2");
|
||||
@ -120,7 +120,7 @@ public abstract class GameEvent implements Keyed {
|
||||
* @deprecated Use {@link Registry#get(NamespacedKey)} instead.
|
||||
*/
|
||||
@Nullable
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.20.1")
|
||||
public static GameEvent getByKey(@NotNull NamespacedKey namespacedKey) {
|
||||
return Registry.GAME_EVENT.get(namespacedKey);
|
||||
}
|
||||
@ -132,7 +132,7 @@ public abstract class GameEvent implements Keyed {
|
||||
* @deprecated use {@link Registry#iterator()}.
|
||||
*/
|
||||
@NotNull
|
||||
@Deprecated
|
||||
@Deprecated(since = "1.20.1")
|
||||
public static Collection<GameEvent> values() {
|
||||
return Collections.unmodifiableCollection(Lists.newArrayList(Registry.GAME_EVENT));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user