Class ArgumentInfoMod<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
java.lang.Object
org.cyclops.cyclopscore.command.argument.ArgumentInfoMod<T>
- All Implemented Interfaces:
net.minecraft.commands.synchronization.ArgumentTypeInfo<ArgumentTypeConfigProperty,
ArgumentInfoMod<T>.Template>
public class ArgumentInfoMod<T extends com.mojang.brigadier.arguments.ArgumentType<?>>
extends Object
implements net.minecraft.commands.synchronization.ArgumentTypeInfo<ArgumentTypeConfigProperty,ArgumentInfoMod<T>.Template>
A generic argument serializer for argument types with a mod property.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserializeFromNetwork
(net.minecraft.network.FriendlyByteBuf packetBuffer) void
serializeToJson
(ArgumentInfoMod.Template t, com.google.gson.JsonObject jsonObject) void
serializeToNetwork
(ArgumentInfoMod.Template t, net.minecraft.network.FriendlyByteBuf packetBuffer) unpack
(ArgumentTypeConfigProperty p_235372_)
-
Constructor Details
-
ArgumentInfoMod
public ArgumentInfoMod()
-
-
Method Details
-
serializeToNetwork
public void serializeToNetwork(ArgumentInfoMod.Template t, net.minecraft.network.FriendlyByteBuf packetBuffer) - Specified by:
serializeToNetwork
in interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<ArgumentTypeConfigProperty,
ArgumentInfoMod<T extends com.mojang.brigadier.arguments.ArgumentType<?>>.Template>
-
deserializeFromNetwork
public ArgumentInfoMod.Template deserializeFromNetwork(net.minecraft.network.FriendlyByteBuf packetBuffer) - Specified by:
deserializeFromNetwork
in interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<ArgumentTypeConfigProperty,
ArgumentInfoMod<T extends com.mojang.brigadier.arguments.ArgumentType<?>>.Template>
-
serializeToJson
- Specified by:
serializeToJson
in interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<ArgumentTypeConfigProperty,
ArgumentInfoMod<T extends com.mojang.brigadier.arguments.ArgumentType<?>>.Template>
-
unpack
- Specified by:
unpack
in interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo<ArgumentTypeConfigProperty,
ArgumentInfoMod<T extends com.mojang.brigadier.arguments.ArgumentType<?>>.Template>
-