Interface IEventHelper


public interface IEventHelper
  • Field Details

    • BURN_TIMES

      static final Map<net.minecraft.world.item.crafting.RecipeType<?>,List<com.mojang.datafixers.util.Pair<IIngredient,Integer>>> BURN_TIMES
    • BLOCK_INFO_PLAYERS

      static final Set<net.minecraft.world.entity.player.Player> BLOCK_INFO_PLAYERS
    • ENTITY_INFO_PLAYERS

      static final Set<net.minecraft.world.entity.player.Player> ENTITY_INFO_PLAYERS
    • ATTRIBUTE_MODIFIERS

      static final Map<IIngredient,List<Consumer<ItemAttributeModifierBase>>> ATTRIBUTE_MODIFIERS
  • Method Details

    • setBurnTime

      default void setBurnTime(IIngredient ingredient, int burnTime, net.minecraft.world.item.crafting.RecipeType<?> type)
    • getBurnTime

      int getBurnTime(IItemStack stack)
    • getBurnTimes

      default Map<net.minecraft.world.item.crafting.RecipeType<?>,List<com.mojang.datafixers.util.Pair<IIngredient,Integer>>> getBurnTimes()
    • getAttributeModifiers

      default Map<IIngredient,List<Consumer<ItemAttributeModifierBase>>> getAttributeModifiers()
    • onBlockInteract

      default boolean onBlockInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult hitResult)
    • onEntityInteract

      default boolean onEntityInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.entity.Entity target)