Package net.minecraft.dispenser
Class DefaultDispenseItemBehavior
- java.lang.Object
-
- net.minecraft.dispenser.DefaultDispenseItemBehavior
-
- All Implemented Interfaces:
IDispenseItemBehavior
- Direct Known Subclasses:
DispenseBoatBehavior
,DispenseFluidContainer
,OptionalDispenseBehavior
,ProjectileDispenseBehavior
public class DefaultDispenseItemBehavior extends java.lang.Object implements IDispenseItemBehavior
-
-
Field Summary
-
Fields inherited from interface net.minecraft.dispenser.IDispenseItemBehavior
LOGGER, NOOP
-
-
Constructor Summary
Constructors Constructor Description DefaultDispenseItemBehavior()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemStack
dispense(IBlockSource p_dispense_1_, ItemStack p_dispense_2_)
protected ItemStack
execute(IBlockSource p_82487_1_, ItemStack p_82487_2_)
protected void
playAnimation(IBlockSource p_82489_1_, Direction p_82489_2_)
protected void
playSound(IBlockSource p_82485_1_)
static void
spawnItem(World p_82486_0_, ItemStack p_82486_1_, int p_82486_2_, Direction p_82486_3_, IPosition p_82486_4_)
-
-
-
Method Detail
-
dispense
public final ItemStack dispense(IBlockSource p_dispense_1_, ItemStack p_dispense_2_)
- Specified by:
dispense
in interfaceIDispenseItemBehavior
-
execute
protected ItemStack execute(IBlockSource p_82487_1_, ItemStack p_82487_2_)
-
spawnItem
public static void spawnItem(World p_82486_0_, ItemStack p_82486_1_, int p_82486_2_, Direction p_82486_3_, IPosition p_82486_4_)
-
playSound
protected void playSound(IBlockSource p_82485_1_)
-
playAnimation
protected void playAnimation(IBlockSource p_82489_1_, Direction p_82489_2_)
-
-