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

BeehiveBlockEntity

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.BeehiveBlockEntity;

Extends

BeehiveBlockEntity extends BlockEntity.

Implements

BeehiveBlockEntity implements the following interfaces:

IAttachmentHolder

Undocumented Interfaces

IBlockEntityExtension

Members

Getter
script.zs
// BeehiveBlockEntity.blockPos as BlockPos
myBeehiveBlockEntity.blockPos

Return Type: BlockPos

blockPos() as BlockPos
script.zs
// BeehiveBlockEntity.blockPos() as BlockPos;
myBeehiveBlockEntity.blockPos();

Return Type: BlockPos

Getter
script.zs
// BeehiveBlockEntity.blockState as BlockState
myBeehiveBlockEntity.blockState

Return Type: BlockState

blockState() as BlockState
script.zs
// BeehiveBlockEntity.blockState() as BlockState;
myBeehiveBlockEntity.blockState();

Return Type: BlockState

Getter
script.zs
// BeehiveBlockEntity.data as IData
myBeehiveBlockEntity.data

Return Type: IData

Setter
script.zs
// BeehiveBlockEntity.data = (data as IData);
myBeehiveBlockEntity.data = myIData;

Parameters:

data Type: IData
data(data as IData)
script.zs
// BeehiveBlockEntity.data(data as IData);
myBeehiveBlockEntity.data(myIData);

Parameters:

data Type: IData
getAttachmentData(type as AttachmentType<T>) as T
script.zs
// BeehiveBlockEntity.getAttachmentData<T>(type as AttachmentType<T>) as T;
myBeehiveBlockEntity.getAttachmentData<T>(myAttachmentType);

Parameters:

type Type: AttachmentType<T>

Return Type: T

getAttachmentData(type as Supplier<AttachmentType<T>>) as T
script.zs
// BeehiveBlockEntity.getAttachmentData<T>(type as Supplier<AttachmentType<T>>) as T;
myBeehiveBlockEntity.getAttachmentData<T>(mySupplier);

Parameters:

type Type: Supplier<AttachmentType<T>>

Return Type: T

hasAttachmentData(type as AttachmentType<T>) as bool
script.zs
// BeehiveBlockEntity.hasAttachmentData<T>(type as AttachmentType<T>) as bool;
myBeehiveBlockEntity.hasAttachmentData<T>(myAttachmentType);

Parameters:

type Type: AttachmentType<T>

Return Type: bool

hasAttachmentData(type as Supplier<AttachmentType<T>>) as bool
script.zs
// BeehiveBlockEntity.hasAttachmentData<T>(type as Supplier<AttachmentType<T>>) as bool;
myBeehiveBlockEntity.hasAttachmentData<T>(mySupplier);

Parameters:

type Type: Supplier<AttachmentType<T>>

Return Type: bool

Getter
script.zs
// BeehiveBlockEntity.hasLevel as bool
myBeehiveBlockEntity.hasLevel

Return Type: bool

hasLevel() as bool
script.zs
// BeehiveBlockEntity.hasLevel() as bool;
myBeehiveBlockEntity.hasLevel();

Return Type: bool

Getter
script.zs
// BeehiveBlockEntity.level as Level
myBeehiveBlockEntity.level

Return Type: Level

level() as Level
script.zs
// BeehiveBlockEntity.level() as Level;
myBeehiveBlockEntity.level();

Return Type: Level

Getter
script.zs
// BeehiveBlockEntity.registryName as ResourceLocation
myBeehiveBlockEntity.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// BeehiveBlockEntity.registryName() as ResourceLocation;
myBeehiveBlockEntity.registryName();

Return Type: ResourceLocation

setAttachmentData(type as AttachmentType<T>, data as T) as T?
script.zs
// BeehiveBlockEntity.setAttachmentData<T>(type as AttachmentType<T>, data as T) as T?;
myBeehiveBlockEntity.setAttachmentData<T>(myAttachmentType, myT);

Parameters:

type Type: AttachmentType<T>
data Type: T

Return Type: T?

setAttachmentData(type as Supplier<AttachmentType<T>>, data as T) as T?
script.zs
// BeehiveBlockEntity.setAttachmentData<T>(type as Supplier<AttachmentType<T>>, data as T) as T?;
myBeehiveBlockEntity.setAttachmentData<T>(mySupplier, myT);

Parameters:

type Type: Supplier<AttachmentType<T>>
data Type: T

Return Type: T?

updateData(data as IData)
script.zs
// BeehiveBlockEntity.updateData(data as IData);
myBeehiveBlockEntity.updateData(myIData);

Parameters:

data Type: IData