use of net.minecraft.entity.passive.EntityOcelot in project Railcraft by Railcraft.
the class TileChestRailcraft method isCatOnChest.
private boolean isCatOnChest() {
AxisAlignedBB searchBox = AABBFactory.start().createBoxForTileAt(getPos()).offset(0.0, 1.0, 0.0).build();
List<EntityOcelot> cats = worldObj.getEntitiesWithinAABB(EntityOcelot.class, searchBox);
return cats.stream().anyMatch(EntityTameable::isSitting);
}
Aggregations