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

Method place

src/main/java/gregapi/util/ST.java:403–403  ·  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

401 public static ItemStack make(ItemStackContainer aStack , String aName, NBTTagCompound aNBT) {return name(nbt(aStack.toStack(), aNBT), aName);}
402
403 public static EntityItem place (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); rEntity.motionX = rEntity.motionY = rEntity.motionZ = 0; return aWorld.spawnEntityInWorld(rEntity) ? rEntity : null;}
404 public static EntityItem place (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); rEntity.motionX = rEntity.motionY = rEntity.motionZ = 0; return aWorld.spawnEntityInWorld(rEntity) ? rEntity : null;}
405 public static EntityItem place (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); rEntity.motionX = rEntity.motionY = rEntity.motionZ = 0; return aWorld.spawnEntityInWorld(rEntity) ? rEntity : null;}
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;}

Callers 9

onToolClick2Method · 0.95
onBlockActivated3Method · 0.95
onToolClickMethod · 0.95
checkCoverValidityMethod · 0.95
onToolClickMethod · 0.95
checkCoverValidityMethod · 0.95
putMethod · 0.95
onToolClick2Method · 0.95
onToolClick2Method · 0.95

Calls 4

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

Tested by

no test coverage detected