本文整理匯總了Java中com.github.theholywaffle.teamspeak3.api.event.ChannelCreateEvent類的典型用法代碼示例。如果您正苦於以下問題:Java ChannelCreateEvent類的具體用法?Java ChannelCreateEvent怎麽用?Java ChannelCreateEvent使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ChannelCreateEvent類屬於com.github.theholywaffle.teamspeak3.api.event包,在下文中一共展示了ChannelCreateEvent類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onChannelCreate
import com.github.theholywaffle.teamspeak3.api.event.ChannelCreateEvent; //導入依賴的package包/類
public void onChannelCreate(final ChannelCreateEvent event) {
Channel channel = this.server.getChannelById(event.getChannelId());
Client invoker = this.server.getClientById(event.getInvokerId());
Preconditions.checkNotNull(channel);
Preconditions.checkNotNull(invoker);
this.bus.post(new eu.matejkormuth.ts3bot.events.channel.ChannelCreatedEvent(
this.server, channel, invoker));
}
示例2: handleEvent
import com.github.theholywaffle.teamspeak3.api.event.ChannelCreateEvent; //導入依賴的package包/類
void handleEvent(ChannelCreateEvent event);
示例3: onChannelCreate
import com.github.theholywaffle.teamspeak3.api.event.ChannelCreateEvent; //導入依賴的package包/類
public void onChannelCreate(ChannelCreateEvent event) {}