예제 #1
0
 /// <summary>
 /// Sets the forward direction of the entity.
 /// </summary>
 public virtual void SetForwardDirection(int par1)
 {
     DataWatcher.UpdateObject(18, Convert.ToInt32(par1));
 }
 public virtual void SetOwner(string par1Str)
 {
     DataWatcher.UpdateObject(17, par1Str);
 }
예제 #3
0
 /// <summary>
 /// Sets the damage taken from the last hit.
 /// </summary>
 public virtual void SetDamageTaken(int par1)
 {
     DataWatcher.UpdateObject(19, Convert.ToInt32(par1));
 }
예제 #4
0
 /// <summary>
 /// Sets the time to count down from since the last time entity was hit.
 /// </summary>
 public virtual void SetTimeSinceHit(int par1)
 {
     DataWatcher.UpdateObject(17, Convert.ToInt32(par1));
 }
예제 #5
0
 /// <summary>
 /// Set the metadata of the block an enderman carries
 /// </summary>
 public virtual void SetCarryingData(int par1)
 {
     DataWatcher.UpdateObject(17, Convert.ToByte((sbyte)(par1 & 0xff)));
 }
예제 #6
0
 public virtual void Func_48147_c(int par1)
 {
     DataWatcher.UpdateObject(18, Convert.ToByte((sbyte)par1));
 }
 /// <summary>
 /// main AI tick function, replaces updateEntityActionState
 /// </summary>
 protected override void UpdateAITick()
 {
     DataWatcher.UpdateObject(18, Convert.ToInt32(GetHealth()));
 }
 /// <summary>
 /// (abstract) Protected helper method to read subclass entity data from NBT.
 /// </summary>
 public override void ReadEntityFromNBT(NBTTagCompound par1NBTTagCompound)
 {
     base.ReadEntityFromNBT(par1NBTTagCompound);
     DataWatcher.UpdateObject(17, Convert.ToByte((sbyte)(par1NBTTagCompound.Getbool("powered") ? 1 : 0)));
 }
 /// <summary>
 /// Called when a lightning bolt hits the entity.
 /// </summary>
 public override void OnStruckByLightning(EntityLightningBolt par1EntityLightningBolt)
 {
     base.OnStruckByLightning(par1EntityLightningBolt);
     DataWatcher.UpdateObject(17, Convert.ToByte((sbyte)1));
 }
 /// <summary>
 /// Sets the state of creeper, -1 to idle and 1 to be 'in fuse'
 /// </summary>
 public virtual void SetCreeperState(int par1)
 {
     DataWatcher.UpdateObject(16, Convert.ToByte((sbyte)par1));
 }
        public virtual void SetFleeceColor(int par1)
        {
            byte byte0 = DataWatcher.GetWatchableObjectByte(16);

            DataWatcher.UpdateObject(16, Convert.ToByte((sbyte)(byte0 & 0xf0 | par1 & 0xf)));
        }