Class ExpandMobEffectUtil
java.lang.Object
com.blamejared.crafttweaker.natives.entity.effect.ExpandMobEffectUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.chat.ComponentformatDuration(net.minecraft.world.effect.MobEffectInstance instance, float durationFactor, float ticksPerSecond) Formats the duration of aMobEffectInstance.static intgetDigSpeedAmplification(net.minecraft.world.entity.LivingEntity entity) Gets the dig speed amplification of theLivingEntity.static booleanhasDigSpeed(net.minecraft.world.entity.LivingEntity entity) Checks if theLivingEntityhas dig speed.static booleanhasWaterBreathing(net.minecraft.world.entity.LivingEntity entity) Checks if theLivingEntityhas water breathing.
-
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 aMobEffectInstance.- 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 theLivingEntityhas dig speed.- Parameters:
entity- TheLivingEntityto check.- Returns:
- True if the
LivingEntityhas dig speed, false otherwise.
-
getDigSpeedAmplification
public static int getDigSpeedAmplification(net.minecraft.world.entity.LivingEntity entity) Gets the dig speed amplification of theLivingEntity.- Parameters:
entity- TheLivingEntityto 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 theLivingEntityhas water breathing.- Parameters:
entity- TheLivingEntityto check.- Returns:
- True if the
LivingEntityhas water breathing, false otherwise.
-