Record Class CommandArgumentAdapter.TypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>>
java.lang.Object
java.lang.Record
net.darkhax.bookshelf.common.impl.registry.adapter.CommandArgumentAdapter.TypeInfo<A>
- Enclosing class:
CommandArgumentAdapter
public static record CommandArgumentAdapter.TypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>>(Class<? extends com.mojang.brigadier.arguments.ArgumentType<?>> argType, net.minecraft.commands.synchronization.ArgumentTypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>, ?> typeIfo)
extends Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends com.mojang.brigadier.arguments.ArgumentType<?>> argType()Returns the value of theargTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.net.minecraft.commands.synchronization.ArgumentTypeInfo<A, ?> typeIfo()Returns the value of thetypeIforecord component.
-
Constructor Details
-
TypeInfo
public TypeInfo(Class<? extends com.mojang.brigadier.arguments.ArgumentType<?>> argType, net.minecraft.commands.synchronization.ArgumentTypeInfo<A, ?> typeIfo) Creates an instance of aTypeInforecord class.- Parameters:
argType- the value for theargTyperecord componenttypeIfo- the value for thetypeIforecord component
-
-
Method Details
-
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). -
argType
Returns the value of theargTyperecord component.- Returns:
- the value of the
argTyperecord component
-
typeIfo
Returns the value of thetypeIforecord component.- Returns:
- the value of the
typeIforecord component
-