MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / te_extract

Method te_extract

src/main/java/gregapi/data/RM.java:1164–1177  ·  view source on GitHub ↗
(int energy, ItemStack input, ItemStack output, FluidStack fluid, int chance, boolean reversible)

Source from the content-addressed store, hash-verified

1162 FMLInterModComms.sendMessage("ThermalExpansion", "TransposerFillRecipe", toSend);
1163 }
1164 public static void te_extract(int energy, ItemStack input, ItemStack output, FluidStack fluid, int chance, boolean reversible) {
1165 if (input == null || output == null || fluid == null) return;
1166 NBTTagCompound toSend = UT.NBT.make();
1167 toSend.setInteger("energy", energy);
1168 toSend.setTag("input", UT.NBT.make());
1169 toSend.setTag("output", UT.NBT.make());
1170 toSend.setTag("fluid", UT.NBT.make());
1171 input.writeToNBT(toSend.getCompoundTag("input"));
1172 output.writeToNBT(toSend.getCompoundTag("output"));
1173 UT.NBT.setBoolean(toSend, "reversible", reversible);
1174 toSend.setInteger("chance", chance);
1175 fluid.writeToNBT(toSend.getCompoundTag("fluid"));
1176 FMLInterModComms.sendMessage("ThermalExpansion", "TransposerExtractRecipe", toSend);
1177 }
1178}

Callers

nothing calls this directly

Calls 3

setBooleanMethod · 0.80
makeMethod · 0.45
writeToNBTMethod · 0.45

Tested by

no test coverage detected