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