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

Method fuel

src/main/java/gregapi/util/ST.java:925–925  ·  view source on GitHub ↗

@param aValue the Value of this Stack, when burning inside a Furnace (200 = 1 Burn Process = 5000 HU, max = 32767 (that is 819175 HU)), limited to Short because the vanilla Furnace otherwise can't handle it properly, stupid Mojang...

(ItemStack aStack, short aValue)

Source from the content-addressed store, hash-verified

923
924 /** @param aValue the Value of this Stack, when burning inside a Furnace (200 = 1 Burn Process = 5000 HU, max = 32767 (that is 819175 HU)), limited to Short because the vanilla Furnace otherwise can't handle it properly, stupid Mojang... */
925 public static ItemStack fuel(ItemStack aStack, short aValue) {aStack.setTagCompound(UT.NBT.makeShort(aStack.getTagCompound(), NBT_FUEL_VALUE, aValue)); return aStack;}
926 /** @return the Value of this Stack, when burning inside a Furnace (200 = 1 Burn Process = 5000 HU, max = 32767 (that is 819175 HU)), limited to Short because the vanilla Furnace otherwise can't handle it properly, stupid Mojang... */
927 public static long fuel(ItemStack aStack) {
928 if (invalid(aStack)) return 0;

Callers 3

findRecipeMethod · 0.95
findRecipeMethod · 0.95
fuelMethod · 0.95

Calls 6

invalidMethod · 0.95
item_Method · 0.95
block_Method · 0.95
makeShortMethod · 0.80
getMaterialMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected