Class MinecraftReflection

java.lang.Object
com.comphenix.protocol.utility.MinecraftReflection

public final class MinecraftReflection extends Object
Methods and constants specifically used in conjuction with reflecting Minecraft object.
  • Method Details

    • getMinecraftObjectRegex

      public static String getMinecraftObjectRegex()
      Retrieve a regular expression that can match Minecraft package objects.
      Returns:
      Minecraft package matcher.
    • getMinecraftObjectMatcher

      public static AbstractFuzzyMatcher<Class<?>> getMinecraftObjectMatcher()
      Retrieve a abstract fuzzy class matcher for Minecraft objects.
      Returns:
      A matcher for Minecraft objects.
    • getMinecraftPackage

      public static String getMinecraftPackage()
      Retrieve the name of the Minecraft server package.
      Returns:
      Full canonical name of the Minecraft server package.
    • getPackageVersion

      public static String getPackageVersion()
      Retrieve the package version of the underlying CraftBukkit server.
      Returns:
      The craftbukkit package version.
    • getCraftBukkitPackage

      public static String getCraftBukkitPackage()
      Retrieve the name of the root CraftBukkit package.
      Returns:
      Full canonical name of the root CraftBukkit package.
    • getBukkitEntity

      public static Object getBukkitEntity(Object nmsObject)
      Dynamically retrieve the Bukkit entity from a given entity.
      Parameters:
      nmsObject - - the NMS entity.
      Returns:
      A bukkit entity.
      Throws:
      RuntimeException - If we were unable to retrieve the Bukkit entity.
    • getBukkitPlayerFromConnection

      public static org.bukkit.entity.Player getBukkitPlayerFromConnection(Object playerConnection)
      Retrieve the Bukkit player from a given PlayerConnection.
      Parameters:
      playerConnection - The PlayerConnection.
      Returns:
      A bukkit player.
      Throws:
      RuntimeException - If we were unable to retrieve the Bukkit player.
    • isMinecraftObject

      public static boolean isMinecraftObject(Object obj)
      Determine if a given object can be found within the package net.minecraft.server.
      Parameters:
      obj - - the object to test.
      Returns:
      TRUE if it can, FALSE otherwise.
    • isMinecraftClass

      public static boolean isMinecraftClass(Class<?> clazz)
      Determine if the given class is found within the package net.minecraft.server, or any equivalent package.
      Parameters:
      clazz - - the class to test.
      Returns:
      TRUE if it can, FALSE otherwise.
    • isMinecraftObject

      public static boolean isMinecraftObject(Object obj, String className)
      Determine if a given object is found in net.minecraft.server, and has the given name.
      Parameters:
      obj - - the object to test.
      className - - the class name to test.
      Returns:
      TRUE if it can, FALSE otherwise.
    • is

      public static boolean is(Class<?> clazz, Object object)
      Determine if a given Object is compatible with a given Class. That is, whether or not the Object is an instance of that Class or one of its subclasses. If either is null, false is returned.
      Parameters:
      clazz - Class to test for, may be null
      object - the Object to test, may be null
      Returns:
      True if it is, false if not
      See Also:
    • is

      public static boolean is(Class<?> clazz, Class<?> test)
      Equivalent to is(Class, Object) but we don't call getClass again
    • isBlockPosition

      public static boolean isBlockPosition(Object obj)
      Determine if a given object is a BlockPosition.
      Parameters:
      obj - - the object to test.
      Returns:
      TRUE if it can, FALSE otherwise.
    • isChunkCoordIntPair

      public static boolean isChunkCoordIntPair(Object obj)
      Determine if the given object is an NMS ChunkCoordIntPar.
      Parameters:
      obj - - the object.
      Returns:
      TRUE if it can, FALSE otherwise.
    • isPacketClass

      public static boolean isPacketClass(Object obj)
      Determine if the given object is actually a Minecraft packet.
      Parameters:
      obj - - the given object.
      Returns:
      TRUE if it is, FALSE otherwise.
    • isPacketClass

      public static boolean isPacketClass(Class<?> clazz)
    • isServerHandler

      public static boolean isServerHandler(Object obj)
      Determine if the given object is assignable to a NetServerHandler (PlayerConnection)
      Parameters:
      obj - - the given object.
      Returns:
      TRUE if it is, FALSE otherwise.
    • isMinecraftEntity

      public static boolean isMinecraftEntity(Object obj)
      Determine if the given object is actually a Minecraft packet.
      Parameters:
      obj - - the given object.
      Returns:
      TRUE if it is, FALSE otherwise.
    • isItemStack

      public static boolean isItemStack(Object value)
      Determine if the given object is a NMS ItemStack.
      Parameters:
      value - - the given object.
      Returns:
      TRUE if it is, FALSE otherwise.
    • isCraftPlayer

      public static boolean isCraftPlayer(Object value)
      Determine if the given object is a CraftPlayer class.
      Parameters:
      value - - the given object.
      Returns:
      TRUE if it is, FALSE otherwise.
    • isMinecraftPlayer

      public static boolean isMinecraftPlayer(Object obj)
      Determine if the given object is a Minecraft player entity.
      Parameters:
      obj - - the given object.
      Returns:
      TRUE if it is, FALSE otherwise.
    • isDataWatcher

      public static boolean isDataWatcher(Object obj)
      Determine if the given object is a data watcher object.
      Parameters:
      obj - - the given object.
      Returns:
      TRUE if it is, FALSE otherwise.
    • isIntHashMap

      public static boolean isIntHashMap(Object obj)
      Determine if the given object is an IntHashMap object.
      Parameters:
      obj - - the given object.
      Returns:
      TRUE if it is, FALSE otherwise.
    • isCraftItemStack

      public static boolean isCraftItemStack(Object obj)
      Determine if the given object is a CraftItemStack instancey.
      Parameters:
      obj - - the given object.
      Returns:
      TRUE if it is, FALSE otherwise.
    • isIChatBaseComponent

      public static boolean isIChatBaseComponent(Class<?> target)
    • getEntityPlayerClass

      public static Class<?> getEntityPlayerClass()
      Retrieve the EntityPlayer (NMS) class.
      Returns:
      The entity class.
    • getEntityHumanClass

      public static Class<?> getEntityHumanClass()
      Retrieve the EntityHuman class.
      Returns:
      The entity human class.
    • getGameProfileClass

      public static Class<?> getGameProfileClass()
      Retrieve the GameProfile class.
      Returns:
      The game profile class.
    • getEntityClass

      public static Class<?> getEntityClass()
      Retrieve the entity (NMS) class.
      Returns:
      The entity class.
    • getCraftChatMessage

      public static Class<?> getCraftChatMessage()
      Retrieve the CraftChatMessage.
      Returns:
      The CraftChatMessage class.
    • getWorldServerClass

      public static Class<?> getWorldServerClass()
      Retrieve the WorldServer (NMS) class.
      Returns:
      The WorldServer class.
    • getNmsWorldClass

      public static Class<?> getNmsWorldClass()
      Retrieve the World (NMS) class.
      Returns:
      The world class.
    • getPacketClass

      public static Class<?> getPacketClass()
      Retrieve the packet class.
      Returns:
      The packet class.
    • getByteBufClass

      public static Class<?> getByteBufClass()
    • getEnumProtocolClass

      public static Class<?> getEnumProtocolClass()
      Retrieve the EnumProtocol class.
      Returns:
      The Enum protocol class.
    • getIChatBaseComponentClass

      public static Class<?> getIChatBaseComponentClass()
      Retrieve the IChatBaseComponent class.
      Returns:
      The IChatBaseComponent.
    • getPackedBundlePacketClass

      public static Optional<Class<?>> getPackedBundlePacketClass()
    • isBundlePacket

      public static boolean isBundlePacket(Class<?> packetClass)
    • isBundleDelimiter

      public static boolean isBundleDelimiter(Class<?> packetClass)
    • getBundleDelimiterClass

      public static Optional<Class<?>> getBundleDelimiterClass()
    • getIChatBaseComponentArrayClass

      public static Class<?> getIChatBaseComponentArrayClass()
    • getChatComponentTextClass

      public static Class<?> getChatComponentTextClass()
      Retrieve the NMS chat component text class.
      Returns:
      The chat component class.
    • getChatSerializerClass

      public static Class<?> getChatSerializerClass()
      Attempt to find the ChatSerializer class.
      Returns:
      The serializer class.
      Throws:
      IllegalStateException - If the class could not be found or deduced.
    • getStyleSerializerClass

      public static Class<?> getStyleSerializerClass()
      Retrieve the component style serializer class.
      Returns:
      The serializer class.
    • getServerPingClass

      public static Class<?> getServerPingClass()
      Retrieve the ServerPing class.
      Returns:
      The ServerPing class.
    • getServerPingServerDataClass

      public static Class<?> getServerPingServerDataClass()
      Retrieve the ServerPingServerData class.
      Returns:
      The ServerPingServerData class.
    • getServerPingPlayerSampleClass

      public static Class<?> getServerPingPlayerSampleClass()
      Retrieve the ServerPingPlayerSample class.
      Returns:
      The ServerPingPlayerSample class.
    • getMinecraftServerClass

      public static Class<?> getMinecraftServerClass()
      Retrieve the MinecraftServer class.
      Returns:
      MinecraftServer class.
    • getStatisticClass

      public static Class<?> getStatisticClass()
      Retrieve the NMS statistics class.
      Returns:
      The statistics class.
    • getStatisticListClass

      public static Class<?> getStatisticListClass()
      Retrieve the NMS statistic list class.
      Returns:
      The statistic list class.
    • getPlayerListClass

      public static Class<?> getPlayerListClass()
      Retrieve the player list class (or ServerConfigurationManager),
      Returns:
      The player list class.
    • getPlayerConnectionClass

      public static Class<?> getPlayerConnectionClass()
      Retrieve the PlayerConnection class.
      Returns:
      The PlayerConnection class.
    • getNetworkManagerClass

      public static Class<?> getNetworkManagerClass()
      Retrieve the NetworkManager class.
      Returns:
      The NetworkManager class.
    • getItemStackClass

      public static Class<?> getItemStackClass()
      Retrieve the NMS ItemStack class.
      Returns:
      The ItemStack class.
    • getBlockClass

      public static Class<?> getBlockClass()
      Retrieve the Block (NMS) class.
      Returns:
      Block (NMS) class.
    • getItemClass

      public static Class<?> getItemClass()
    • getFluidTypeClass

      public static Class<?> getFluidTypeClass()
    • getParticleTypeClass

      public static Class<?> getParticleTypeClass()
    • getParticleClass

      public static Class<?> getParticleClass()
    • getWorldTypeClass

      public static Class<?> getWorldTypeClass()
      Retrieve the WorldType class.
      Returns:
      The WorldType class.
    • getDataWatcherClass

      public static Class<?> getDataWatcherClass()
      Retrieve the DataWatcher class.
      Returns:
      The DataWatcher class.
    • getBlockPositionClass

      public static Class<?> getBlockPositionClass()
      Retrieves the BlockPosition class.
      Returns:
      The BlockPosition class.
    • getVec3DClass

      public static Class<?> getVec3DClass()
      Retrieves the Vec3D class.
      Returns:
      The Vec3D class.
    • getChunkCoordIntPair

      public static Class<?> getChunkCoordIntPair()
      Retrieve the ChunkCoordIntPair class.
      Returns:
      The ChunkCoordIntPair class.
    • getDataWatcherItemClass

      public static Class<?> getDataWatcherItemClass()
      Retrieve the DataWatcher Item class.
      Returns:
      The class
    • getDataWatcherObjectClass

      public static Class<?> getDataWatcherObjectClass()
    • watcherObjectExists

      public static boolean watcherObjectExists()
    • getDataWatcherSerializerClass

      public static Class<?> getDataWatcherSerializerClass()
    • getDataWatcherRegistryClass

      public static Class<?> getDataWatcherRegistryClass()
    • getMinecraftKeyClass

      public static Class<?> getMinecraftKeyClass()
    • getMobEffectListClass

      public static Class<?> getMobEffectListClass()
    • getSoundEffectClass

      public static Class<?> getSoundEffectClass()
    • getServerConnectionClass

      public static Class<?> getServerConnectionClass()
      Retrieve the ServerConnection abstract class.
      Returns:
      The ServerConnection class.
    • getNBTBaseClass

      public static Class<?> getNBTBaseClass()
      Retrieve the NBT base class.
      Returns:
      The NBT base class.
    • getNBTReadLimiterClass

      public static Class<?> getNBTReadLimiterClass()
      Retrieve the NBT read limiter class.
      Returns:
      The NBT read limiter.
    • getNBTCompoundClass

      public static Class<?> getNBTCompoundClass()
      Retrieve the NBT Compound class.
      Returns:
      The NBT Compond class.
    • getEntityTrackerClass

      public static Class<?> getEntityTrackerClass()
      Retrieve the EntityTracker (NMS) class.
      Returns:
      EntityTracker class.
    • getAttributeSnapshotClass

      public static Class<?> getAttributeSnapshotClass()
      Retrieve the attribute snapshot class.

      This stores the final value of an attribute, along with all the associated computational steps.

      Returns:
      The attribute snapshot class.
    • getIntHashMapClass

      public static Class<?> getIntHashMapClass()
      Retrieve the IntHashMap class.
      Returns:
      IntHashMap class.
    • getAttributeModifierClass

      public static Class<?> getAttributeModifierClass()
      Retrieve the attribute modifier class.
      Returns:
      Attribute modifier class.
    • getMobEffectClass

      public static Class<?> getMobEffectClass()
      Retrieve the net.minecraft.server.MobEffect class.
      Returns:
      The mob effect class.
    • getPacketDataSerializerClass

      public static Class<?> getPacketDataSerializerClass()
      Retrieve the packet data serializer class that overrides ByteBuf.
      Returns:
      The data serializer class.
    • getNbtCompressedStreamToolsClass

      public static Class<?> getNbtCompressedStreamToolsClass()
      Retrieve the NBTCompressedStreamTools class.
      Returns:
      The NBTCompressedStreamTools class.
    • getTileEntityClass

      public static Class<?> getTileEntityClass()
      Retrieve the NMS tile entity class.
      Returns:
      The tile entity class.
    • getTeamParametersClass

      public static Optional<Class<?>> getTeamParametersClass()
      Retrieve the NMS team parameters class.
      Returns:
      The team parameters class.
    • getComponentStyleClass

      public static Class<?> getComponentStyleClass()
      Retrieve the NMS component style class.
      Returns:
      The component style class.
    • getNumberFormatClass

      public static Optional<Class<?>> getNumberFormatClass()
      Retrieve the NMS NumberFormat class.
      Returns:
      The NumberFormat class.
    • getBlankFormatClass

      public static Optional<Class<?>> getBlankFormatClass()
      Retrieve the NMS BlankFormat class.
      Returns:
      The FixedFormat class.
    • getFixedFormatClass

      public static Optional<Class<?>> getFixedFormatClass()
      Retrieve the NMS FixedFormat class.
      Returns:
      The FixedFormat class.
    • getStyledFormatClass

      public static Optional<Class<?>> getStyledFormatClass()
      Retrieve the NMS StyledFormat class.
      Returns:
      The StyledFormat class.
    • getMinecraftGsonClass

      public static Class<?> getMinecraftGsonClass()
      Retrieve the Gson class used by Minecraft.
      Returns:
      The Gson class.
    • getItemStackArrayClass

      public static Class<?> getItemStackArrayClass()
      Retrieve the ItemStack[] class.
      Returns:
      The ItemStack[] class.
    • getArrayClass

      public static Class<?> getArrayClass(Class<?> componentType)
      Retrieve the array class of a given component type.
      Parameters:
      componentType - - type of each element in the array.
      Returns:
      The class of the array.
    • getCraftItemStackClass

      public static Class<?> getCraftItemStackClass()
      Retrieve the CraftItemStack class.
      Returns:
      The CraftItemStack class.
    • getCraftPlayerClass

      public static Class<?> getCraftPlayerClass()
      Retrieve the CraftPlayer class.
      Returns:
      CraftPlayer class.
    • getCraftWorldClass

      public static Class<?> getCraftWorldClass()
      Retrieve the CraftWorld class.
      Returns:
      The CraftWorld class.
    • getCraftEntityClass

      public static Class<?> getCraftEntityClass()
      Retrieve the CraftEntity class.
      Returns:
      CraftEntity class.
    • getCraftMessageClass

      public static Class<?> getCraftMessageClass()
      Retrieve the CraftChatMessage introduced in 1.7.2
      Returns:
      The CraftChatMessage class.
    • getPlayerInfoDataClass

      public static Class<?> getPlayerInfoDataClass()
      Retrieve the PlayerInfoData class in 1.8.
      Returns:
      The PlayerInfoData class
    • getEnumEntityUseActionClass

      public static Class<?> getEnumEntityUseActionClass()
      Retrieves the entity use action class in 1.17.
      Returns:
      The EntityUseAction class
    • getEntityUseActionEnumMethodAccessor

      public static MethodAccessor getEntityUseActionEnumMethodAccessor()
      Get a method accessor to get the actual use action out of the wrapping EnumEntityUseAction in 1.17.
      Returns:
      a method accessor to get the actual use action
    • getHandEntityUseActionEnumFieldAccessor

      public static FieldAccessor getHandEntityUseActionEnumFieldAccessor(Object enumEntityUseAction)
      Get a field accessor for the hand in the wrapping EnumEntityUseAction in 1.17.
      Parameters:
      enumEntityUseAction - the object instance of the action, the field is not present in attack.
      Returns:
      a field accessor for the hand in the wrapping EnumEntityUseAction
    • getVec3EntityUseActionEnumFieldAccessor

      public static FieldAccessor getVec3EntityUseActionEnumFieldAccessor(Object enumEntityUseAction)
      Get a field accessor for the vec3d in the wrapping EnumEntityUseAction in 1.17.
      Parameters:
      enumEntityUseAction - the object instance of the action, the field is not present in attack.
      Returns:
      a field accessor for the hand in the wrapping EnumEntityUseAction
    • isPlayerInfoData

      public static boolean isPlayerInfoData(Object obj)
      Determine if the given object is a PlayerInfoData.
      Parameters:
      obj - - the given object.
      Returns:
      TRUE if it is, FALSE otherwise.
    • getIBlockDataClass

      public static Class<?> getIBlockDataClass()
      Retrieve the IBlockData class in 1.8.
      Returns:
      The IBlockData class
    • getMultiBlockChangeInfoClass

      public static Class<?> getMultiBlockChangeInfoClass()
      Retrieve the MultiBlockChangeInfo class in 1.8.
      Returns:
      The MultiBlockChangeInfo class
    • getMultiBlockChangeInfoArrayClass

      public static Class<?> getMultiBlockChangeInfoArrayClass()
      Retrieve the MultiBlockChangeInfo array class in 1.8.
      Returns:
      The MultiBlockChangeInfo array class
    • getGameStateClass

      public static Class<?> getGameStateClass()
      Retrieve the PacketPlayOutGameStateChange.a class, aka GameState in 1.16
      Returns:
      The GameState class
    • signUpdateExists

      public static boolean signUpdateExists()
    • getNonNullListClass

      public static Class<?> getNonNullListClass()
    • getNonNullListCreateAccessor

      public static MethodAccessor getNonNullListCreateAccessor()
    • getCraftSoundClass

      public static Class<?> getCraftSoundClass()
    • getSectionPositionClass

      public static Class<?> getSectionPositionClass()
    • getBukkitItemStack

      public static org.bukkit.inventory.ItemStack getBukkitItemStack(Object generic)
      Retrieves the Bukkit equivalent of a NMS ItemStack. This method should preserve NBT data and will never return null when supplied with a valid ItemStack. Empty ItemStacks are treated as AIR.
      Parameters:
      generic - NMS ItemStack
      Returns:
      The Bukkit equivalent
    • getMinecraftItemStack

      public static Object getMinecraftItemStack(org.bukkit.inventory.ItemStack specific)
      Retrieves the NMS equivalent of a Bukkit ItemStack. This method will never return null and should preserve NBT data. Null inputs are treated as empty (AIR) ItemStacks.
      Parameters:
      specific - Bukkit ItemStack
      Returns:
      The NMS equivalent
    • getCraftBukkitClass

      public static Class<?> getCraftBukkitClass(String className)
      Retrieve the class object of a specific CraftBukkit class.
      Parameters:
      className - - the specific CraftBukkit class.
      Returns:
      Class object.
      Throws:
      RuntimeException - If we are unable to find the given class.
    • getMinecraftClass

      public static Class<?> getMinecraftClass(String className)
      Retrieve the class object of a specific Minecraft class.
      Parameters:
      className - - the specific Minecraft class.
      Returns:
      Class object.
      Throws:
      RuntimeException - If we are unable to find the given class.
    • getOptionalNMS

      public static Optional<Class<?>> getOptionalNMS(String className, String... aliases)
      Optionally retrieve the class object of a NMS (net.minecraft.server) class. If the class does not exist, the optional will be empty
      Parameters:
      className - NMS class name
      aliases - Potential aliases
      Returns:
      Optional that may contain the class
    • getNullableNMS

      public static Class<?> getNullableNMS(String className, String... aliases)
      Retrieves a nullable NMS (net.minecraft.server) class. We will attempt to look up the class and its aliases, but will return null if none is found.
      Parameters:
      className - NMS class name
      aliases - Potential aliases
      Returns:
      The class, or null if not found
    • getMinecraftClass

      public static Class<?> getMinecraftClass(String className, String... aliases)
      Retrieve the first class that matches a specified Minecraft name.
      Parameters:
      className - - the specific Minecraft class.
      aliases - - alternative names for this Minecraft class.
      Returns:
      Class object.
      Throws:
      RuntimeException - If we are unable to find any of the given classes.
    • getMinecraftLibraryClass

      public static Class<?> getMinecraftLibraryClass(String className)
      Retrieve the class object of a specific Minecraft library class.
      Parameters:
      className - - the specific library Minecraft class.
      Returns:
      Class object.
      Throws:
      RuntimeException - If we are unable to find the given class.
    • getOptionalLibraryClass

      public static Optional<Class<?>> getOptionalLibraryClass(String className)
    • getNetworkManagerName

      public static String getNetworkManagerName()
      Dynamically retrieve the NetworkManager name.
      Returns:
      Name of the NetworkManager class.
    • getPacketDataSerializer

      public static Object getPacketDataSerializer(Object buffer)
      Retrieve an instance of the packet data serializer wrapper.
      Parameters:
      buffer - - the buffer.
      Returns:
      The instance.
    • createPacketDataSerializer

      public static Object createPacketDataSerializer(int initialSize)
    • getNbtTagTypes

      public static Class<?> getNbtTagTypes()
    • getChatDeserializer

      public static Class<?> getChatDeserializer()
    • getChatMutableComponentClass

      public static Class<?> getChatMutableComponentClass()
    • getDimensionManager

      public static Class<?> getDimensionManager()
    • getMerchantRecipeList

      public static Class<?> getMerchantRecipeList()
    • getResourceKey

      public static Class<?> getResourceKey()
    • getEntityTypes

      public static Class<?> getEntityTypes()
    • getParticleParam

      public static Class<?> getParticleParam()
    • getSectionPosition

      public static Class<?> getSectionPosition()
    • getChunkProviderServer

      public static Class<?> getChunkProviderServer()
    • getPlayerChunkMap

      public static Class<?> getPlayerChunkMap()
    • getIRegistry

      public static Class<?> getIRegistry()
    • getBuiltInRegistries

      public static Class<?> getBuiltInRegistries()
    • getAttributeBase

      public static Class<?> getAttributeBase()
    • getProfilePublicKeyClass

      public static Class<?> getProfilePublicKeyClass()
    • getMessageSignatureClass

      public static Class<?> getMessageSignatureClass()
    • getSaltedSignatureClass

      public static Class<?> getSaltedSignatureClass()
    • getProfilePublicKeyDataClass

      public static Class<?> getProfilePublicKeyDataClass()
    • getRemoteChatSessionClass

      public static Class<?> getRemoteChatSessionClass()
    • getRemoteChatSessionDataClass

      public static Class<?> getRemoteChatSessionDataClass()
    • getFastUtilClass

      public static Class<?> getFastUtilClass(String className)
    • getInt2ObjectMapClass

      public static Class<?> getInt2ObjectMapClass()
    • getIntArrayListClass

      public static Class<?> getIntArrayListClass()
    • getLibraryClass

      public static Class<?> getLibraryClass(String classname)
    • getLevelChunkPacketDataClass

      public static Class<?> getLevelChunkPacketDataClass()
    • getLightUpdatePacketDataClass

      public static Class<?> getLightUpdatePacketDataClass()
    • getBlockEntityTypeClass

      public static Class<?> getBlockEntityTypeClass()
    • getBlockEntityInfoClass

      public static Class<?> getBlockEntityInfoClass()
    • getDynamicOpsClass

      public static Class<?> getDynamicOpsClass()
    • getJsonOpsClass

      public static Class<?> getJsonOpsClass()
    • getNbtOpsClass

      public static Class<?> getNbtOpsClass()
    • getCodecClass

      public static Class<?> getCodecClass()
    • getHolderClass

      public static Class<?> getHolderClass()
    • getCraftServer

      public static Class<?> getCraftServer()
    • getHolderLookupProviderClass

      public static Class<?> getHolderLookupProviderClass()
    • getRegistryAccessClass

      public static Class<?> getRegistryAccessClass()
    • getProtocolInfoClass

      public static Class<?> getProtocolInfoClass()
    • getProtocolInfoUnboundClass

      public static Class<?> getProtocolInfoUnboundClass()
    • getPacketFlowClass

      public static Class<?> getPacketFlowClass()
    • getStreamCodecClass

      public static Class<?> getStreamCodecClass()
    • getRegistryFriendlyByteBufClass

      public static Optional<Class<?>> getRegistryFriendlyByteBufClass()
    • isMojangMapped

      public static boolean isMojangMapped()