IAttachmentHolder
Link to iattachmentholder
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.neoforge.api.attachment.IAttachmentHolder;
Methods
Link to methods
Name: getAttachmentData
Return Type: T
ZenScript CopyIAttachmentHolder.getAttachmentData<T : Object>(type as AttachmentType<T>) as T
Parameter | Type |
---|---|
Parameter type | Type AttachmentType<T> |
Parameter T | Type Object |
Name: getAttachmentData
Return Type: T
ZenScript CopyIAttachmentHolder.getAttachmentData<T : Object>(type as Supplier<AttachmentType<T>>) as T
Parameter | Type |
---|---|
Parameter type | Type Supplier<AttachmentType<T>> |
Parameter T | Type Object |
Name: hasAttachmentData
Return Type: boolean
ZenScript CopyIAttachmentHolder.hasAttachmentData<T : Object>(type as AttachmentType<T>) as boolean
Parameter | Type |
---|---|
Parameter type | Type AttachmentType<T> |
Parameter T | Type Object |
Name: hasAttachmentData
Return Type: boolean
ZenScript CopyIAttachmentHolder.hasAttachmentData<T : Object>(type as Supplier<AttachmentType<T>>) as boolean
Parameter | Type |
---|---|
Parameter type | Type Supplier<AttachmentType<T>> |
Parameter T | Type Object |
Name: setAttachmentData
Return Type: @org.openzen.zencode.java.ZenCodeType.Nullable T
ZenScript CopyIAttachmentHolder.setAttachmentData<T : Object>(type as AttachmentType<T>, data as T) as @org.openzen.zencode.java.ZenCodeType.Nullable T
Parameter | Type |
---|---|
Parameter type | Type AttachmentType<T> |
Parameter data | Type T |
Parameter T | Type Object |
Name: setAttachmentData
Return Type: @org.openzen.zencode.java.ZenCodeType.Nullable T
ZenScript CopyIAttachmentHolder.setAttachmentData<T : Object>(type as Supplier<AttachmentType<T>>, data as T) as @org.openzen.zencode.java.ZenCodeType.Nullable T
Parameter | Type |
---|---|
Parameter type | Type Supplier<AttachmentType<T>> |
Parameter data | Type T |
Parameter T | Type Object |