Ejemplo n.º 1
0
 NBTTagCompound buildTagCompound() {
   NBTTagCompound data = new NBTTagCompound();
   data.setInt("Weight", _weight);
   data.setString("Type", EntityTypeMap.getName(_entityNbt.getEntityType()));
   data.setCompound("Properties", _entityNbt._data);
   return data;
 }
Ejemplo n.º 2
0
 public EntityType getEntityType() {
   return _entityNbt.getEntityType();
 }
Ejemplo n.º 3
0
 public SpawnerEntityNBT clone() {
   return new SpawnerEntityNBT(_entityNbt.clone(), _weight);
 }
Ejemplo n.º 4
0
 public SpawnerEntityNBT(EntityType entityType, int weight) {
   _weight = weight;
   _entityNbt = EntityNBT.fromEntityType(entityType);
 }