public class BannerEntity extends BlockEntity
block| Constructor and Description |
|---|
BannerEntity(GlowBlock block) |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.DyeColor |
getBase() |
List<org.bukkit.block.banner.Pattern> |
getPatterns() |
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 |
setBase(org.bukkit.DyeColor base) |
void |
setPatterns(List<org.bukkit.block.banner.Pattern> patterns) |
void |
update(GlowPlayer player)
Update this BlockEntity's visible state to the given player.
|
destroy, getBlock, pulse, setSaveId, updateInRangepublic BannerEntity(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 void update(GlowPlayer player)
BlockEntityupdate in class BlockEntityplayer - The player to update.public List<org.bukkit.block.banner.Pattern> getPatterns()
public void setPatterns(List<org.bukkit.block.banner.Pattern> patterns)
public org.bukkit.DyeColor getBase()
public void setBase(org.bukkit.DyeColor base)
Copyright © 2021. All rights reserved.