2011-04-06 21:18:48 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2011-04-06 21:20:35 +00:00
|
|
|
|
namespace Substrate.Entities
|
2011-04-06 21:18:48 +00:00
|
|
|
|
{
|
2011-06-30 04:41:29 +00:00
|
|
|
|
using Substrate.Nbt;
|
2011-04-06 21:18:48 +00:00
|
|
|
|
|
|
|
|
|
public class EntitySnowball : EntityThrowable
|
|
|
|
|
{
|
2011-06-20 03:51:40 +00:00
|
|
|
|
public static readonly SchemaNodeCompound SnowballSchema = ThrowableSchema.MergeInto(new SchemaNodeCompound("")
|
2011-04-06 21:18:48 +00:00
|
|
|
|
{
|
2011-11-05 18:17:57 +00:00
|
|
|
|
new SchemaNodeString("id", TypeId),
|
2011-04-06 21:18:48 +00:00
|
|
|
|
});
|
|
|
|
|
|
2011-11-05 18:17:57 +00:00
|
|
|
|
public static string TypeId
|
2011-04-06 21:18:48 +00:00
|
|
|
|
{
|
2011-11-05 18:17:57 +00:00
|
|
|
|
get { return "Snowball"; }
|
2011-04-06 21:18:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
2011-11-05 17:36:04 +00:00
|
|
|
|
protected EntitySnowball (string id)
|
|
|
|
|
: base(id)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2011-11-05 18:17:57 +00:00
|
|
|
|
public EntitySnowball ()
|
|
|
|
|
: this(TypeId)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2011-08-14 19:34:49 +00:00
|
|
|
|
public EntitySnowball (TypedEntity e)
|
2011-04-06 21:18:48 +00:00
|
|
|
|
: base(e)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region INBTObject<Entity> Members
|
|
|
|
|
|
2011-06-20 03:51:40 +00:00
|
|
|
|
public override bool ValidateTree (TagNode tree)
|
2011-04-06 21:18:48 +00:00
|
|
|
|
{
|
2011-06-30 04:57:18 +00:00
|
|
|
|
return new NbtVerifier(tree, SnowballSchema).Verify();
|
2011-04-06 21:18:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region ICopyable<Entity> Members
|
|
|
|
|
|
2011-08-14 19:34:49 +00:00
|
|
|
|
public override TypedEntity Copy ()
|
2011-04-06 21:18:48 +00:00
|
|
|
|
{
|
|
|
|
|
return new EntitySnowball(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|