• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java S19PacketEntityStatus类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CassandraSessionFactoryBean类代码示例发布时间:2022-05-23
下一篇:
Java UserDirectoryService类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap