当前位置: 首页>>代码示例>>Java>>正文


Java S19PacketEntityStatus类代码示例

本文整理汇总了Java中net.minecraft.network.play.server.S19PacketEntityStatus的典型用法代码示例。如果您正苦于以下问题:Java S19PacketEntityStatus类的具体用法?Java S19PacketEntityStatus怎么用?Java S19PacketEntityStatus使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


S19PacketEntityStatus类属于net.minecraft.network.play.server包,在下文中一共展示了S19PacketEntityStatus类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleEntityStatus

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death),
 * MinecartMobSpawner (spawn delay), FireworkRocket & MinecartTNT (explosion), IronGolem (throwing,...), Witch
 * (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke
 * particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)
 */
public void handleEntityStatus(S19PacketEntityStatus packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null)
    {
        if (packetIn.getOpCode() == 21)
        {
            this.gameController.getSoundHandler().playSound(new GuardianSound((EntityGuardian)entity));
        }
        else
        {
            entity.handleStatusUpdate(packetIn.getOpCode());
        }
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:24,代码来源:NetHandlerPlayClient.java

示例2: func_175773_a

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
public static void func_175773_a(GameRules p_175773_0_, String p_175773_1_)
{
    if ("reducedDebugInfo".equals(p_175773_1_))
    {
        byte b0 = (byte)(p_175773_0_.getBoolean(p_175773_1_) ? 22 : 23);

        for (EntityPlayerMP entityplayermp : MinecraftServer.getServer().getConfigurationManager().func_181057_v())
        {
            entityplayermp.playerNetServerHandler.sendPacket(new S19PacketEntityStatus(entityplayermp, b0));
        }
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:13,代码来源:CommandGameRule.java

示例3: handleEntityStatus

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in
 * LivingBase (hurt/death), MinecartMobSpawner (spawn delay), FireworkRocket &
 * MinecartTNT (explosion), IronGolem (throwing,...), Witch (spawn particles),
 * Zombie (villager transformation), Animal (breeding mode particles), Horse
 * (breeding/smoke particles), Sheep (...), Tameable (...), Villager (particles
 * for breeding mode, angry and happy), Wolf (...)
 */
public void handleEntityStatus(S19PacketEntityStatus packetIn) {
	PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
	Entity entity = packetIn.getEntity(this.clientWorldController);

	if (entity != null) {
		if (packetIn.getOpCode() == 21) {
			this.gameController.getSoundHandler().playSound(new GuardianSound((EntityGuardian) entity));
		} else {
			entity.handleStatusUpdate(packetIn.getOpCode());
		}
	}
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:21,代码来源:NetHandlerPlayClient.java

示例4: handleEntityStatus

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death),
 * MinecartMobSpawner (spawn delay), FireworkRocket & MinecartTNT (explosion), IronGolem (throwing,...), Witch
 * (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke
 * particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)
 */
public void handleEntityStatus(S19PacketEntityStatus p_147236_1_)
{
    Entity var2 = p_147236_1_.func_149161_a(this.clientWorldController);

    if (var2 != null)
    {
        var2.handleHealthUpdate(p_147236_1_.func_149160_c());
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:16,代码来源:NetHandlerPlayClient.java

示例5: handleEntityStatus

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
public void handleEntityStatus(S19PacketEntityStatus p_147236_1_)
{
    Entity entity = p_147236_1_.func_149161_a(this.clientWorldController);

    if (entity != null)
    {
        entity.handleHealthUpdate(p_147236_1_.func_149160_c());
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:10,代码来源:NetHandlerPlayClient.java

示例6: setEntityState

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
/**
 * sends a Packet 38 (Entity Status) to all tracked players of that entity
 */
public void setEntityState(Entity entityIn, byte state)
{
    this.getEntityTracker().func_151248_b(entityIn, new S19PacketEntityStatus(entityIn, state));
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:8,代码来源:WorldServer.java

示例7: onItemUseFinish

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
/**
 * Used for when item use count runs out, ie: eating completed
 */
protected void onItemUseFinish()
{
    this.playerNetServerHandler.sendPacket(new S19PacketEntityStatus(this, (byte)9));
    super.onItemUseFinish();
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:9,代码来源:EntityPlayerMP.java

示例8: setEntityState

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
/**
 * sends a Packet 38 (Entity Status) to all tracked players of that entity
 */
public void setEntityState(Entity p_72960_1_, byte p_72960_2_) {
	this.getEntityTracker().func_151248_b(p_72960_1_, new S19PacketEntityStatus(p_72960_1_, p_72960_2_));
}
 
开发者ID:OreCruncher,项目名称:Jiffy,代码行数:7,代码来源:WorldServer.java

示例9: setEntityState

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
/**
 * sends a Packet 38 (Entity Status) to all tracked players of that entity
 */
public void setEntityState(Entity par1Entity, byte par2)
{
    this.getEntityTracker().func_151248_b(par1Entity, new S19PacketEntityStatus(par1Entity, par2));
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:8,代码来源:WorldServer.java

示例10: setEntityState

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
public void setEntityState(Entity p_72960_1_, byte p_72960_2_)
{
    this.getEntityTracker().func_151248_b(p_72960_1_, new S19PacketEntityStatus(p_72960_1_, p_72960_2_));
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:5,代码来源:WorldServer.java

示例11: onItemUseFinish

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
protected void onItemUseFinish()
{
    this.playerNetServerHandler.sendPacket(new S19PacketEntityStatus(this, (byte)9));
    super.onItemUseFinish();
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:6,代码来源:EntityPlayerMP.java

示例12: handleEntityStatus

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death),
 * MinecartMobSpawner (spawn delay), FireworkRocket & MinecartTNT (explosion), IronGolem (throwing,...), Witch
 * (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke
 * particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)
 */
void handleEntityStatus(S19PacketEntityStatus packetIn);
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:8,代码来源:INetHandlerPlayClient.java

示例13: handleEntityStatus

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death),
 * MinecartMobSpawner (spawn delay), FireworkRocket & MinecartTNT (explosion), IronGolem (throwing,...), Witch
 * (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke
 * particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)
 */
void handleEntityStatus(S19PacketEntityStatus var1);
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:8,代码来源:INetHandlerPlayClient.java

示例14: handleEntityStatus

import net.minecraft.network.play.server.S19PacketEntityStatus; //导入依赖的package包/类
void handleEntityStatus(S19PacketEntityStatus p_147236_1_); 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:2,代码来源:INetHandlerPlayClient.java


注:本文中的net.minecraft.network.play.server.S19PacketEntityStatus类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。