public class ChestEntity extends ContainerEntity
block| Constructor and Description |
|---|
ChestEntity(GlowBlock block) |
| Modifier and Type | Method and Description |
|---|---|
void |
addViewer()
Increments the count of viewing players, and plays the opening sound if this chest isn't
already open.
|
GlowBlockState |
getState()
Create a new BlockState which will correspond to this block entity.
|
void |
removeViewer()
Decrements the count of viewing players, and plays the chest closing sound if nobody else is
holding the chest open.
|
void |
update(GlowPlayer player)
Update this BlockEntity's visible state to the given player.
|
getInventory, loadNbt, saveNbt, setContentsdestroy, getBlock, pulse, setSaveId, updateInRangepublic ChestEntity(GlowBlock block)
public GlowBlockState getState()
BlockEntitygetState in class BlockEntitypublic void addViewer()
public void removeViewer()
public void update(GlowPlayer player)
BlockEntityupdate in class BlockEntityplayer - The player to update.Copyright © 2021. All rights reserved.