Interface IEventHelper
- All Known Implementing Classes:
ForgeEventHelper
public interface IEventHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<IIngredient,List<Consumer<ItemAttributeModifierBase>>> static final Set<net.minecraft.world.entity.player.Player>static final Map<net.minecraft.world.item.crafting.RecipeType<?>,List<com.mojang.datafixers.util.Pair<IIngredient, Integer>>> static final Set<net.minecraft.world.entity.player.Player> -
Method Summary
Modifier and TypeMethodDescriptiondefault voidapplyAttributeModifiers(ItemAttributeModifierBase modifierBase) default Map<IIngredient,List<Consumer<ItemAttributeModifierBase>>> intgetBurnTime(IItemStack stack) default Map<net.minecraft.world.item.crafting.RecipeType<?>,List<com.mojang.datafixers.util.Pair<IIngredient, Integer>>> default booleanonBlockInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult hitResult) default booleanonEntityInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.entity.Entity target) default voidsetBurnTime(IIngredient ingredient, int burnTime, net.minecraft.world.item.crafting.RecipeType<?> type)
-
Field Details
-
BURN_TIMES
static final Map<net.minecraft.world.item.crafting.RecipeType<?>,List<com.mojang.datafixers.util.Pair<IIngredient, BURN_TIMESInteger>>> -
BLOCK_INFO_PLAYERS
-
ENTITY_INFO_PLAYERS
-
ATTRIBUTE_MODIFIERS
-
-
Method Details
-
setBurnTime
default void setBurnTime(IIngredient ingredient, int burnTime, net.minecraft.world.item.crafting.RecipeType<?> type) -
getBurnTime
-
getBurnTimes
default Map<net.minecraft.world.item.crafting.RecipeType<?>,List<com.mojang.datafixers.util.Pair<IIngredient, getBurnTimes()Integer>>> -
getAttributeModifiers
-
applyAttributeModifiers
-
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)
-