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_347634_, ItemStack p_347604_) protected ItemStack
consumeWithRemainder
(BlockSource p_347658_, ItemStack p_347682_, ItemStack p_347670_) final 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_) private static void
playDefaultAnimation
(BlockSource p_347531_, Direction p_347570_) private static void
playDefaultSound
(BlockSource p_347476_) protected void
playSound
(BlockSource p_302471_) 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_347658_, ItemStack p_347682_, ItemStack p_347670_) -
addToInventoryOrDispense
-