本文整理汇总了Java中net.minecraft.server.gui.IUpdatePlayerListBox类的典型用法代码示例。如果您正苦于以下问题:Java IUpdatePlayerListBox类的具体用法?Java IUpdatePlayerListBox怎么用?Java IUpdatePlayerListBox使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IUpdatePlayerListBox类属于net.minecraft.server.gui包,在下文中一共展示了IUpdatePlayerListBox类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSoundUpdater
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
public IUpdatePlayerListBox getSoundUpdater()
{
return this.soundUpdater;
}
示例2: getSoundUpdater
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
public IUpdatePlayerListBox getSoundUpdater();
示例3: getSoundUpdater
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
public IUpdatePlayerListBox getSoundUpdater()
{
return this.rocketSoundUpdater;
}
示例4: updateTimeLightAndEntities
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
public void updateTimeLightAndEntities()
{
this.theProfiler.startSection("levels");
int var1;
for (var1 = 0; var1 < this.worldServers.length; ++var1)
{
long var2 = System.nanoTime();
if (var1 == 0 || this.getAllowNether())
{
WorldServer var4 = this.worldServers[var1];
this.theProfiler.startSection(var4.getWorldInfo().getWorldName());
this.theProfiler.startSection("pools");
var4.getWorldVec3Pool().clear();
this.theProfiler.endSection();
if (this.tickCounter % 20 == 0)
{
this.theProfiler.startSection("timeSync");
this.serverConfigManager.func_148537_a(new S03PacketTimeUpdate(var4.getTotalWorldTime(), var4.getWorldTime(), var4.getGameRules().getGameRuleBooleanValue("doDaylightCycle")), var4.provider.dimensionId);
this.theProfiler.endSection();
}
this.theProfiler.startSection("tick");
CrashReport var6;
try
{
var4.tick();
}
catch (Throwable var8)
{
var6 = CrashReport.makeCrashReport(var8, "Exception ticking world");
var4.addWorldInfoToCrashReport(var6);
throw new ReportedException(var6);
}
try
{
var4.updateEntities();
}
catch (Throwable var7)
{
var6 = CrashReport.makeCrashReport(var7, "Exception ticking world entities");
var4.addWorldInfoToCrashReport(var6);
throw new ReportedException(var6);
}
this.theProfiler.endSection();
this.theProfiler.startSection("tracker");
var4.getEntityTracker().updateTrackedEntities();
this.theProfiler.endSection();
this.theProfiler.endSection();
}
this.timeOfLastDimensionTick[var1][this.tickCounter % 100] = System.nanoTime() - var2;
}
this.theProfiler.endStartSection("connection");
this.func_147137_ag().networkTick();
this.theProfiler.endStartSection("players");
this.serverConfigManager.sendPlayerInfoToAllPlayers();
this.theProfiler.endStartSection("tickables");
for (var1 = 0; var1 < this.tickables.size(); ++var1)
{
((IUpdatePlayerListBox)this.tickables.get(var1)).update();
}
this.theProfiler.endSection();
}
示例5: func_82010_a
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
@SideOnly(Side.SERVER)
public void func_82010_a(IUpdatePlayerListBox p_82010_1_)
{
this.tickables.add(p_82010_1_);
}
示例6: updateTimeLightAndEntities
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
public void updateTimeLightAndEntities()
{
this.theProfiler.startSection("levels");
net.minecraftforge.common.chunkio.ChunkIOExecutor.tick();
int i;
Integer[] ids = DimensionManager.getIDs(this.tickCounter % 200 == 0);
for (int x = 0; x < ids.length; x++)
{
int id = ids[x];
long j = System.nanoTime();
if (id == 0 || this.getAllowNether())
{
WorldServer worldserver = DimensionManager.getWorld(id);
this.theProfiler.startSection(worldserver.getWorldInfo().getWorldName());
this.theProfiler.startSection("pools");
this.theProfiler.endSection();
if (this.tickCounter % 20 == 0)
{
this.theProfiler.startSection("timeSync");
this.serverConfigManager.sendPacketToAllPlayersInDimension(new S03PacketTimeUpdate(worldserver.getTotalWorldTime(), worldserver.getWorldTime(), worldserver.getGameRules().getGameRuleBooleanValue("doDaylightCycle")), worldserver.provider.dimensionId);
this.theProfiler.endSection();
}
this.theProfiler.startSection("tick");
FMLCommonHandler.instance().onPreWorldTick(worldserver);
CrashReport crashreport;
try
{
worldserver.tick();
}
catch (Throwable throwable1)
{
crashreport = CrashReport.makeCrashReport(throwable1, "Exception ticking world");
worldserver.addWorldInfoToCrashReport(crashreport);
throw new ReportedException(crashreport);
}
try
{
worldserver.updateEntities();
}
catch (Throwable throwable)
{
crashreport = CrashReport.makeCrashReport(throwable, "Exception ticking world entities");
worldserver.addWorldInfoToCrashReport(crashreport);
throw new ReportedException(crashreport);
}
FMLCommonHandler.instance().onPostWorldTick(worldserver);
this.theProfiler.endSection();
this.theProfiler.startSection("tracker");
worldserver.getEntityTracker().updateTrackedEntities();
this.theProfiler.endSection();
this.theProfiler.endSection();
}
worldTickTimes.get(id)[this.tickCounter % 100] = System.nanoTime() - j;
}
this.theProfiler.endStartSection("dim_unloading");
DimensionManager.unloadWorlds(worldTickTimes);
this.theProfiler.endStartSection("connection");
this.func_147137_ag().networkTick();
this.theProfiler.endStartSection("players");
this.serverConfigManager.sendPlayerInfoToAllPlayers();
this.theProfiler.endStartSection("tickables");
for (i = 0; i < this.tickables.size(); ++i)
{
((IUpdatePlayerListBox)this.tickables.get(i)).update();
}
this.theProfiler.endSection();
}
示例7: func_82735_a
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
public IUpdatePlayerListBox func_82735_a(EntityMinecart p_82735_1_) {
return null;
}
示例8: func_82735_a
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
public IUpdatePlayerListBox func_82735_a(EntityMinecart p_82735_1_) {
return new SoundUpdaterMinecart(this.field_73037_M.field_71416_A, p_82735_1_, this.field_73037_M.field_71439_g);
}
示例9: func_71190_q
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
public void func_71190_q() {
this.field_71304_b.func_76320_a("levels");
int var1;
for(var1 = 0; var1 < this.field_71305_c.length; ++var1) {
long var2 = System.nanoTime();
if(var1 == 0 || this.func_71255_r()) {
WorldServer var4 = this.field_71305_c[var1];
this.field_71304_b.func_76320_a(var4.func_72912_H().func_76065_j());
this.field_71304_b.func_76320_a("pools");
var4.func_82732_R().func_72343_a();
this.field_71304_b.func_76319_b();
if(this.field_71315_w % 20 == 0) {
this.field_71304_b.func_76320_a("timeSync");
this.field_71318_t.func_72396_a(new Packet4UpdateTime(var4.func_82737_E(), var4.func_72820_D(), var4.func_82736_K().func_82766_b("doDaylightCycle")), var4.field_73011_w.field_76574_g);
this.field_71304_b.func_76319_b();
}
this.field_71304_b.func_76320_a("tick");
CrashReport var6;
try {
var4.func_72835_b();
} catch (Throwable var8) {
var6 = CrashReport.func_85055_a(var8, "Exception ticking world");
var4.func_72914_a(var6);
throw new ReportedException(var6);
}
try {
var4.func_72939_s();
} catch (Throwable var7) {
var6 = CrashReport.func_85055_a(var7, "Exception ticking world entities");
var4.func_72914_a(var6);
throw new ReportedException(var6);
}
this.field_71304_b.func_76319_b();
this.field_71304_b.func_76320_a("tracker");
var4.func_73039_n().func_72788_a();
this.field_71304_b.func_76319_b();
this.field_71304_b.func_76319_b();
}
this.field_71312_k[var1][this.field_71315_w % 100] = System.nanoTime() - var2;
}
this.field_71304_b.func_76318_c("connection");
this.func_71212_ac().func_71747_b();
this.field_71304_b.func_76318_c("players");
this.field_71318_t.func_72374_b();
this.field_71304_b.func_76318_c("tickables");
for(var1 = 0; var1 < this.field_71322_p.size(); ++var1) {
((IUpdatePlayerListBox)this.field_71322_p.get(var1)).func_73660_a();
}
this.field_71304_b.func_76319_b();
}
示例10: func_82010_a
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
@SideOnly(Side.SERVER)
public void func_82010_a(IUpdatePlayerListBox p_82010_1_) {
this.field_71322_p.add(p_82010_1_);
}
示例11: getMinecartSoundUpdater
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
public IUpdatePlayerListBox getMinecartSoundUpdater(EntityMinecart par1EntityMinecart)
{
return null;
}
示例12: getMinecartSoundUpdater
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
public IUpdatePlayerListBox getMinecartSoundUpdater(EntityMinecart par1EntityMinecart)
{
return new SoundUpdaterMinecart(this.mc.sndManager, par1EntityMinecart, this.mc.thePlayer);
}
示例13: updateTimeLightAndEntities
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
public void updateTimeLightAndEntities()
{
this.theProfiler.startSection("levels");
int i;
Integer[] ids = DimensionManager.getIDs(this.tickCounter % 200 == 0);
for (int x = 0; x < ids.length; x++)
{
int id = ids[x];
long j = System.nanoTime();
if (id == 0 || this.getAllowNether())
{
WorldServer worldserver = DimensionManager.getWorld(id);
this.theProfiler.startSection(worldserver.getWorldInfo().getWorldName());
this.theProfiler.startSection("pools");
worldserver.getWorldVec3Pool().clear();
this.theProfiler.endSection();
if (this.tickCounter % 20 == 0)
{
this.theProfiler.startSection("timeSync");
this.serverConfigManager.sendPacketToAllPlayersInDimension(new Packet4UpdateTime(worldserver.getTotalWorldTime(), worldserver.getWorldTime(), worldserver.getGameRules().getGameRuleBooleanValue("doDaylightCycle")), worldserver.provider.dimensionId);
this.theProfiler.endSection();
}
this.theProfiler.startSection("tick");
FMLCommonHandler.instance().onPreWorldTick(worldserver);
CrashReport crashreport;
try
{
worldserver.tick();
}
catch (Throwable throwable)
{
crashreport = CrashReport.makeCrashReport(throwable, "Exception ticking world");
worldserver.addWorldInfoToCrashReport(crashreport);
throw new ReportedException(crashreport);
}
try
{
worldserver.updateEntities();
}
catch (Throwable throwable1)
{
crashreport = CrashReport.makeCrashReport(throwable1, "Exception ticking world entities");
worldserver.addWorldInfoToCrashReport(crashreport);
throw new ReportedException(crashreport);
}
FMLCommonHandler.instance().onPostWorldTick(worldserver);
this.theProfiler.endSection();
this.theProfiler.startSection("tracker");
worldserver.getEntityTracker().updateTrackedEntities();
this.theProfiler.endSection();
this.theProfiler.endSection();
}
worldTickTimes.get(id)[this.tickCounter % 100] = System.nanoTime() - j;
}
this.theProfiler.endStartSection("dim_unloading");
DimensionManager.unloadWorlds(worldTickTimes);
this.theProfiler.endStartSection("connection");
this.getNetworkThread().networkTick();
this.theProfiler.endStartSection("players");
this.serverConfigManager.sendPlayerInfoToAllPlayers();
this.theProfiler.endStartSection("tickables");
for (i = 0; i < this.tickables.size(); ++i)
{
((IUpdatePlayerListBox)this.tickables.get(i)).update();
}
this.theProfiler.endSection();
}
示例14: func_82010_a
import net.minecraft.server.gui.IUpdatePlayerListBox; //导入依赖的package包/类
@SideOnly(Side.SERVER)
public void func_82010_a(IUpdatePlayerListBox par1IUpdatePlayerListBox)
{
this.tickables.add(par1IUpdatePlayerListBox);
}