AttachmentType
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.neoforge.api.attachment.AttachmentType;
Members
Getter
Gets the attachment_type bracket handler syntax for this AttachmentType.
E.G.script.zs
E.G.
<attachment_type:minecraft:mana>
// AttachmentType<T>.commandString as stringmyAttachmentType.commandString
Return Type:
string
commandString() as string
Gets the attachment_type bracket handler syntax for this AttachmentType.
E.G.script.zs
E.G.
<attachment_type:minecraft:mana>
Returns: The attachment_type bracket handler syntax for this AttachmentType.
// AttachmentType<T>.commandString() as string;myAttachmentType.commandString();
Return Type:
string
as string
Gets the attachment_type bracket handler syntax for this AttachmentType.
E.G.script.zs
E.G.
<attachment_type:minecraft:mana>
// AttachmentType<T> as stringmyAttachmentType as string
Return Type:
string
Getter
Gets the registry name of this AttachmentType.script.zs
// AttachmentType<T>.registryName as ResourceLocationmyAttachmentType.registryName
Return Type:
ResourceLocation
registryName() as ResourceLocation
Gets the registry name of this AttachmentType.script.zs
Returns: A ResourceLocation of the registry name of this AttachmentType.
myAttachmentType.registryName();
Return Type:
ResourceLocation