Class ExpandMobEffectUtil

java.lang.Object
com.blamejared.crafttweaker.natives.entity.effect.ExpandMobEffectUtil

@ZenRegister public class ExpandMobEffectUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.network.chat.Component
    formatDuration(net.minecraft.world.effect.MobEffectInstance instance, float durationFactor, float ticksPerSecond)
    Formats the duration of a MobEffectInstance.
    static int
    getDigSpeedAmplification(net.minecraft.world.entity.LivingEntity entity)
    Gets the dig speed amplification of the LivingEntity.
    static boolean
    hasDigSpeed(net.minecraft.world.entity.LivingEntity entity)
    Checks if the LivingEntity has dig speed.
    static boolean
    hasWaterBreathing(net.minecraft.world.entity.LivingEntity entity)
    Checks if the LivingEntity has water breathing.

    Methods inherited from class java.lang.Object

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

    • ExpandMobEffectUtil

      public ExpandMobEffectUtil()
  • Method Details

    • formatDuration

      public static net.minecraft.network.chat.Component formatDuration(net.minecraft.world.effect.MobEffectInstance instance, float durationFactor, float ticksPerSecond)
      Formats the duration of a MobEffectInstance.
      Parameters:
      durationFactor - The factor to multiply the duration by.
      ticksPerSecond - The number of ticks per second.
      Returns:
      The formatted duration.
    • hasDigSpeed

      public static boolean hasDigSpeed(net.minecraft.world.entity.LivingEntity entity)
      Checks if the LivingEntity has dig speed.
      Parameters:
      entity - The LivingEntity to check.
      Returns:
      True if the LivingEntity has dig speed, false otherwise.
    • getDigSpeedAmplification

      public static int getDigSpeedAmplification(net.minecraft.world.entity.LivingEntity entity)
      Gets the dig speed amplification of the LivingEntity.
      Parameters:
      entity - The LivingEntity to get the dig speed amplification of.
      Returns:
      The dig speed amplification of the LivingEntity.
    • hasWaterBreathing

      public static boolean hasWaterBreathing(net.minecraft.world.entity.LivingEntity entity)
      Checks if the LivingEntity has water breathing.
      Parameters:
      entity - The LivingEntity to check.
      Returns:
      True if the LivingEntity has water breathing, false otherwise.