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
Copy
import crafttweaker.api.block.entity.BlockEntity;

Link to g-

Name: getBlockPos

Return Type: BlockPos

ZenScript
Copy
// BlockEntity.getBlockPos() as BlockPos

myBlockEntity.getBlockPos();

Link to g--1

Name: getBlockState

Return Type: BlockState

ZenScript
Copy
// BlockEntity.getBlockState() as BlockState

myBlockEntity.getBlockState();

Link to g--2

Name: getLevel

Return Type: Level

ZenScript
Copy
// BlockEntity.getLevel() as Level

myBlockEntity.getLevel();

Link to g--3

Name: hasLevel

Return Type: boolean

ZenScript
Copy
// BlockEntity.hasLevel() as boolean

myBlockEntity.hasLevel();

Link to g--4

Name: updateData

Return Type: void

ZenScript
Copy
BlockEntity.updateData(data as MapData) as void
ParameterTypeDescription
Parameter
data
Type
MapData
Description
No Description Provided
NombreTypeHas GetterHas SetterDescription
Nombre
blockPos
Type
BlockPos
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
blockState
Type
BlockState
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
data
Type
MapData
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
hasLevel
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Nombre
level
Type
Level
Has Getter
true
Has Setter
false
Description
No Description Provided