Package net.minecraft.core.dispenser
Class DefaultDispenseItemBehavior
java.lang.Object
net.minecraft.core.dispenser.DefaultDispenseItemBehavior
- All Implemented Interfaces:
DispenseItemBehavior
- Direct Known Subclasses:
BoatDispenseItemBehavior
,DispenseFluidContainer
,OptionalDispenseItemBehavior
,ProjectileDispenseBehavior
-
Field Summary
Fields inherited from interface net.minecraft.core.dispenser.DispenseItemBehavior
LOGGER, NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ItemStack
dispense
(BlockSource p_302432_, ItemStack p_123392_) protected ItemStack
execute
(BlockSource p_302420_, ItemStack p_123386_) protected void
playAnimation
(BlockSource p_302462_, Direction p_123389_) protected void
playSound
(BlockSource p_302471_) 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
-