Record Class NativeTypeInfo.Constructor
java.lang.Object
java.lang.Record
com.blamejared.crafttweaker.api.natives.NativeTypeInfo.Constructor
- Record Components:
description- The description of the constructor, acting as documentation, or empty if no description is to be provided.sinceVersion- The first version of the API this constructor was exposed in, acting as documentation, or empty if no initial version is to be provided.deprecationMessage- The message that accompanies a deprecation warning for this constructor, or empty if the constructor is not deprecated.parameters- TheNativeTypeInfo.Parameters accepted by this constructor.
- Enclosing class:
- NativeTypeInfo
public static record NativeTypeInfo.Constructor(String description, String sinceVersion, String deprecationMessage, NativeTypeInfo.Parameter[] parameters)
extends Record
Holds information relative to a specific native constructor that should be exposed to ZenCode.
- Since:
- 9.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor(NativeTypeInfo.Parameter... parameters) Creates an instance holding information relative to a native constructor that should be exposed to ZenCode.Constructor(String description, NativeTypeInfo.Parameter... parameters) Creates an instance holding information relative to a native constructor that should be exposed to ZenCode.Constructor(String description, String sinceVersion, NativeTypeInfo.Parameter... parameters) Creates an instance holding information relative to a native constructor that should be exposed to ZenCode.Constructor(String description, String sinceVersion, String deprecationMessage, NativeTypeInfo.Parameter... parameters) Creates an instance of aConstructorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeprecationMessagerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparametersrecord component.Returns the value of thesinceVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Constructor
Creates an instance holding information relative to a native constructor that should be exposed to ZenCode.The created constructor is not deprecated.
- Parameters:
description- The description of the constructor, acting as documentation, or empty if no description is to be provided.sinceVersion- The first version of the API this constructor was exposed in, acting as documentation, or empty if no initial version is to be provided.parameters- TheNativeTypeInfo.Parameters accepted by this constructor.- Since:
- 9.1.0
-
Constructor
Creates an instance holding information relative to a native constructor that should be exposed to ZenCode.The created constructor is not deprecated and no initial exposure version is provided.
- Parameters:
description- The description of the constructor, acting as documentation, or empty if no description is to be provided.parameters- TheNativeTypeInfo.Parameters accepted by this constructor.- Since:
- 9.1.0
-
Constructor
Creates an instance holding information relative to a native constructor that should be exposed to ZenCode.The created constructor is not deprecated, no initial exposure version is provided, and it has no description.
- Parameters:
parameters- TheNativeTypeInfo.Parameters accepted by this constructor.- Since:
- 9.1.0
-
Constructor
public Constructor(String description, String sinceVersion, String deprecationMessage, NativeTypeInfo.Parameter... parameters) Creates an instance of aConstructorrecord class.- Parameters:
description- the value for thedescriptionrecord componentsinceVersion- the value for thesinceVersionrecord componentdeprecationMessage- the value for thedeprecationMessagerecord componentparameters- the value for theparametersrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
sinceVersion
Returns the value of thesinceVersionrecord component.- Returns:
- the value of the
sinceVersionrecord component
-
deprecationMessage
Returns the value of thedeprecationMessagerecord component.- Returns:
- the value of the
deprecationMessagerecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-