當前位置: 首頁>>代碼示例>>Java>>正文


Java SynapsePlayer類代碼示例

本文整理匯總了Java中org.itxtech.synapseapi.SynapsePlayer的典型用法代碼示例。如果您正苦於以下問題:Java SynapsePlayer類的具體用法?Java SynapsePlayer怎麽用?Java SynapsePlayer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SynapsePlayer類屬於org.itxtech.synapseapi包,在下文中一共展示了SynapsePlayer類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onCommand

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
    if (command.getLabel().equalsIgnoreCase("transfer")) {
        Player p = getServer().getPlayer(args[0]);
        String hash = args[1];
        ((SynapsePlayer) p).transfer(((SynapsePlayer) p).getSynapseEntry().getClientData().getHashByDescription(hash));
    }
    return true;
}
 
開發者ID:MPEServer,項目名稱:NemisysTransfer,代碼行數:10,代碼來源:Main.java

示例2: SynapsePlayerCreationEvent

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SynapsePlayerCreationEvent(SourceInterface interfaz, Class<? extends SynapsePlayer> baseClass, Class<? extends SynapsePlayer> playerClass, Long clientId, String address, int port) {
    this.interfaz = interfaz;
    this.clientId = clientId;
    this.address = address;
    this.port = port;

    this.baseClass = baseClass;
    this.playerClass = playerClass;
}
 
開發者ID:PrismarineMC,項目名稱:MagmaBlock,代碼行數:10,代碼來源:SynapsePlayerCreationEvent.java

示例3: getBaseClass

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public Class<? extends SynapsePlayer> getBaseClass() {
    return baseClass;
}
 
開發者ID:PrismarineMC,項目名稱:MagmaBlock,代碼行數:4,代碼來源:SynapsePlayerCreationEvent.java

示例4: setBaseClass

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public void setBaseClass(Class<? extends SynapsePlayer> baseClass) {
    this.baseClass = baseClass;
}
 
開發者ID:PrismarineMC,項目名稱:MagmaBlock,代碼行數:4,代碼來源:SynapsePlayerCreationEvent.java

示例5: getPlayerClass

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public Class<? extends SynapsePlayer> getPlayerClass() {
    return playerClass;
}
 
開發者ID:PrismarineMC,項目名稱:MagmaBlock,代碼行數:4,代碼來源:SynapsePlayerCreationEvent.java

示例6: setPlayerClass

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public void setPlayerClass(Class<? extends SynapsePlayer> playerClass) {
    this.playerClass = playerClass;
}
 
開發者ID:PrismarineMC,項目名稱:MagmaBlock,代碼行數:4,代碼來源:SynapsePlayerCreationEvent.java

示例7: SynapsePlayerConnectEvent

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SynapsePlayerConnectEvent(SynapsePlayer player) {
    this(player, true);
}
 
開發者ID:PrismarineMC,項目名稱:MagmaBlock,代碼行數:4,代碼來源:SynapsePlayerConnectEvent.java

示例8: SynapsePlayerEvent

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SynapsePlayerEvent(SynapsePlayer player) {
    this.player = player;
}
 
開發者ID:PrismarineMC,項目名稱:MagmaBlock,代碼行數:4,代碼來源:SynapsePlayerEvent.java

示例9: getPlayer

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SynapsePlayer getPlayer() {
    return player;
}
 
開發者ID:PrismarineMC,項目名稱:MagmaBlock,代碼行數:4,代碼來源:SynapsePlayerEvent.java

示例10: SendPlayerSpawnRunnable

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SendPlayerSpawnRunnable(SynapsePlayer player) {
    this.player = player;
}
 
開發者ID:iTXTech,項目名稱:SynapseAPI,代碼行數:4,代碼來源:SendPlayerSpawnRunnable.java

示例11: TransferRunnable

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public TransferRunnable(SynapsePlayer player, String hash) {
    this.player = player;
    this.hash = hash;
}
 
開發者ID:iTXTech,項目名稱:SynapseAPI,代碼行數:5,代碼來源:TransferRunnable.java

示例12: SendChangeDimensionRunnable

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SendChangeDimensionRunnable(SynapsePlayer player, int dimension) {
    this.player = player;
    this.dimension = dimension;
}
 
開發者ID:iTXTech,項目名稱:SynapseAPI,代碼行數:5,代碼來源:SendChangeDimensionRunnable.java

示例13: SynapsePlayerTransferEvent

import org.itxtech.synapseapi.SynapsePlayer; //導入依賴的package包/類
public SynapsePlayerTransferEvent(SynapsePlayer player, Entry data) {
    super(player);
    this.clientData = data;
}
 
開發者ID:iTXTech,項目名稱:SynapseAPI,代碼行數:5,代碼來源:SynapsePlayerTransferEvent.java


注:本文中的org.itxtech.synapseapi.SynapsePlayer類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。