Class BlockDispenseArmorEvent

All Implemented Interfaces:
Cancellable

public class BlockDispenseArmorEvent extends BlockDispenseEvent
Called when an equippable item is dispensed from a block and equipped on a nearby entity.

If this event is cancelled, the equipment will not be equipped on the target entity.

  • Constructor Details

    • BlockDispenseArmorEvent

      @Internal public BlockDispenseArmorEvent(@NotNull @NotNull Block block, @NotNull @NotNull ItemStack dispensed, @NotNull @NotNull LivingEntity target)
  • Method Details

    • getTargetEntity

      @NotNull public @NotNull LivingEntity getTargetEntity()
      Get the living entity on which the armor was dispensed.
      Returns:
      the target entity