类 OnDatapackSyncEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.OnDatapackSyncEvent
public class OnDatapackSyncEvent
extends net.minecraftforge.eventbus.api.Event
Fires when a player joins the server or when the reload command is ran,
before tags and crafting recipes are sent to the client. Send datapack data
to clients when this event fires.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
playerList
-
player
-
-
构造器详细资料
-
OnDatapackSyncEvent
-
-
方法详细资料
-
getPlayerList
- 返回:
- The server's player list to get a view of all players.
-
getPlayer
- 返回:
- The player to sync datapacks to. Null when syncing for all players, such as when the reload command runs.
-
getPlayers
- 返回:
- A list of players that should receive data during this event, which is the specified player (if not null) or all players otherwise.
-