public abstract class BehaviorProjectileDispense extends BehaviorDefaultDispenseItem
DEFAULT_BEHAVIOR
Constructor and Description |
---|
BehaviorProjectileDispense() |
Modifier and Type | Method and Description |
---|---|
ItemStack |
dispenseStack(IBlockSource source,
ItemStack stack)
Dispense the specified stack, play the dispense sound and spawn particles.
|
protected abstract IProjectile |
getProjectileEntity(World worldIn,
IPosition position,
ItemStack stackIn)
Return the projectile entity spawned by this dispense behavior.
|
protected float |
getProjectileInaccuracy() |
protected float |
getProjectileVelocity() |
protected void |
playDispenseSound(IBlockSource source)
Play the dispense sound from the specified block.
|
dispense, doDispense, spawnDispenseParticles
public ItemStack dispenseStack(IBlockSource source, ItemStack stack)
dispenseStack
in class BehaviorDefaultDispenseItem
protected void playDispenseSound(IBlockSource source)
playDispenseSound
in class BehaviorDefaultDispenseItem
protected abstract IProjectile getProjectileEntity(World worldIn, IPosition position, ItemStack stackIn)
protected float getProjectileInaccuracy()
protected float getProjectileVelocity()