Class Helper

java.lang.Object
de.teamlapen.vampirism.util.Helper
de.teamlapen.werewolves.util.Helper

public class Helper extends de.teamlapen.vampirism.util.Helper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Optional<de.teamlapen.werewolves.api.entities.werewolf.IWerewolf>
    asIWerewolf(net.minecraft.world.entity.LivingEntity entity)
     
    static boolean
    canBecomeWerewolf(net.minecraft.world.entity.player.Player player)
     
    static boolean
    canEat(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
     
    static boolean
    canWerewolfEatItem(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
    Deprecated.
    static boolean
    canWerewolfPlayerEatItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    Deprecated.
    static Map<net.minecraft.world.item.Item,Integer>
    getMissingItems(net.minecraft.world.Container inventory, net.minecraft.world.item.Item[] items, int[] amount)
     
    static boolean
    hasFaction(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isFullMoon(net.minecraft.world.level.Level world)
     
    static boolean
    isMeat(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
     
    static boolean
    isMeat(net.minecraft.world.item.ItemStack stack)
    Deprecated.
    static boolean
    isNight(net.minecraft.world.level.Level world)
     
    static boolean
    isNoLiving(net.minecraft.world.entity.LivingEntity entity)
     
    static boolean
    isRawMeat(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
     
    static boolean
    isRawMeat(net.minecraft.world.item.ItemStack stack)
    Deprecated.
    static boolean
    isRawMeatSkipMeat(net.minecraft.world.item.ItemStack stack)
    static boolean
    isSilverItem(net.minecraft.world.item.ItemStack stack)
     
    static boolean
    isWerewolf(net.minecraft.world.entity.Entity entity)
     
    static boolean
    isWerewolf(net.minecraft.world.entity.player.Player entity)
     
    static net.minecraft.network.chat.MutableComponent
    joinComponents(String delimiter, net.minecraft.network.chat.MutableComponent... components)
     
    static boolean
    matchesItem(net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.ItemStack searchStack)
     
    static net.minecraft.core.BlockPos
    multiplyBlockPos(net.minecraft.core.BlockPos pos, double amount)
     

    Methods inherited from class de.teamlapen.vampirism.util.Helper

    areSkillsEnabled, attemptToGuessGenderSafe, canBecomeVampire, canBlockSeeSun, canKillVampires, canTurnPlayer, canUseFactionItem, createEntity, getBiome, getBiomeId, getBiomeId, getBiomeId, getGarlicStrength, getGarlicStrengthAt, gettingSundamge, getWorldKey, isDay, isEntityInArtificalVampireFogArea, isEntityInVampireBiome, isHunter, isHunter, isPosInVampireBiome, isVampire, isVampire, newDoubleNBTList

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Helper

      public Helper()
  • Method Details

    • isWerewolf

      public static boolean isWerewolf(net.minecraft.world.entity.Entity entity)
    • isWerewolf

      public static boolean isWerewolf(net.minecraft.world.entity.player.Player entity)
    • hasFaction

      public static boolean hasFaction(net.minecraft.world.entity.Entity entity)
    • multiplyBlockPos

      public static net.minecraft.core.BlockPos multiplyBlockPos(net.minecraft.core.BlockPos pos, double amount)
    • canBecomeWerewolf

      public static boolean canBecomeWerewolf(net.minecraft.world.entity.player.Player player)
    • isNight

      public static boolean isNight(net.minecraft.world.level.Level world)
    • isFullMoon

      public static boolean isFullMoon(net.minecraft.world.level.Level world)
    • getMissingItems

      public static Map<net.minecraft.world.item.Item,Integer> getMissingItems(net.minecraft.world.Container inventory, net.minecraft.world.item.Item[] items, int[] amount)
    • canWerewolfEatItem

      @Deprecated public static boolean canWerewolfEatItem(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
      Deprecated.
    • canWerewolfPlayerEatItem

      @Deprecated public static boolean canWerewolfPlayerEatItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
      Deprecated.
    • isMeat

      public static boolean isMeat(@Nullable net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
    • isMeat

      @Deprecated public static boolean isMeat(net.minecraft.world.item.ItemStack stack)
      Deprecated.
    • isRawMeat

      public static boolean isRawMeat(@Nullable net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
    • isRawMeat

      @Deprecated public static boolean isRawMeat(net.minecraft.world.item.ItemStack stack)
      Deprecated.
    • isRawMeatSkipMeat

      public static boolean isRawMeatSkipMeat(net.minecraft.world.item.ItemStack stack)
    • canEat

      public static boolean canEat(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack)
    • asIWerewolf

      public static Optional<de.teamlapen.werewolves.api.entities.werewolf.IWerewolf> asIWerewolf(net.minecraft.world.entity.LivingEntity entity)
    • matchesItem

      public static boolean matchesItem(net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.world.item.ItemStack searchStack)
    • joinComponents

      public static net.minecraft.network.chat.MutableComponent joinComponents(String delimiter, net.minecraft.network.chat.MutableComponent... components)
    • isSilverItem

      public static boolean isSilverItem(net.minecraft.world.item.ItemStack stack)
    • isNoLiving

      public static boolean isNoLiving(net.minecraft.world.entity.LivingEntity entity)