Exemple #1
0
        public override int GetHashCode()
        {
            var hashCode = -596621668;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + IsEmpty.GetHashCode();
            hashCode = hashCode * -1521134295 + BlockId.GetHashCode();
            hashCode = hashCode * -1521134295 + ItemCount.GetHashCode();
            hashCode = hashCode * -1521134295 + ItemDamage.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <NbtFile> .Default.GetHashCode(NBT);

            return(hashCode);
        }
Exemple #2
0
 public void SetDamage( float min, float max, Resistances res )
 {
     itemDamages[ (int)res ] = new ItemDamage( min, max );
 }