@Override
public byte[] getReplacementBytes() throws IOException {
byte[] offset = getCaptureGroup(2);
if (offset[0] != FCONST_0) {
offset = reference(GETSTATIC, new FieldRef(MCPatcherUtils.TILE_SIZE_CLASS, "float_sizeMinus0_01", "F"));
}
return buildCode(
push(16),
getCaptureGroup(1),
reference(GETSTATIC, new FieldRef(MCPatcherUtils.TILE_SIZE_CLASS, "int_size", "I")),
IMUL,
I2F,
offset,
FADD,
reference(GETSTATIC, new FieldRef(MCPatcherUtils.TILE_SIZE_CLASS, "float_size16", "F"))
);
}