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 TypeMethodDescriptionprivate void
addToInventoryOrDispense
(BlockSource p_343398_, ItemStack p_344816_) protected ItemStack
consumeWithRemainder
(BlockSource p_344354_, ItemStack p_343730_, ItemStack p_344011_) final ItemStack
dispense
(BlockSource p_123391_, ItemStack p_123392_) protected ItemStack
execute
(BlockSource p_301824_, ItemStack p_123386_) protected void
playAnimation
(BlockSource p_123388_, Direction p_123389_) private static void
playDefaultAnimation
(BlockSource p_342920_, Direction p_343526_) private static void
playDefaultSound
(BlockSource p_343539_) protected void
playSound
(BlockSource p_123384_) static void
spawnItem
(Level p_123379_, ItemStack p_123380_, int p_123381_, Direction p_123382_, Position p_123383_)
-
Field Details
-
DEFAULT_ACCURACY
private static final int DEFAULT_ACCURACY- See Also:
-
-
Constructor Details
-
DefaultDispenseItemBehavior
public DefaultDispenseItemBehavior()
-
-
Method Details
-
dispense
- Specified by:
dispense
in interfaceDispenseItemBehavior
-
execute
-
spawnItem
-
playSound
-
playAnimation
-
playDefaultSound
-
playDefaultAnimation
-
consumeWithRemainder
protected ItemStack consumeWithRemainder(BlockSource p_344354_, ItemStack p_343730_, ItemStack p_344011_) -
addToInventoryOrDispense
-