Record Class EnumDataTypeArgument.Info.ArgumentTemplate<T>
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.command.EnumDataTypeArgument.Info.ArgumentTemplate<T>
- All Implemented Interfaces:
net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<EnumDataTypeArgument<T>>
- Enclosing class:
EnumDataTypeArgument.Info<T>
public static record EnumDataTypeArgument.Info.ArgumentTemplate<T>(EnumDataTypeArgument.Info<T> info, DataType<T> dataType)
extends Record
implements net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<EnumDataTypeArgument<T>>
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentTemplate(EnumDataTypeArgument.Info<T> info, DataType<T> dataType) Creates an instance of aArgumentTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataType()Returns the value of thedataTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.instantiate(net.minecraft.commands.CommandBuildContext ctx) final StringtoString()Returns a string representation of this record class.net.minecraft.commands.synchronization.ArgumentTypeInfo<EnumDataTypeArgument<T>, ?> type()
-
Constructor Details
-
ArgumentTemplate
Creates an instance of aArgumentTemplaterecord class.- Parameters:
info- the value for theinforecord componentdataType- the value for thedataTyperecord component
-
-
Method Details
-
instantiate
- Specified by:
instantiatein interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo.Template<T>
-
type
- Specified by:
typein interfacenet.minecraft.commands.synchronization.ArgumentTypeInfo.Template<T>
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-
dataType
-