Added protected constructor to entity types

This commit is contained in:
Justin Aquadro 2011-11-05 13:36:04 -04:00
parent d12f8e4dae
commit 401b2c7b68
39 changed files with 194 additions and 4 deletions

View file

@ -35,6 +35,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityArrow (string id)
: base(id)
{
}
public EntityArrow (TypedEntity e) public EntityArrow (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityBlaze (string id)
: base(id)
{
}
public EntityBlaze (TypedEntity e) public EntityBlaze (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityBoat (string id)
: base(id)
{
}
public EntityBoat (TypedEntity e) public EntityBoat (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -6,9 +6,9 @@ namespace Substrate.Entities
{ {
using Substrate.Nbt; using Substrate.Nbt;
public class EntityCaveSpider : EntityMob public class EntityCaveSpider : EntitySpider
{ {
public static readonly SchemaNodeCompound CaveSpiderSchema = MobSchema.MergeInto(new SchemaNodeCompound("") public static readonly SchemaNodeCompound CaveSpiderSchema = SpiderSchema.MergeInto(new SchemaNodeCompound("")
{ {
new SchemaNodeString("id", "CaveSpider"), new SchemaNodeString("id", "CaveSpider"),
}); });
@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityCaveSpider (string id)
: base(id)
{
}
public EntityCaveSpider (TypedEntity e) public EntityCaveSpider (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityChicken (string id)
: base(id)
{
}
public EntityChicken (TypedEntity e) public EntityChicken (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -27,6 +27,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityCreeper (string id)
: base(id)
{
}
public EntityCreeper (TypedEntity e) public EntityCreeper (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityEgg (string id)
: base(id)
{
}
public EntityEgg (TypedEntity e) public EntityEgg (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityEnderDragon (string id)
: base(id)
{
}
public EntityEnderDragon (TypedEntity e) public EntityEnderDragon (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityEnderEye (string id)
: base(id)
{
}
public EntityEnderEye (TypedEntity e) public EntityEnderEye (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityEnderPearl (string id)
: base(id)
{
}
public EntityEnderPearl (TypedEntity e) public EntityEnderPearl (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -39,6 +39,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityEnderman (string id)
: base(id)
{
}
public EntityEnderman (TypedEntity e) public EntityEnderman (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -23,7 +23,12 @@ namespace Substrate.Entities
} }
public EntityFallingSand () public EntityFallingSand ()
: base("PrimedTnt") : base("FallingSand")
{
}
protected EntityFallingSand (string id)
: base(id)
{ {
} }

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityGhast (string id)
: base(id)
{
}
public EntityGhast (TypedEntity e) public EntityGhast (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityGiant (string id)
: base(id)
{
}
public EntityGiant (TypedEntity e) public EntityGiant (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -44,6 +44,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityItem (string id)
: base(id)
{
}
public EntityItem (TypedEntity e) public EntityItem (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityMagmaCube (string id)
: base(id)
{
}
public EntityMagmaCube (TypedEntity e) public EntityMagmaCube (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -33,6 +33,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityMinecart (string id)
: base(id)
{
}
public EntityMinecart (TypedEntity e) public EntityMinecart (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -22,6 +22,11 @@ namespace Substrate.Entities
_items = new ItemCollection(_CAPACITY); _items = new ItemCollection(_CAPACITY);
} }
protected EntityMinecartChest (string id)
: base(id)
{
}
public EntityMinecartChest (TypedEntity e) public EntityMinecartChest (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -42,6 +42,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityMinecartFurnace (string id)
: base(id)
{
}
public EntityMinecartFurnace (TypedEntity e) public EntityMinecartFurnace (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -93,7 +93,7 @@ namespace Substrate.Entities
{ {
} }
public EntityMob (string id) protected EntityMob (string id)
: base(id) : base(id)
{ {
} }

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityMonster (string id)
: base(id)
{
}
public EntityMonster (TypedEntity e) public EntityMonster (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityMooshroom (string id)
: base(id)
{
}
public EntityMooshroom (TypedEntity e) public EntityMooshroom (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -67,6 +67,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityPainting (string id)
: base(id)
{
}
public EntityPainting (TypedEntity e) public EntityPainting (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -27,6 +27,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityPig (string id)
: base(id)
{
}
public EntityPig (TypedEntity e) public EntityPig (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -27,6 +27,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityPigZombie (string id)
: base(id)
{
}
public EntityPigZombie (TypedEntity e) public EntityPigZombie (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -27,6 +27,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityPrimedTnt (string id)
: base(id)
{
}
public EntityPrimedTnt (TypedEntity e) public EntityPrimedTnt (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -35,6 +35,11 @@ namespace Substrate.Entities
{ {
} }
protected EntitySheep (string id)
: base(id)
{
}
public EntitySheep (TypedEntity e) public EntitySheep (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntitySilverfish (string id)
: base(id)
{
}
public EntitySilverfish (TypedEntity e) public EntitySilverfish (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntitySkeleton (string id)
: base(id)
{
}
public EntitySkeleton (TypedEntity e) public EntitySkeleton (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntitySmallFireball (string id)
: base(id)
{
}
public EntitySmallFireball (TypedEntity e) public EntitySmallFireball (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntitySnowball (string id)
: base(id)
{
}
public EntitySnowball (TypedEntity e) public EntitySnowball (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntitySnowman (string id)
: base(id)
{
}
public EntitySnowman (TypedEntity e) public EntitySnowman (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntitySpider (string id)
: base(id)
{
}
public EntitySpider (TypedEntity e) public EntitySpider (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntitySquid (string id)
: base(id)
{
}
public EntitySquid (TypedEntity e) public EntitySquid (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -66,6 +66,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityThrowable (string id)
: base(id)
{
}
public EntityThrowable (TypedEntity e) public EntityThrowable (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -36,6 +36,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityVillager (string id)
: base(id)
{
}
public EntityVillager (TypedEntity e) public EntityVillager (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -43,6 +43,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityWolf (string id)
: base(id)
{
}
public EntityWolf (TypedEntity e) public EntityWolf (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -42,6 +42,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityXPOrb (string id)
: base(id)
{
}
public EntityXPOrb (TypedEntity e) public EntityXPOrb (TypedEntity e)
: base(e) : base(e)
{ {

View file

@ -18,6 +18,11 @@ namespace Substrate.Entities
{ {
} }
protected EntityZombie (string id)
: base(id)
{
}
public EntityZombie (TypedEntity e) public EntityZombie (TypedEntity e)
: base(e) : base(e)
{ {