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, setContents
destroy, getBlock, pulse, setSaveId, updateInRange
public ChestEntity(GlowBlock block)
public GlowBlockState getState()
BlockEntity
getState
in class BlockEntity
public void addViewer()
public void removeViewer()
public void update(GlowPlayer player)
BlockEntity
update
in class BlockEntity
player
- The player to update.Copyright © 2021. All rights reserved.