MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / getArrowStack

Method getArrowStack

common/buildcraft/lib/misc/EntityUtil.java:70–77  ·  view source on GitHub ↗
(EntityArrow arrow)

Source from the content-addressed store, hash-verified

68 }
69
70 public static ItemStack getArrowStack(EntityArrow arrow) {
71 // FIXME: Replace this with an invocation of arrow.getArrowStack
72 // (but its protected so we can't)
73 if (arrow instanceof EntitySpectralArrow) {
74 return new ItemStack(Items.SPECTRAL_ARROW);
75 }
76 return new ItemStack(Items.ARROW);
77 }
78}

Callers 1

extractMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected