Java Code Examples for net.minecraft.network.NetworkSystem

The following are top voted examples for showing how to use net.minecraft.network.NetworkSystem. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: Cauldron   File: MinecraftServer.java   Source Code and License 6 votes vote down vote up
public MinecraftServer(File p_i45281_1_, Proxy p_i45281_2_)
{
    this.field_152366_X = new PlayerProfileCache(this, field_152367_a);
    mcServer = this;
    this.serverProxy = p_i45281_2_;
    this.anvilFile = p_i45281_1_;
    this.field_147144_o = new NetworkSystem(this);
    this.commandManager = new ServerCommandManager();
    this.anvilConverterForAnvilFile = new AnvilSaveConverter(p_i45281_1_);
    this.field_152364_T = new YggdrasilAuthenticationService(p_i45281_2_, UUID.randomUUID().toString());
    this.field_147143_S = this.field_152364_T.createMinecraftSessionService();
    this.field_152365_W = this.field_152364_T.createProfileRepository();
    this.primaryThread = new Thread(this, "Server thread"); // CraftBukkit
    this.cauldronConfig = new CauldronConfig("cauldron.yml", "cauldron");
    this.tileEntityConfig = new TileEntityConfig("tileentities.yml", "cauldron_te");
}
 
Example 2
Project: DecompiledMinecraft   File: MinecraftServer.java   Source Code and License 5 votes vote down vote up
public MinecraftServer(File workDir, Proxy proxy, File profileCacheDir)
{
    this.serverProxy = proxy;
    mcServer = this;
    this.anvilFile = workDir;
    this.networkSystem = new NetworkSystem(this);
    this.profileCache = new PlayerProfileCache(this, profileCacheDir);
    this.commandManager = this.createNewCommandManager();
    this.anvilConverterForAnvilFile = new AnvilSaveConverter(workDir);
    this.authService = new YggdrasilAuthenticationService(proxy, UUID.randomUUID().toString());
    this.sessionService = this.authService.createMinecraftSessionService();
    this.profileRepo = this.authService.createProfileRepository();
}
 
Example 3
Project: DecompiledMinecraft   File: MinecraftServer.java   Source Code and License 5 votes vote down vote up
public MinecraftServer(File workDir, Proxy proxy, File profileCacheDir)
{
    this.serverProxy = proxy;
    mcServer = this;
    this.anvilFile = workDir;
    this.networkSystem = new NetworkSystem(this);
    this.profileCache = new PlayerProfileCache(this, profileCacheDir);
    this.commandManager = this.createNewCommandManager();
    this.anvilConverterForAnvilFile = new AnvilSaveConverter(workDir);
    this.authService = new YggdrasilAuthenticationService(proxy, UUID.randomUUID().toString());
    this.sessionService = this.authService.createMinecraftSessionService();
    this.profileRepo = this.authService.createProfileRepository();
}
 
Example 4
Project: BaseClient   File: MinecraftServer.java   Source Code and License 5 votes vote down vote up
public MinecraftServer(File workDir, Proxy proxy, File profileCacheDir)
{
    this.serverProxy = proxy;
    mcServer = this;
    this.anvilFile = workDir;
    this.networkSystem = new NetworkSystem(this);
    this.profileCache = new PlayerProfileCache(this, profileCacheDir);
    this.commandManager = this.createNewCommandManager();
    this.anvilConverterForAnvilFile = new AnvilSaveConverter(workDir);
    this.authService = new YggdrasilAuthenticationService(proxy, UUID.randomUUID().toString());
    this.sessionService = this.authService.createMinecraftSessionService();
    this.profileRepo = this.authService.createProfileRepository();
}
 
Example 5
Project: BaseClient   File: MinecraftServer.java   Source Code and License 5 votes vote down vote up
public MinecraftServer(File workDir, Proxy proxy, File profileCacheDir)
{
    this.serverProxy = proxy;
    mcServer = this;
    this.anvilFile = workDir;
    this.networkSystem = new NetworkSystem(this);
    this.profileCache = new PlayerProfileCache(this, profileCacheDir);
    this.commandManager = this.createNewCommandManager();
    this.anvilConverterForAnvilFile = new AnvilSaveConverter(workDir);
    this.authService = new YggdrasilAuthenticationService(proxy, UUID.randomUUID().toString());
    this.sessionService = this.authService.createMinecraftSessionService();
    this.profileRepo = this.authService.createProfileRepository();
}
 
Example 6
Project: Backmemed   File: MinecraftServer.java   Source Code and License 5 votes vote down vote up
public MinecraftServer(File anvilFileIn, Proxy proxyIn, DataFixer dataFixerIn, YggdrasilAuthenticationService authServiceIn, MinecraftSessionService sessionServiceIn, GameProfileRepository profileRepoIn, PlayerProfileCache profileCacheIn)
{
    this.serverProxy = proxyIn;
    this.authService = authServiceIn;
    this.sessionService = sessionServiceIn;
    this.profileRepo = profileRepoIn;
    this.profileCache = profileCacheIn;
    this.anvilFile = anvilFileIn;
    this.networkSystem = new NetworkSystem(this);
    this.commandManager = this.createNewCommandManager();
    this.anvilConverterForAnvilFile = new AnvilSaveConverter(anvilFileIn, dataFixerIn);
    this.dataFixer = dataFixerIn;
}
 
Example 7
Project: CustomWorldGen   File: MinecraftServer.java   Source Code and License 5 votes vote down vote up
public MinecraftServer(File anvilFileIn, Proxy proxyIn, DataFixer dataFixerIn, YggdrasilAuthenticationService authServiceIn, MinecraftSessionService sessionServiceIn, GameProfileRepository profileRepoIn, PlayerProfileCache profileCacheIn)
{
    this.serverProxy = proxyIn;
    this.authService = authServiceIn;
    this.sessionService = sessionServiceIn;
    this.profileRepo = profileRepoIn;
    this.profileCache = profileCacheIn;
    this.anvilFile = anvilFileIn;
    this.networkSystem = new NetworkSystem(this);
    this.commandManager = this.createNewCommandManager();
    this.anvilConverterForAnvilFile = new AnvilSaveConverter(anvilFileIn, dataFixerIn);
    this.dataFixer = dataFixerIn;
}
 
Example 8
Project: Resilience-Client-Source   File: MinecraftServer.java   Source Code and License 5 votes vote down vote up
public MinecraftServer(File p_i45281_1_, Proxy p_i45281_2_)
{
    mcServer = this;
    this.serverProxy = p_i45281_2_;
    this.anvilFile = p_i45281_1_;
    this.field_147144_o = new NetworkSystem(this);
    this.commandManager = new ServerCommandManager();
    this.anvilConverterForAnvilFile = new AnvilSaveConverter(p_i45281_1_);
    this.field_147143_S = (new YggdrasilAuthenticationService(p_i45281_2_, UUID.randomUUID().toString())).createMinecraftSessionService();
}
 
Example 9
Project: Cauldron   File: MinecraftServer.java   Source Code and License 5 votes vote down vote up
public MinecraftServer(File p_i45281_1_, Proxy p_i45281_2_)
{
    this.field_152366_X = new PlayerProfileCache(this, field_152367_a);
    mcServer = this;
    this.serverProxy = p_i45281_2_;
    this.anvilFile = p_i45281_1_;
    this.field_147144_o = new NetworkSystem(this);
    this.commandManager = new ServerCommandManager();
    this.anvilConverterForAnvilFile = new AnvilSaveConverter(p_i45281_1_);
    this.field_152364_T = new YggdrasilAuthenticationService(p_i45281_2_, UUID.randomUUID().toString());
    this.field_147143_S = this.field_152364_T.createMinecraftSessionService();
    this.field_152365_W = this.field_152364_T.createProfileRepository();
}
 
Example 10
Project: DecompiledMinecraft   File: MinecraftServer.java   Source Code and License 4 votes vote down vote up
public NetworkSystem getNetworkSystem()
{
    return this.networkSystem;
}
 
Example 11
Project: DecompiledMinecraft   File: MinecraftServer.java   Source Code and License 4 votes vote down vote up
public NetworkSystem getNetworkSystem()
{
    return this.networkSystem;
}
 
Example 12
Project: BaseClient   File: MinecraftServer.java   Source Code and License 4 votes vote down vote up
public NetworkSystem getNetworkSystem()
{
    return this.networkSystem;
}
 
Example 13
Project: BaseClient   File: MinecraftServer.java   Source Code and License 4 votes vote down vote up
public NetworkSystem getNetworkSystem()
{
    return this.networkSystem;
}
 
Example 14
Project: Backmemed   File: MinecraftServer.java   Source Code and License 4 votes vote down vote up
public NetworkSystem getNetworkSystem()
{
    return this.networkSystem;
}
 
Example 15
Project: CustomWorldGen   File: MinecraftServer.java   Source Code and License 4 votes vote down vote up
public NetworkSystem getNetworkSystem()
{
    return this.networkSystem;
}
 
Example 16
Project: Resilience-Client-Source   File: MinecraftServer.java   Source Code and License 4 votes vote down vote up
public NetworkSystem func_147137_ag()
{
    return this.field_147144_o;
}
 
Example 17
Project: Cauldron   File: MinecraftServer.java   Source Code and License 4 votes vote down vote up
public NetworkSystem func_147137_ag()
{
    return (this.field_147144_o) == null ? this.field_147144_o = new NetworkSystem(this) : this.field_147144_o;     // Spigot
}
 
Example 18
Project: Cauldron   File: MinecraftServer.java   Source Code and License 4 votes vote down vote up
public NetworkSystem func_147137_ag()
{
    return this.field_147144_o;
}
 
Example 19
Project: nailed   File: MixinMinecraftServer.java   Source Code and License 4 votes vote down vote up
@Overwrite
public NetworkSystem getNetworkSystem(){
    return null; //TODO: make this a seperate module or remove it entirely
}
 
Example 20
Project: NeptuneMod   File: MixinMinecraftServer.java   Source Code and License votes vote down vote up
@Shadow public abstract NetworkSystem getNetworkSystem();