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


Java ForgeHooks.onLivingSetAttackTarget方法代码示例

本文整理汇总了Java中net.minecraftforge.common.ForgeHooks.onLivingSetAttackTarget方法的典型用法代码示例。如果您正苦于以下问题:Java ForgeHooks.onLivingSetAttackTarget方法的具体用法?Java ForgeHooks.onLivingSetAttackTarget怎么用?Java ForgeHooks.onLivingSetAttackTarget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraftforge.common.ForgeHooks的用法示例。


在下文中一共展示了ForgeHooks.onLivingSetAttackTarget方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setRevengeTarget

import net.minecraftforge.common.ForgeHooks; //导入方法依赖的package包/类
public void setRevengeTarget(EntityLivingBase p_70604_1_) {
	;
	;
	this.entityLivingToAttack = p_70604_1_;
	this.revengeTimer = this.ticksExisted;
	ForgeHooks.onLivingSetAttackTarget(this, p_70604_1_);
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:8,代码来源:EntityLivingBase.java

示例2: setAttackTarget

import net.minecraftforge.common.ForgeHooks; //导入方法依赖的package包/类
public void setAttackTarget(EntityLivingBase p_70624_1_)
{
    this.attackTarget = p_70624_1_;
    ForgeHooks.onLivingSetAttackTarget(this, p_70624_1_);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:6,代码来源:EntityLiving.java

示例3: setRevengeTarget

import net.minecraftforge.common.ForgeHooks; //导入方法依赖的package包/类
public void setRevengeTarget(EntityLivingBase p_70604_1_)
{
    this.entityLivingToAttack = p_70604_1_;
    this.revengeTimer = this.ticksExisted;
    ForgeHooks.onLivingSetAttackTarget(this, p_70604_1_);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:7,代码来源:EntityLivingBase.java

示例4: setAttackTarget

import net.minecraftforge.common.ForgeHooks; //导入方法依赖的package包/类
/**
 * Sets the active target the Task system uses for tracking
 */
public void setAttackTarget(EntityLivingBase par1EntityLivingBase)
{
    this.attackTarget = par1EntityLivingBase;
    ForgeHooks.onLivingSetAttackTarget(this, par1EntityLivingBase);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:9,代码来源:EntityLiving.java

示例5: setRevengeTarget

import net.minecraftforge.common.ForgeHooks; //导入方法依赖的package包/类
public void setRevengeTarget(EntityLivingBase par1EntityLivingBase)
{
    this.entityLivingToAttack = par1EntityLivingBase;
    this.revengeTimer = this.ticksExisted;
    ForgeHooks.onLivingSetAttackTarget(this, par1EntityLivingBase);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:EntityLivingBase.java


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