@Override public Object getRotation(int i, int j) { return Rotation.sideOrientation(i, j); }
static Cuboid6 getCoverPlateBox(EnumFacing side, double plateThickness, boolean offsetSide) { double offset = offsetSide ? 2.5 / 16.0 : 0.0; Cuboid6 coverPlateBox = new Cuboid6(offset, 0.0, offset, 1.0 - offset, plateThickness, 1.0 - offset); coverPlateBox.apply(Rotation.sideOrientation(side.getIndex(), 0).at(Vector3.center)); return coverPlateBox; }