FrameType

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.api.advancement.FrameType;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

FrameType is an enum with 3 constants. They are accessible like so:

script.zs
// FrameType.CHALLENGE
<constant:minecraft:advancement/frametype:challenge>
// FrameType.GOAL
<constant:minecraft:advancement/frametype:goal>
// FrameType.TASK
<constant:minecraft:advancement/frametype:task>

Members

Getter
script.zs
// FrameType.chatColor as ChatFormatting
<constant:minecraft:advancement/frametype:challenge>.chatColor

Return Type: ChatFormatting

chatColor() as ChatFormatting
script.zs
// FrameType.chatColor() as ChatFormatting;
<constant:minecraft:advancement/frametype:challenge>.chatColor();

Return Type: ChatFormatting

Getter
script.zs
// FrameType.displayName as Component
<constant:minecraft:advancement/frametype:challenge>.displayName

Return Type: Component

displayName() as Component
script.zs
// FrameType.displayName() as Component;
<constant:minecraft:advancement/frametype:challenge>.displayName();

Return Type: Component

Getter
script.zs
// FrameType.name as string
<constant:minecraft:advancement/frametype:challenge>.name

Return Type: string

name() as string
script.zs
// FrameType.name() as string;
<constant:minecraft:advancement/frametype:challenge>.name();

Return Type: string

Getter
script.zs
// FrameType.texture as int
<constant:minecraft:advancement/frametype:challenge>.texture

Return Type: int

texture() as int
script.zs
// FrameType.texture() as int;
<constant:minecraft:advancement/frametype:challenge>.texture();

Return Type: int