public class GlowNoteBlock extends GlowBlockState implements org.bukkit.block.NoteBlock
data, typeId
Constructor and Description |
---|
GlowNoteBlock(GlowBlock block)
Creates the instance for a note block.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.Note |
getNote() |
byte |
getRawNote() |
boolean |
play() |
boolean |
play(byte instrument,
byte note) |
boolean |
play(org.bukkit.Instrument instrument,
org.bukkit.Note note) |
void |
setNote(org.bukkit.Note note) |
void |
setRawNote(byte note) |
boolean |
update(boolean force,
boolean applyPhysics) |
equals, getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, hashCode, hasMetadata, isFlowed, isPlaced, removeMetadata, setData, setFlowed, setMetadata, setRawData, setType, setTypeId, update, update
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public GlowNoteBlock(GlowBlock block)
block
- the note blockpublic boolean update(boolean force, boolean applyPhysics)
update
in interface org.bukkit.block.BlockState
update
in class GlowBlockState
public void setNote(org.bukkit.Note note)
setNote
in interface org.bukkit.block.NoteBlock
public byte getRawNote()
getRawNote
in interface org.bukkit.block.NoteBlock
public void setRawNote(byte note)
setRawNote
in interface org.bukkit.block.NoteBlock
public boolean play()
play
in interface org.bukkit.block.NoteBlock
public boolean play(byte instrument, byte note)
play
in interface org.bukkit.block.NoteBlock
public boolean play(org.bukkit.Instrument instrument, org.bukkit.Note note)
play
in interface org.bukkit.block.NoteBlock
public org.bukkit.Note getNote()
getNote
in interface org.bukkit.block.NoteBlock
Copyright © 2021. All rights reserved.