@Override public @Nonnull BoundingBox getBounds() { if (isSpawnMode) { if (bounds != null) { return bounds; } bounds = ISpawnerCallback.super.getBounds(); if (capturedMob != null) { Entity ent = capturedMob.getEntity(world, false); if (ent != null) { int height = Math.max((int) Math.ceil(ent.height) - 1, 0); return bounds = bounds.setMaxY(bounds.maxY + height); } } } return new BoundingBox(getPos()); }
BoundingBox bb = new BoundingBox(pos).setMaxY(pos.getY() + (level / 15d));