Entity Extended Properties Changes

Adds IExtendedEntityProperties interface, which specifies three methods
that are needed:  Init, Save, and Load.

Adds the EntityConstructing event, which is called during the
constructor of Entity.  It is needed there so that the reference is in
place during the ReadNBT call.

Adds hooks into Entity that allow registration of
IExtendedEntityProperties classes, as well as saving and loading to NBT.
This commit is contained in:
Mithion committed 2013-03-22 15:04:00 -04:00
1 parent c38467c577
commit 2a76f7740e
3 files changed
+140 -11

No files matched your search

@@ -1,6 +1,7 @@
package net.minecraftforge.event.entity;
import net.minecraft.entity.Entity;
import net.minecraft.world.World;
import net.minecraftforge.event.Event;
public class EntityEvent extends Event
@@ -11,6 +12,13 @@ public class EntityEvent extends Event
{
this.entity = entity;
}
public static class EntityConstructing extends EntityEvent
{
public EntityConstructing(Entity entity){
super(entity);
}
}
public static class CanUpdate extends EntityEvent
{