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

47 lines
954 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
{
2011-06-30 04:41:29 +00:00
using Substrate.Nbt;
2011-04-30 05:59:58 +00:00
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")
{
}
2011-08-14 19:34:49 +00:00
public EntitySquid (TypedEntity e)
2011-04-30 05:59:58 +00:00
: base(e)
{
}
#region INBTObject<Entity> Members
public override bool ValidateTree (TagNode tree)
2011-04-30 05:59:58 +00:00
{
2011-06-30 04:57:18 +00:00
return new NbtVerifier(tree, SquidSchema).Verify();
2011-04-30 05:59:58 +00:00
}
#endregion
#region ICopyable<Entity> Members
2011-08-14 19:34:49 +00:00
public override TypedEntity Copy ()
2011-04-30 05:59:58 +00:00
{
return new EntitySquid(this);
}
#endregion
}
}