Class ItemEntityInteractedKubeEvent

java.lang.Object
dev.latvian.mods.kubejs.item.ItemEntityInteractedKubeEvent
All Implemented Interfaces:
KubeEntityEvent, KubeLivingEntityEvent, KubeEvent, KubeLevelEvent, KubePlayerEvent

@Info("Invoked when a player right clicks on an entity.\n") public class ItemEntityInteractedKubeEvent extends Object implements KubePlayerEvent
  • Constructor Details

    • ItemEntityInteractedKubeEvent

      public ItemEntityInteractedKubeEvent(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity entity, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack item)
  • Method Details

    • getEntity

      @Info("The player that interacted with the entity.") public net.minecraft.world.entity.player.Player getEntity()
      Specified by:
      getEntity in interface KubeEntityEvent
      Specified by:
      getEntity in interface KubeLivingEntityEvent
      Specified by:
      getEntity in interface KubePlayerEvent
    • getHand

      @Info("The hand that was used to interact with the entity.") public net.minecraft.world.InteractionHand getHand()
    • getItem

      @Info("The item that was used to interact with the entity.") public net.minecraft.world.item.ItemStack getItem()
    • getTarget

      @Info("The entity that was interacted with.") public net.minecraft.world.entity.Entity getTarget()