Class ServerArgumentTypes

java.lang.Object
net.kyori.adventure.platform.fabric.impl.ServerArgumentTypes

public final class ServerArgumentTypes extends Object
  • Method Details

    • byClass

      public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> ServerArgumentType<T> byClass(Class<T> clazz)
    • register

      public static void register(ServerArgumentType<?> type)
    • ids

      public static Set<net.minecraft.resources.ResourceLocation> ids()
    • isServerType

      public static boolean isServerType(net.minecraft.commands.synchronization.ArgumentTypeInfo<?,?> argumentTypeInfo)
    • hasId

      public static boolean hasId(int id)
    • byId

      public static ServerArgumentType<?> byId(int id)
    • serverType

      public static ServerArgumentType<?> serverType(net.minecraft.commands.synchronization.ArgumentTypeInfo<?,?> argumentTypeInfo)
    • id

      public static int id(net.minecraft.commands.synchronization.ArgumentTypeInfo<?,?> argumentTypeInfo)
    • knownArgumentTypes

      public static void knownArgumentTypes(net.minecraft.server.level.ServerPlayer player, Set<net.minecraft.resources.ResourceLocation> ids, net.fabricmc.fabric.api.networking.v1.PacketSender responder)
    • knownArgumentTypes

      public static Set<net.minecraft.resources.ResourceLocation> knownArgumentTypes(net.minecraft.server.level.ServerPlayer player)
    • receiveMappings

      public static void receiveMappings(ClientboundArgumentTypeMappingsPacket packet)