MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / drop

Method drop

src/main/java/gregapi/util/ST.java:408–408  ·  view source on GitHub ↗
(World aWorld, double aX, double aY, double aZ, ModData aModID, String aItem, long aSize, long aMeta)

Source from the content-addressed store, hash-verified

406 public static EntityItem place (World aWorld, double aX, double aY, double aZ, ItemStackContainer aStack ) {ItemStack rStack = aStack.toStack() ; if (invalid(rStack)) return null; EntityItem rEntity = entity_(aWorld, aX, aY, aZ, rStack); rEntity.motionX = rEntity.motionY = rEntity.motionZ = 0; return aWorld.spawnEntityInWorld(rEntity) ? rEntity : null;}
407 public static EntityItem place (World aWorld, double aX, double aY, double aZ, ItemStack aStack ) {ItemStack rStack = aStack ; if (invalid(rStack)) return null; EntityItem rEntity = entity_(aWorld, aX, aY, aZ, rStack); rEntity.motionX = rEntity.motionY = rEntity.motionZ = 0; return aWorld.spawnEntityInWorld(rEntity) ? rEntity : null;}
408 public static EntityItem drop (World aWorld, double aX, double aY, double aZ, ModData aModID, String aItem, long aSize, long aMeta) {ItemStack rStack = make(aModID, aItem, aSize, aMeta); if (invalid(rStack)) return null; EntityItem rEntity = entity_(aWorld, aX, aY, aZ, rStack); return aWorld.spawnEntityInWorld(rEntity) ? rEntity : null;}
409 public static EntityItem drop (World aWorld, double aX, double aY, double aZ, Item aItem, long aSize, long aMeta ) {ItemStack rStack = make(aItem, aSize, aMeta) ; if (invalid(rStack)) return null; EntityItem rEntity = entity_(aWorld, aX, aY, aZ, rStack); return aWorld.spawnEntityInWorld(rEntity) ? rEntity : null;}
410 public static EntityItem drop (World aWorld, double aX, double aY, double aZ, Block aBlock, long aSize, long aMeta ) {ItemStack rStack = make(aBlock, aSize, aMeta) ; if (invalid(rStack)) return null; EntityItem rEntity = entity_(aWorld, aX, aY, aZ, rStack); return aWorld.spawnEntityInWorld(rEntity) ? rEntity : null;}
411 public static EntityItem drop (World aWorld, double aX, double aY, double aZ, ItemStackContainer aStack ) {ItemStack rStack = aStack.toStack() ; if (invalid(rStack)) return null; EntityItem rEntity = entity_(aWorld, aX, aY, aZ, rStack); return aWorld.spawnEntityInWorld(rEntity) ? rEntity : null;}

Callers 15

onLivingUpdateMethod · 0.95
onPlayerTickEventMethod · 0.95
onTickWorldMethod · 0.95
func_151367_bMethod · 0.95
onBlockDestroyedMethod · 0.95
onItemUseMethod · 0.95
onToolClick2Method · 0.95
breakBlockMethod · 0.95
breakBlockMethod · 0.95
popOffMethod · 0.95
burnOffMethod · 0.95
onToolClickMethod · 0.95

Calls 4

makeMethod · 0.95
invalidMethod · 0.95
entity_Method · 0.95
toStackMethod · 0.45

Tested by

no test coverage detected