Class MobDropHeadEvent

    • Constructor Detail

      • MobDropHeadEvent

        public MobDropHeadEvent​(LivingEntity mob,
                                ItemStack drop)
        Constructs the event
        Parameters:
        mob - the mob that was beheaded
        drop - the head item to be dropped.
      • MobDropHeadEvent

        public MobDropHeadEvent​(@Nullable
                                Event cause,
                                LivingEntity mob,
                                LivingEntity killer,
                                ItemStack drop)
        Constructs the event
        Parameters:
        cause - the event which caused the beheading event, or null.
        mob - the mob that was beheaded
        killer - the killer responsible for the death of the mob. As determined by the plugin (may differ from entity.getKiller())
        drop - the head item to be dropped.
        Since:
        5.2.14-SNAPSHOT