Package net.minecraft.core.dispenser
Class DefaultDispenseItemBehavior
java.lang.Object
net.minecraft.core.dispenser.DefaultDispenseItemBehavior
- All Implemented Interfaces:
DispenseItemBehavior
- Direct Known Subclasses:
AbstractProjectileDispenseBehavior
,BoatDispenseItemBehavior
,DispenseFluidContainer
,OptionalDispenseItemBehavior
-
Field Summary
Fields inherited from interface net.minecraft.core.dispenser.DispenseItemBehavior
LOGGER, NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondispense(BlockSource p_123391_, ItemStack p_123392_)
protected ItemStack
execute(BlockSource p_123385_, ItemStack p_123386_)
protected void
playAnimation(BlockSource p_123388_, Direction p_123389_)
protected void
playSound(BlockSource p_123384_)
static void
spawnItem(Level p_123379_, ItemStack p_123380_, int p_123381_, Direction p_123382_, Position p_123383_)
-
Constructor Details
-
DefaultDispenseItemBehavior
public DefaultDispenseItemBehavior()
-
-
Method Details
-
dispense
- Specified by:
dispense
in interfaceDispenseItemBehavior
-
execute
-
spawnItem
-
playSound
-
playAnimation
-