Home Commands Examples Getting Started With Scripts Global Keywords 1.21 Migration Guide
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

BeehiveBlockEntityOccupant

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.block.entity.type.BeehiveBlockEntityOccupant;

Members

static create(ticksInHive as int) as Occupant
script.zs
// Occupant.create(ticksInHive as int) as BeehiveBlockEntityOccupant;
BeehiveBlockEntityOccupant.create(myInt);

Parameters:

ticksInHive Type: int

Return Type: BeehiveBlockEntityOccupant

createEntity(level as Level, pos as BlockPos) as Entity
script.zs
// Occupant.createEntity(level as Level, pos as BlockPos) as Entity;
myOccupant.createEntity(myLevel, myBlockPos);

Parameters:

level Type: Level
pos Type: BlockPos

Return Type: Entity

Getter
script.zs
// Occupant.entityData as CustomData
myOccupant.entityData

Return Type: CustomData

Getter
script.zs
// Occupant.minTicksInHive as int
myOccupant.minTicksInHive

Return Type: int

static of(entity as Entity) as Occupant
script.zs
// Occupant.of(entity as Entity) as BeehiveBlockEntityOccupant;
BeehiveBlockEntityOccupant.of(myEntity);

Parameters:

entity Type: Entity

Return Type: BeehiveBlockEntityOccupant

Getter
script.zs
// Occupant.ticksInHive as int
myOccupant.ticksInHive

Return Type: int