@SubscribeEvent</BUG>
public void onEntityConstruction(EntityEvent.EntityConstructing event) {
if (event.entity instanceof EntityFluidCow) {
final EntityFluidCow entityFluidCow = (EntityFluidCow) event.entity;
<BUG>if (entityFluidCow.getEntityFluid() == null) {
final Random random = new Random();
final Fluid entityFluid = getEntityFluid(getPossibleEntityFluids(random), random);</BUG>
entityFluidCow.setEntityFluid(entityFluid);
}
}

import java.util.Random;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
public class EntitySpawnHandler {
private static final int SPAWN_LOWER_BOUNDARY = 3;
private static final int SPAWN_UPPER_BOUNDARY = 5;
private static final Fluid[] containableFluids = EntityHelper.getContainableFluidsArray();
private static final Random random = new Random();
@SubscribeEvent
public void onEntityConstruction(EntityEvent.EntityConstructing event) {
if (event.entity instanceof EntityFluidCow) {
final EntityFluidCow entityFluidCow = (EntityFluidCow) event.entity;
if (entityFluidCow.getEntityFluid() == null) {
final Fluid entityFluid = getEntityFluid();
entityFluidCow.setEntityFluid(entityFluid);
