Update to Minecraft 1.19.1

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2022-07-28 04:00:00 +10:00
parent ecc4ce98ab
commit 8d30515576
4 changed files with 46 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.19-R0.1-SNAPSHOT</version>
<version>1.19.1-R0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Bukkit</name>

View File

@ -62,6 +62,8 @@ public final class GameEvent implements Keyed {
public static final GameEvent INSTRUMENT_PLAY = getEvent("instrument_play");
public static final GameEvent ITEM_INTERACT_FINISH = getEvent("item_interact_finish");
public static final GameEvent ITEM_INTERACT_START = getEvent("item_interact_start");
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
public static final GameEvent MOB_INTERACT = getEvent("entity_interact");

View File

@ -38,6 +38,13 @@ import org.jetbrains.annotations.Nullable;
*/
public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginMessageRecipient {
/**
* {@inheritDoc}
*/
@NotNull
@Override
public String getName();
/**
* Gets the "friendly" name to display of this player. This may include
* color.

View File

@ -0,0 +1,36 @@
package org.bukkit.event.player;
import java.util.Set;
import org.bukkit.Warning;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;
/**
* Used to format chat for chat preview. If this event is used, then the result
* of the corresponding {@link AsyncPlayerChatEvent} <b>must</b> be formatted in
* the same way.
*
* @deprecated draft API
*/
@Deprecated
@Warning(false)
public class AsyncPlayerChatPreviewEvent extends AsyncPlayerChatEvent {
private static final HandlerList handlers = new HandlerList();
public AsyncPlayerChatPreviewEvent(final boolean async, @NotNull final Player who, @NotNull final String message, @NotNull final Set<Player> players) {
super(async, who, message, players);
}
@NotNull
@Override
public HandlerList getHandlers() {
return handlers;
}
@NotNull
public static HandlerList getHandlerList() {
return handlers;
}
}