Skip to content

Instantly share code, notes, and snippets.

@Unh0lyTigg
Created May 15, 2017 02:26
Show Gist options
  • Save Unh0lyTigg/feb2af2811900f51c27b6d47f77b05fa to your computer and use it in GitHub Desktop.
Save Unh0lyTigg/feb2af2811900f51c27b6d47f77b05fa to your computer and use it in GitHub Desktop.
finding with input: {minecraft:coal,40,coal} , {minecraft:sand,36,red_sand}
checking recipe input: {minecraft:coal,8,coal}
---- iiewtw: A (recipe stack) vs B (inventory stack)
---- iiewtw: delegatename: minecraft:coal vs minecraft:coal
---- iiewtw: metadata: 0 vs 0
---- iiewtw: count: 8 vs 40
---- iiewtw: tagdata: null vs null
-------- result true
-------- rc after = -32
---- iiewtw: A (recipe stack) vs B (inventory stack)
---- iiewtw: delegatename: minecraft:coal vs minecraft:sand
---- iiewtw: metadata: 0 vs 1
---- iiewtw: count: 8 vs 36
---- iiewtw: tagdata: null vs null
checking recipe input: {minecraft:sand,8,sand}
---- iiewtw: A (recipe stack) vs B (inventory stack)
---- iiewtw: delegatename: minecraft:sand vs minecraft:coal
---- iiewtw: metadata: 0 vs 0
---- iiewtw: count: 8 vs 40
---- iiewtw: tagdata: null vs null
---- iiewtw: A (recipe stack) vs B (inventory stack)
---- iiewtw: delegatename: minecraft:sand vs minecraft:sand
---- iiewtw: metadata: 0 vs 1
---- iiewtw: count: 8 vs 36
---- iiewtw: tagdata: null vs null
skipping recipe for: {nydilik_rp:resource,1,silicon_boule}, rc = 8
recipes input: {minecraft:coal,8,coal} , {minecraft:sand,8,sand}
checking recipe input: {minecraft:coal,8,coal}
---- iiewtw: A (recipe stack) vs B (inventory stack)
---- iiewtw: delegatename: minecraft:coal vs minecraft:coal
---- iiewtw: metadata: 0 vs 0
---- iiewtw: count: 8 vs 40
---- iiewtw: tagdata: null vs null
-------- result true
-------- rc after = -32
---- iiewtw: A (recipe stack) vs B (inventory stack)
---- iiewtw: delegatename: minecraft:coal vs minecraft:sand
---- iiewtw: metadata: 0 vs 1
---- iiewtw: count: 8 vs 36
---- iiewtw: tagdata: null vs null
checking recipe input: {minecraft:sand,8,red_sand}
---- iiewtw: A (recipe stack) vs B (inventory stack)
---- iiewtw: delegatename: minecraft:sand vs minecraft:coal
---- iiewtw: metadata: 1 vs 0
---- iiewtw: count: 8 vs 40
---- iiewtw: tagdata: null vs null
---- iiewtw: A (recipe stack) vs B (inventory stack)
---- iiewtw: delegatename: minecraft:sand vs minecraft:sand
---- iiewtw: metadata: 1 vs 1
---- iiewtw: count: 8 vs 36
---- iiewtw: tagdata: null vs null
skipping recipe for: {nydilik_rp:resource,1,silicon_boule}, rc = 8
recipes input: {minecraft:coal,8,coal} , {minecraft:sand,8,red_sand}
@Unh0lyTigg
Copy link
Author

iiewtw = abbreviation of method doing item stack equality check with wildcard support on input A.
rc = integer keeping track of required amount for a given item in a particular recipes input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment