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
FieldsFields inherited from interface net.minecraft.core.dispenser.DispenseItemBehavior
LOGGER, NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddToInventoryOrDispense(BlockSource pBlockSource, ItemStack pRemainder) protected ItemStackconsumeWithRemainder(BlockSource pBlockSource, ItemStack pStack, ItemStack pRemainder) final ItemStackdispense(BlockSource pBlockSource, ItemStack pItem) protected ItemStackexecute(BlockSource pBlockSource, ItemStack pItem) protected voidplayAnimation(BlockSource pBlockSource, Direction pDirection) private static voidplayDefaultAnimation(BlockSource pBlockSource, Direction pDirection) private static voidplayDefaultSound(BlockSource pBlockSource) protected voidplaySound(BlockSource pBlockSource) static void
-
Field Details
-
DEFAULT_ACCURACY
private static final int DEFAULT_ACCURACY- See Also:
-
-
Constructor Details
-
DefaultDispenseItemBehavior
public DefaultDispenseItemBehavior()
-
-
Method Details
-
dispense
- Specified by:
dispensein interfaceDispenseItemBehavior
-
execute
-
spawnItem
-
playSound
-
playAnimation
-
playDefaultSound
-
playDefaultAnimation
-
consumeWithRemainder
protected ItemStack consumeWithRemainder(BlockSource pBlockSource, ItemStack pStack, ItemStack pRemainder) -
addToInventoryOrDispense
-