NBTExplorer/Substrate/SubstrateCS/Source/Entities/EntitySquid.cs

47 lines
944 B
C#
Raw Normal View History

2011-04-30 05:59:58 +00:00
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("")
2011-04-30 05:59:58 +00:00
{
new SchemaNodeString("id", "Squid"),
2011-04-30 05:59:58 +00:00
});
public EntitySquid ()
: base("Squid")
{
}
public EntitySquid (Entity e)
: base(e)
{
}
#region INBTObject<Entity> Members
public override bool ValidateTree (TagNode tree)
2011-04-30 05:59:58 +00:00
{
return new NBTVerifier(tree, SquidSchema).Verify();
}
#endregion
#region ICopyable<Entity> Members
public override Entity Copy ()
{
return new EntitySquid(this);
}
#endregion
}
}