public class ItemLaunching
extends java.lang.Object
| Constructor and Description |
|---|
ItemLaunching() |
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.entity.Entity |
getEntityToLaunch(net.minecraft.world.World world,
net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.PlayerEntity player,
boolean dispenserLike,
boolean fallingBlocks)
Get the entity to launch for a given item.
|
static void |
launchEntity(net.minecraft.entity.Entity launchedEntity,
net.minecraft.util.math.vector.Vector3d initialPos,
net.minecraft.util.math.vector.Vector3d velocity,
boolean doSpawn) |
public static void launchEntity(net.minecraft.entity.Entity launchedEntity,
net.minecraft.util.math.vector.Vector3d initialPos,
net.minecraft.util.math.vector.Vector3d velocity,
boolean doSpawn)
public static net.minecraft.entity.Entity getEntityToLaunch(net.minecraft.world.World world,
net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.PlayerEntity player,
boolean dispenserLike,
boolean fallingBlocks)
world - the worldstack - the item stack to be fireddispenserLike - true if dispenser-like behaviour should be usedfallingBlocks - true if block items should be spawned as falling block entities rather than item entities