Mixin
Mixin copied to clipboard
Using enum switches in mixins breaks mixin hotswapping
For example, adding the following mixin:
@Mixin(AxisAlignedBB.class)
public class AABBMixin {
@Overwrite
public double getMin(EnumFacing.Axis axis) {
switch (axis) {
case X: return xMin;
case Y: return yMin;
case Z: return zMin;
default: throw new AssertionError("Minecraft is now 4D!");
}
}
}
breaks hotswapping.