2012-07-12 07:54:11 +02:00
|
|
|
package cpw.mods.ironchest;
|
|
|
|
|
2012-12-13 14:02:41 +01:00
|
|
|
import net.minecraft.entity.ai.EntityAIOcelotSit;
|
|
|
|
import net.minecraft.entity.passive.EntityOcelot;
|
|
|
|
import net.minecraft.world.World;
|
2012-07-12 07:54:11 +02:00
|
|
|
|
2012-08-13 07:24:25 +02:00
|
|
|
public class IronChestAIOcelotSit extends EntityAIOcelotSit {
|
2012-12-18 17:22:21 +01:00
|
|
|
public IronChestAIOcelotSit(EntityOcelot par1EntityOcelot, float par2)
|
|
|
|
{
|
|
|
|
super(par1EntityOcelot, par2);
|
|
|
|
}
|
2012-08-13 07:24:25 +02:00
|
|
|
|
2012-12-18 17:22:21 +01:00
|
|
|
@Override
|
|
|
|
protected boolean isSittableBlock(World world, int x, int y, int z)
|
|
|
|
{
|
|
|
|
if (world.getBlockId(x, y, z) == IronChest.ironChestBlock.blockID)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return super.isSittableBlock(world, x, y, z);
|
|
|
|
}
|
2012-07-12 07:54:11 +02:00
|
|
|
}
|