本文整理汇总了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_);
}
示例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_);
}
示例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_);
}
示例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);
}
示例5: setRevengeTarget
import net.minecraftforge.common.ForgeHooks; //导入方法依赖的package包/类
public void setRevengeTarget(EntityLivingBase par1EntityLivingBase)
{
this.entityLivingToAttack = par1EntityLivingBase;
this.revengeTimer = this.ticksExisted;
ForgeHooks.onLivingSetAttackTarget(this, par1EntityLivingBase);
}