Class FoodEatenKubeEvent

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

@Info("Invoked when an entity eats food.\n") public class FoodEatenKubeEvent extends Object implements KubeEntityEvent
  • Constructor Details

    • FoodEatenKubeEvent

      public FoodEatenKubeEvent(net.minecraft.world.entity.LivingEntity e, net.minecraft.world.item.ItemStack is)
  • Method Details

    • getEntity

      @Info("The entity that ate the food.") public net.minecraft.world.entity.Entity getEntity()
      Specified by:
      getEntity in interface KubeEntityEvent
    • getItem

      @Info("The food that was eaten.") public net.minecraft.world.item.ItemStack getItem()