本文整理汇总了Java中net.minecraft.network.login.server.S02PacketLoginSuccess类的典型用法代码示例。如果您正苦于以下问题:Java S02PacketLoginSuccess类的具体用法?Java S02PacketLoginSuccess怎么用?Java S02PacketLoginSuccess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
S02PacketLoginSuccess类属于net.minecraft.network.login.server包,在下文中一共展示了S02PacketLoginSuccess类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: func_147326_c
import net.minecraft.network.login.server.S02PacketLoginSuccess; //导入依赖的package包/类
public void func_147326_c()
{
if (!this.field_147337_i.isComplete())
{
UUID var1 = UUID.nameUUIDFromBytes(("OfflinePlayer:" + this.field_147337_i.getName()).getBytes(Charsets.UTF_8));
this.field_147337_i = new GameProfile(var1.toString().replaceAll("-", ""), this.field_147337_i.getName());
}
String var2 = this.field_147327_f.getConfigurationManager().func_148542_a(this.field_147333_a.getSocketAddress(), this.field_147337_i);
if (var2 != null)
{
this.func_147322_a(var2);
}
else
{
this.field_147328_g = NetHandlerLoginServer.LoginState.ACCEPTED;
this.field_147333_a.scheduleOutboundPacket(new S02PacketLoginSuccess(this.field_147337_i), new GenericFutureListener[0]);
this.field_147327_f.getConfigurationManager().initializeConnectionToPlayer(this.field_147333_a, this.field_147327_f.getConfigurationManager().func_148545_a(this.field_147337_i));
}
}
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:22,代码来源:NetHandlerLoginServer.java
示例2: func_147326_c
import net.minecraft.network.login.server.S02PacketLoginSuccess; //导入依赖的package包/类
public void func_147326_c()
{
// Spigot start - Moved to initUUID
/*
if (!this.field_147337_i.isComplete())
{
this.field_147337_i = this.func_152506_a(this.field_147337_i);
}
*/
// Spigot end
// CraftBukkit start - fire PlayerLoginEvent
EntityPlayerMP s = this.field_147327_f.getConfigurationManager().attemptLogin(this, this.field_147337_i, this.hostname);
if (s == null)
{
// this.func_147322_a(s);
// CraftBukkit end
}
else
{
this.field_147328_g = NetHandlerLoginServer.LoginState.ACCEPTED;
this.field_147333_a.scheduleOutboundPacket(new S02PacketLoginSuccess(this.field_147337_i), new GenericFutureListener[0]);
FMLNetworkHandler.fmlServerHandshake(this.field_147327_f.getConfigurationManager(), this.field_147333_a, this.field_147327_f.getConfigurationManager().processLogin(this.field_147337_i, s)); // CraftBukkit - add player reference
}
}
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:27,代码来源:NetHandlerLoginServer.java
示例3: func_147326_c
import net.minecraft.network.login.server.S02PacketLoginSuccess; //导入依赖的package包/类
public void func_147326_c()
{
if (!this.field_147337_i.isComplete())
{
this.field_147337_i = this.func_152506_a(this.field_147337_i);
}
String s = this.field_147327_f.getConfigurationManager().allowUserToConnect(this.field_147333_a.getSocketAddress(), this.field_147337_i);
if (s != null)
{
this.func_147322_a(s);
}
else
{
this.field_147328_g = NetHandlerLoginServer.LoginState.ACCEPTED;
this.field_147333_a.scheduleOutboundPacket(new S02PacketLoginSuccess(this.field_147337_i), new GenericFutureListener[0]);
FMLNetworkHandler.fmlServerHandshake(this.field_147327_f.getConfigurationManager(), this.field_147333_a, this.field_147327_f.getConfigurationManager().createPlayerForUser(this.field_147337_i));
}
}
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:21,代码来源:NetHandlerLoginServer.java
示例4: tryAcceptPlayer
import net.minecraft.network.login.server.S02PacketLoginSuccess; //导入依赖的package包/类
public void tryAcceptPlayer()
{
if (!this.loginGameProfile.isComplete())
{
this.loginGameProfile = this.getOfflineProfile(this.loginGameProfile);
}
String s = this.server.getConfigurationManager().allowUserToConnect(this.networkManager.getRemoteAddress(), this.loginGameProfile);
if (s != null)
{
this.closeConnection(s);
}
else
{
this.currentLoginState = NetHandlerLoginServer.LoginState.ACCEPTED;
if (this.server.getNetworkCompressionTreshold() >= 0 && !this.networkManager.isLocalChannel())
{
this.networkManager.sendPacket(new S03PacketEnableCompression(this.server.getNetworkCompressionTreshold()), new ChannelFutureListener()
{
public void operationComplete(ChannelFuture p_operationComplete_1_) throws Exception
{
NetHandlerLoginServer.this.networkManager.setCompressionTreshold(NetHandlerLoginServer.this.server.getNetworkCompressionTreshold());
}
}, new GenericFutureListener[0]);
}
this.networkManager.sendPacket(new S02PacketLoginSuccess(this.loginGameProfile));
EntityPlayerMP entityplayermp = this.server.getConfigurationManager().getPlayerByUUID(this.loginGameProfile.getId());
if (entityplayermp != null)
{
this.currentLoginState = NetHandlerLoginServer.LoginState.DELAY_ACCEPT;
this.field_181025_l = this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile);
}
else
{
this.server.getConfigurationManager().initializeConnectionToPlayer(this.networkManager, this.server.getConfigurationManager().createPlayerForUser(this.loginGameProfile));
}
}
}
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:43,代码来源:NetHandlerLoginServer.java
示例5: handleLoginSuccess
import net.minecraft.network.login.server.S02PacketLoginSuccess; //导入依赖的package包/类
public void handleLoginSuccess(S02PacketLoginSuccess packetIn)
{
this.gameProfile = packetIn.getProfile();
this.networkManager.setConnectionState(EnumConnectionState.PLAY);
this.networkManager.setNetHandler(new NetHandlerPlayClient(this.mc, this.previousGuiScreen, this.networkManager, this.gameProfile));
}
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:7,代码来源:NetHandlerLoginClient.java
示例6: handleLoginSuccess
import net.minecraft.network.login.server.S02PacketLoginSuccess; //导入依赖的package包/类
public void handleLoginSuccess(S02PacketLoginSuccess p_147390_1_)
{
this.field_147393_d.setConnectionState(EnumConnectionState.PLAY);
}
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:5,代码来源:NetHandlerLoginClient.java
示例7: handleLoginSuccess
import net.minecraft.network.login.server.S02PacketLoginSuccess; //导入依赖的package包/类
public void handleLoginSuccess(S02PacketLoginSuccess p_147390_1_)
{
FMLNetworkHandler.fmlClientHandshake(this.field_147393_d);
}
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:5,代码来源:NetHandlerLoginClient.java
示例8: getPacket
import net.minecraft.network.login.server.S02PacketLoginSuccess; //导入依赖的package包/类
@Override
public Class<? extends Packet> getPacket() {
return S02PacketLoginSuccess.class;
}
开发者ID:killjoy1221,项目名称:Protocol4,代码行数:5,代码来源:LoginSuccess_4.java
示例9: handleLoginSuccess
import net.minecraft.network.login.server.S02PacketLoginSuccess; //导入依赖的package包/类
void handleLoginSuccess(S02PacketLoginSuccess packetIn);
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:2,代码来源:INetHandlerLoginClient.java
示例10: handleLoginSuccess
import net.minecraft.network.login.server.S02PacketLoginSuccess; //导入依赖的package包/类
void handleLoginSuccess(S02PacketLoginSuccess var1);
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:2,代码来源:INetHandlerLoginClient.java
示例11: handleLoginSuccess
import net.minecraft.network.login.server.S02PacketLoginSuccess; //导入依赖的package包/类
void handleLoginSuccess(S02PacketLoginSuccess p_147390_1_);
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:2,代码来源:INetHandlerLoginClient.java
注:本文中的net.minecraft.network.login.server.S02PacketLoginSuccess类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论