NBTExplorer/SubstrateCS/Source/Entities/EntitySquid.cs
2011-11-05 13:36:04 -04:00

51 lines
1 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Substrate.Entities
{
using Substrate.Nbt;
public class EntitySquid : EntityMob
{
public static readonly SchemaNodeCompound SquidSchema = MobSchema.MergeInto(new SchemaNodeCompound("")
{
new SchemaNodeString("id", "Squid"),
});
public EntitySquid ()
: base("Squid")
{
}
protected EntitySquid (string id)
: base(id)
{
}
public EntitySquid (TypedEntity e)
: base(e)
{
}
#region INBTObject<Entity> Members
public override bool ValidateTree (TagNode tree)
{
return new NbtVerifier(tree, SquidSchema).Verify();
}
#endregion
#region ICopyable<Entity> Members
public override TypedEntity Copy ()
{
return new EntitySquid(this);
}
#endregion
}
}