Class ServerArgumentTypes
java.lang.Object
net.kyori.adventure.platform.fabric.impl.ServerArgumentTypes
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends com.mojang.brigadier.arguments.ArgumentType<?>>
ServerArgumentType<T>static ServerArgumentType<?>byId(int id) static booleanhasId(int id) static intid(net.minecraft.commands.synchronization.ArgumentTypeInfo<?, ?> argumentTypeInfo) static Set<net.minecraft.resources.ResourceLocation>ids()static booleanisServerType(net.minecraft.commands.synchronization.ArgumentTypeInfo<?, ?> argumentTypeInfo) static Set<net.minecraft.resources.ResourceLocation>knownArgumentTypes(net.minecraft.server.level.ServerPlayer player) static voidknownArgumentTypes(net.minecraft.server.level.ServerPlayer player, Set<net.minecraft.resources.ResourceLocation> ids, net.fabricmc.fabric.api.networking.v1.PacketSender responder) static voidstatic voidregister(ServerArgumentType<?> type) static ServerArgumentType<?>serverType(net.minecraft.commands.synchronization.ArgumentTypeInfo<?, ?> argumentTypeInfo)
-
Method Details
-
byClass
public static <T extends com.mojang.brigadier.arguments.ArgumentType<?>> ServerArgumentType<T> byClass(Class<T> clazz) -
register
-
ids
-
isServerType
public static boolean isServerType(net.minecraft.commands.synchronization.ArgumentTypeInfo<?, ?> argumentTypeInfo) -
hasId
public static boolean hasId(int id) -
byId
-
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
-