public class BehaviorDefaultDispenseItem extends java.lang.Object implements IBehaviorDispenseItem
itemDispenseBehaviorProvider| Constructor and Description |
|---|
BehaviorDefaultDispenseItem() |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
dispense(IBlockSource p_82482_1_,
ItemStack p_82482_2_)
Dispenses the specified ItemStack from a dispenser.
|
protected ItemStack |
dispenseStack(IBlockSource p_82487_1_,
ItemStack p_82487_2_)
Dispense the specified stack, play the dispense sound and spawn particles.
|
static void |
doDispense(World p_82486_0_,
ItemStack p_82486_1_,
int p_82486_2_,
EnumFacing p_82486_3_,
IPosition p_82486_4_) |
protected void |
playDispenseSound(IBlockSource p_82485_1_)
Play the dispense sound from the specified block.
|
protected void |
spawnDispenseParticles(IBlockSource p_82489_1_,
EnumFacing p_82489_2_)
Order clients to display dispense particles from the specified block and facing.
|
public final ItemStack dispense(IBlockSource p_82482_1_, ItemStack p_82482_2_)
dispense in interface IBehaviorDispenseItemprotected ItemStack dispenseStack(IBlockSource p_82487_1_, ItemStack p_82487_2_)
public static void doDispense(World p_82486_0_, ItemStack p_82486_1_, int p_82486_2_, EnumFacing p_82486_3_, IPosition p_82486_4_)
protected void playDispenseSound(IBlockSource p_82485_1_)
protected void spawnDispenseParticles(IBlockSource p_82489_1_, EnumFacing p_82489_2_)