Package com.wdiscute.libtooltips
Class MotionEffect
java.lang.Object
com.wdiscute.libtooltips.MotionEffect
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.chat.MutableComponentbuild(MotionEffect.Type type, String text, net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.Entity entity, float defaultAmplitude, float defaultWave) static StringbuildMarker(MotionEffect.Type type, float amplitude, float wave, double offset) static List<net.minecraft.network.chat.MutableComponent> flattenToChars(net.minecraft.network.chat.Component component) static booleanhasMotion(net.minecraft.util.FormattedCharSequence sequence) static MotionEffect.Entry
-
Constructor Details
-
MotionEffect
public MotionEffect()
-
-
Method Details
-
build
public static net.minecraft.network.chat.MutableComponent build(MotionEffect.Type type, String text, net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.Entity entity, float defaultAmplitude, float defaultWave) -
buildMarker
public static String buildMarker(MotionEffect.Type type, float amplitude, float wave, double offset) -
hasMotion
public static boolean hasMotion(net.minecraft.util.FormattedCharSequence sequence) -
parse
-
flattenToChars
public static List<net.minecraft.network.chat.MutableComponent> flattenToChars(net.minecraft.network.chat.Component component)
-