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.

script.zs
import crafttweaker.neoforge.api.attachment.AttachmentType;

Members

Getter
Gets the attachment_type bracket handler syntax for this AttachmentType.
E.G. <attachment_type:minecraft:mana>
script.zs
// AttachmentType<T>.commandString as string
myAttachmentType.commandString

Return Type: string

commandString() as string
Gets the attachment_type bracket handler syntax for this AttachmentType.
E.G. <attachment_type:minecraft:mana>

Returns: The attachment_type bracket handler syntax for this AttachmentType.

script.zs
// AttachmentType<T>.commandString() as string;
myAttachmentType.commandString();

Return Type: string

as string
Gets the attachment_type bracket handler syntax for this AttachmentType.
E.G. <attachment_type:minecraft:mana>
script.zs
// AttachmentType<T> as string
myAttachmentType as string

Return Type: string

Getter
Gets the registry name of this AttachmentType.
script.zs
// AttachmentType<T>.registryName as ResourceLocation
myAttachmentType.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
Gets the registry name of this AttachmentType.

Returns: A ResourceLocation of the registry name of this AttachmentType.

script.zs
// AttachmentType<T>.registryName() as ResourceLocation;
myAttachmentType.registryName();

Return Type: ResourceLocation