public class BehaviorDefaultDispenseItem extends java.lang.Object implements IBehaviorDispenseItem
DEFAULT_BEHAVIOR
Constructor and Description |
---|
BehaviorDefaultDispenseItem() |
Modifier and Type | Method and Description |
---|---|
ItemStack |
dispense(IBlockSource source,
ItemStack stack)
Dispenses the specified ItemStack from a dispenser.
|
protected ItemStack |
dispenseStack(IBlockSource source,
ItemStack stack)
Dispense the specified stack, play the dispense sound and spawn particles.
|
static void |
doDispense(World worldIn,
ItemStack stack,
int speed,
EnumFacing facing,
IPosition position) |
protected void |
playDispenseSound(IBlockSource source)
Play the dispense sound from the specified block.
|
protected void |
spawnDispenseParticles(IBlockSource source,
EnumFacing facingIn)
Order clients to display dispense particles from the specified block and facing.
|
public final ItemStack dispense(IBlockSource source, ItemStack stack)
dispense
in interface IBehaviorDispenseItem
protected ItemStack dispenseStack(IBlockSource source, ItemStack stack)
public static void doDispense(World worldIn, ItemStack stack, int speed, EnumFacing facing, IPosition position)
protected void playDispenseSound(IBlockSource source)
protected void spawnDispenseParticles(IBlockSource source, EnumFacing facingIn)