Importare la Classe

Link to importare-la-classe

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;

Name: getBlockPos

Return Type: BlockPos

ZenScript
Copy
// BlockEntity.getBlockPos() as BlockPos

myBlockEntity.getBlockPos();

Name: getBlockState

Return Type: BlockState

ZenScript
Copy
// BlockEntity.getBlockState() as BlockState

myBlockEntity.getBlockState();

Name: getLevel

Return Type: Level

ZenScript
Copy
// BlockEntity.getLevel() as Level

myBlockEntity.getLevel();

Name: hasLevel

Return Type: boolean

ZenScript
Copy
// BlockEntity.hasLevel() as boolean

myBlockEntity.hasLevel();

Name: updateData

Return Type: void

ZenScript
Copy
BlockEntity.updateData(data as MapData) as void
ParametroTipoDescrizione
Parametro
data
Tipo
MapData
Descrizione
No Description Provided
NomeTipoHa GetterHa SetterDescrizione
Nome
blockPos
Tipo
BlockPos
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
blockState
Tipo
BlockState
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
data
Tipo
MapData
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
hasLevel
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
level
Tipo
Level
Ha Getter
Ha Setter
no
Descrizione
No Description Provided