Interface IRegistryHelper

All Known Implementing Classes:
ForgeRegistryHelper

public interface IRegistryHelper
Common registry helper service interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addGoalToMob(net.minecraft.world.entity.Mob mob, int position, net.minecraft.world.entity.ai.goal.Goal goal)
     
    boolean
    areEntityEyesInDrownableFluid(net.minecraft.world.entity.LivingEntity entity)
    Checks if the eyes of the given entity are in a fluid, where it can drown.
    List<net.minecraft.world.item.Item>
     
    List<net.minecraft.world.item.ItemStack>
    getEquippedHatItemStacks(net.minecraft.world.entity.LivingEntity entity)
    Get all equipped item stacks of hat items of this mod.
    boolean
    isAxe(net.minecraft.world.item.ItemStack tool)
     
    boolean
    isBossEntity(net.minecraft.world.entity.LivingEntity entity)
     
    boolean
    isEntityInFluid(net.minecraft.world.entity.LivingEntity entity)
    Checks if the given entity is in a fluid.
    boolean
    isHoe(net.minecraft.world.item.ItemStack tool)
     
    boolean
    isPickaxe(net.minecraft.world.item.ItemStack tool)
     
    boolean
    isShovel(net.minecraft.world.item.ItemStack tool)
     
  • Method Details

    • addGoalToMob

      void addGoalToMob(net.minecraft.world.entity.Mob mob, int position, net.minecraft.world.entity.ai.goal.Goal goal)
    • isBossEntity

      boolean isBossEntity(net.minecraft.world.entity.LivingEntity entity)
    • getAllHatItems

      List<net.minecraft.world.item.Item> getAllHatItems()
      Returns:
      Returns all available useful hats.
    • getEquippedHatItemStacks

      List<net.minecraft.world.item.ItemStack> getEquippedHatItemStacks(net.minecraft.world.entity.LivingEntity entity)
      Get all equipped item stacks of hat items of this mod. Some APIs like Curios enables to have more than one slot. If two hats of the same item are worn, only one is in the list to avoid effect stacking.
      Parameters:
      entity - entity
      Returns:
      List of all equipped item stacks of hat items of this mod.
    • areEntityEyesInDrownableFluid

      boolean areEntityEyesInDrownableFluid(net.minecraft.world.entity.LivingEntity entity)
      Checks if the eyes of the given entity are in a fluid, where it can drown.
      Parameters:
      entity - entity to check
      Returns:
      true, if the eyes of the given entity are in a drownable fluid, else false
    • isEntityInFluid

      boolean isEntityInFluid(net.minecraft.world.entity.LivingEntity entity)
      Checks if the given entity is in a fluid.
      Parameters:
      entity - entity to check
      Returns:
      true, if the given entity is in a fluid, else false
    • isAxe

      boolean isAxe(net.minecraft.world.item.ItemStack tool)
    • isHoe

      boolean isHoe(net.minecraft.world.item.ItemStack tool)
    • isPickaxe

      boolean isPickaxe(net.minecraft.world.item.ItemStack tool)
    • isShovel

      boolean isShovel(net.minecraft.world.item.ItemStack tool)