NativeTileEntity
Index
Methods
getCompoundTag
- since: 2.0.5b44
Returns CompoundTag
CompoundTag associated with specified native tile entity.
getSize
Returns number
Slots count for the specified NativeTileEntity.
getSlot
Parameters
slot: number
slot number
Returns ItemInstance
Item instance in the specified slot of item TE.
getType
Returns number
NativeTileEntity type constant, one of the ETileEntityType constants.
setCompoundTag
- since: 2.0.5b44
Sets compound tag for the specified tile entity.
Parameters
tag: CompoundTag
Returns void
setSlot
Sets the contents of a native tile entity's slot.
Parameters
slot: number
slot number
id: number
item ID
count: number
item count
data: number
item data
optionalextra: ItemExtraData
item extra data
Returns void
tick
- since: 3.1.0b125
Causes a tick event on requested tile, can be used to speed it up.
Parameters
region: BlockSource
Returns void
Interface providing access to native tile entities such as chests, hoppers, furnaces, smelters, etc. See full list of supported native tile entities in the ETileEntityType enum.