java.lang.Object
meteordevelopment.meteorclient.utils.Utils

public class Utils extends Object
  • Field Details

    • FILE_NAME_INVALID_CHARS_PATTERN

      public static final Pattern FILE_NAME_INVALID_CHARS_PATTERN
    • WHITE

      public static final Color WHITE
    • firstTimeTitleScreen

      public static boolean firstTimeTitleScreen
    • isReleasingTrident

      public static boolean isReleasingTrident
    • rendering3D

      public static boolean rendering3D
    • frameTime

      public static double frameTime
    • screenToOpen

      public static net.minecraft.client.gui.screen.Screen screenToOpen
    • vertexSorter

      public static com.mojang.blaze3d.systems.VertexSorter vertexSorter
  • Method Details

    • init

      public static void init()
    • getPlayerSpeed

      public static net.minecraft.util.math.Vec3d getPlayerSpeed()
    • getWorldTime

      public static String getWorldTime()
    • chunks

      public static Iterable<net.minecraft.world.chunk.Chunk> chunks(boolean onlyWithLoadedNeighbours)
    • chunks

      public static Iterable<net.minecraft.world.chunk.Chunk> chunks()
    • blockEntities

      public static Iterable<net.minecraft.block.entity.BlockEntity> blockEntities()
    • getEnchantments

      public static void getEnchantments(net.minecraft.item.ItemStack itemStack, it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.registry.entry.RegistryEntry<net.minecraft.enchantment.Enchantment>> enchantments)
    • getEnchantmentLevel

      public static int getEnchantmentLevel(net.minecraft.item.ItemStack itemStack, net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment> enchantment)
    • getEnchantmentLevel

      public static int getEnchantmentLevel(it.unimi.dsi.fastutil.objects.Object2IntMap<net.minecraft.registry.entry.RegistryEntry<net.minecraft.enchantment.Enchantment>> itemEnchantments, net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment> enchantment)
    • hasEnchantments

      @SafeVarargs public static boolean hasEnchantments(net.minecraft.item.ItemStack itemStack, net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>... enchantments)
    • hasEnchantment

      public static boolean hasEnchantment(net.minecraft.item.ItemStack itemStack, net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment> enchantmentKey)
    • getRenderDistance

      public static int getRenderDistance()
    • getWindowWidth

      public static int getWindowWidth()
    • getWindowHeight

      public static int getWindowHeight()
    • unscaledProjection

      public static void unscaledProjection()
    • scaledProjection

      public static void scaledProjection()
    • vec3d

      public static net.minecraft.util.math.Vec3d vec3d(net.minecraft.util.math.BlockPos pos)
    • openContainer

      public static boolean openContainer(net.minecraft.item.ItemStack itemStack, net.minecraft.item.ItemStack[] contents, boolean pause)
    • getItemsInContainerItem

      public static void getItemsInContainerItem(net.minecraft.item.ItemStack itemStack, net.minecraft.item.ItemStack[] items)
    • getShulkerColor

      public static Color getShulkerColor(net.minecraft.item.ItemStack shulkerItem)
    • hasItems

      public static boolean hasItems(net.minecraft.item.ItemStack itemStack)
    • createStatusEffectMap

      public static it.unimi.dsi.fastutil.objects.Reference2IntMap<net.minecraft.entity.effect.StatusEffect> createStatusEffectMap()
    • getEnchantSimpleName

      public static String getEnchantSimpleName(net.minecraft.registry.entry.RegistryEntry<net.minecraft.enchantment.Enchantment> enchantment, int length)
    • searchTextDefault

      public static boolean searchTextDefault(String text, String filter, boolean caseSensitive)
    • searchLevenshteinDefault

      public static int searchLevenshteinDefault(String text, String filter, boolean caseSensitive)
    • searchInWords

      public static int searchInWords(String text, String filter)
    • levenshteinDistance

      public static int levenshteinDistance(String from, String to, int insCost, int subCost, int delCost)
    • squaredDistance

      public static double squaredDistance(double x1, double y1, double z1, double x2, double y2, double z2)
    • distance

      public static double distance(double x1, double y1, double z1, double x2, double y2, double z2)
    • getFileWorldName

      public static String getFileWorldName()
    • getWorldName

      public static String getWorldName()
    • nameToTitle

      public static String nameToTitle(String name)
    • titleToName

      public static String titleToName(String title)
    • getKeyName

      public static String getKeyName(int key)
    • getButtonName

      public static String getButtonName(int button)
    • readBytes

      public static byte[] readBytes(InputStream in)
    • canUpdate

      public static boolean canUpdate()
    • canOpenGui

      public static boolean canOpenGui()
    • canCloseGui

      public static boolean canCloseGui()
    • random

      public static int random(int min, int max)
    • random

      public static double random(double min, double max)
    • leftClick

      public static void leftClick()
    • rightClick

      public static void rightClick()
    • isShulker

      public static boolean isShulker(net.minecraft.item.Item item)
    • isThrowable

      public static boolean isThrowable(net.minecraft.item.Item item)
    • addEnchantment

      public static void addEnchantment(net.minecraft.item.ItemStack itemStack, net.minecraft.registry.entry.RegistryEntry<net.minecraft.enchantment.Enchantment> enchantment, int level)
    • clearEnchantments

      public static void clearEnchantments(net.minecraft.item.ItemStack itemStack)
    • removeEnchantment

      public static void removeEnchantment(net.minecraft.item.ItemStack itemStack, net.minecraft.enchantment.Enchantment enchantment)
    • lerp

      public static Color lerp(Color first, Color second, @org.jetbrains.annotations.Range(from=0L, to=1L) float v)
    • isLoading

      public static boolean isLoading()
    • parsePort

      public static int parsePort(String full)
    • parseAddress

      public static String parseAddress(String full)
    • resolveAddress

      public static boolean resolveAddress(String address)
    • resolveAddress

      public static boolean resolveAddress(String address, int port)
    • set

      public static org.joml.Vector3d set(org.joml.Vector3d vec, net.minecraft.util.math.Vec3d v)
    • set

      public static org.joml.Vector3d set(org.joml.Vector3d vec, net.minecraft.entity.Entity entity, double tickDelta)
    • nameFilter

      public static boolean nameFilter(String text, char character)
    • ipFilter

      public static boolean ipFilter(String text, char character)