public class NoteblockEntity extends BlockEntity
block| Constructor and Description |
|---|
NoteblockEntity(GlowBlock block) |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.Note |
getNote() |
GlowBlockState |
getState()
Create a new BlockState which will correspond to this block entity.
|
void |
loadNbt(CompoundTag tag)
Read this BlockEntity's data from the saved tag.
|
void |
saveNbt(CompoundTag tag)
Save this BlockEntity's data to NBT.
|
void |
setNote(org.bukkit.Note note) |
destroy, getBlock, pulse, setSaveId, update, updateInRangepublic NoteblockEntity(GlowBlock block)
public void loadNbt(CompoundTag tag)
BlockEntityloadNbt in class BlockEntitytag - The tag to load from.public void saveNbt(CompoundTag tag)
BlockEntitysaveNbt in class BlockEntitytag - The tag to save to.public GlowBlockState getState()
BlockEntitygetState in class BlockEntitypublic org.bukkit.Note getNote()
public void setNote(org.bukkit.Note note)
Copyright © 2021. All rights reserved.