blob: 97d8012c0775e0cfa478bb11fc775642cd4c7897 [file] [log] [blame] [raw]
package com.legacy.aether.entities.passive;
import java.util.Random;
import net.minecraft.entity.passive.EntityAnimal;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import com.legacy.aether.blocks.BlocksAether;
public abstract class EntityAetherAnimal extends EntityAnimal
{
Random random = new Random();
public EntityAetherAnimal(World worldIn)
{
super(worldIn);
this.spawnableBlock = BlocksAether.aether_grass;
}
@Override
public float getBlockPathWeight(BlockPos pos)
{
return this.worldObj.getBlockState(pos.down()).getBlock() == this.spawnableBlock ? 10.0F : this.worldObj.getLightBrightness(pos) - 0.5F;
}
@Override
public boolean isBreedingItem(ItemStack stack)
{
return false;
}
}