HomeCommandsExamplesGetting Started With ScriptsGlobal Keywords
BracketDumpersBracketHandlersBracketValidatorsResourceLocationBracketHandler

HitResultType

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.util.HitResultType;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

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

script.zs
// HitResultType.BLOCK
<constant:minecraft:hitresult/type:block>
// HitResultType.ENTITY
<constant:minecraft:hitresult/type:entity>
// HitResultType.MISS
<constant:minecraft:hitresult/type:miss>