25 lines
651 B
Java
Executable File
25 lines
651 B
Java
Executable File
package cpw.mods.ironchest;
|
|
|
|
import net.minecraft.entity.ai.EntityAIOcelotSit;
|
|
import net.minecraft.entity.passive.EntityOcelot;
|
|
import net.minecraft.util.BlockPos;
|
|
import net.minecraft.world.World;
|
|
|
|
public class IronChestAIOcelotSit extends EntityAIOcelotSit
|
|
{
|
|
public IronChestAIOcelotSit(EntityOcelot par1EntityOcelot, float par2)
|
|
{
|
|
super(par1EntityOcelot, par2);
|
|
}
|
|
|
|
@Override
|
|
protected boolean func_179488_a(World world, BlockPos pos)
|
|
{
|
|
if (world.getBlockState(pos).getBlock() == IronChest.ironChestBlock)
|
|
{
|
|
return true;
|
|
}
|
|
return super.func_179488_a(world, pos);
|
|
}
|
|
}
|