Package net.glowstone.block.entity
Class BannerEntity
java.lang.Object
net.glowstone.block.entity.BlockEntity
net.glowstone.block.entity.BannerEntity
-
Field Summary
Fields inherited from class net.glowstone.block.entity.BlockEntity
block -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.DyeColorgetBase()List<org.bukkit.block.banner.Pattern>Returns a copy of the list of patterns.getState()Create a new BlockState which will correspond to this block entity.voidloadNbt(CompoundTag tag) Read this BlockEntity's data from the saved tag.voidsaveNbt(CompoundTag tag) Save this BlockEntity's data to NBT.voidsetBase(org.bukkit.DyeColor base) voidsetPatterns(List<org.bukkit.block.banner.Pattern> patterns) Set a copy of the list as the banner patterns.voidupdate(GlowPlayer player) Update this BlockEntity's visible state to the given player.Methods inherited from class net.glowstone.block.entity.BlockEntity
destroy, getBlock, pulse, setSaveId, updateInRange
-
Constructor Details
-
BannerEntity
-
-
Method Details
-
loadNbt
Description copied from class:BlockEntityRead this BlockEntity's data from the saved tag.- Overrides:
loadNbtin classBlockEntity- Parameters:
tag- The tag to load from.
-
saveNbt
Description copied from class:BlockEntitySave this BlockEntity's data to NBT.- Overrides:
saveNbtin classBlockEntity- Parameters:
tag- The tag to save to.
-
getState
Description copied from class:BlockEntityCreate a new BlockState which will correspond to this block entity.- Overrides:
getStatein classBlockEntity- Returns:
- A GlowBlockState, or null to use a standard BlockState.
-
update
Description copied from class:BlockEntityUpdate this BlockEntity's visible state to the given player.- Overrides:
updatein classBlockEntity- Parameters:
player- The player to update.
-
getPatterns
Returns a copy of the list of patterns.- Returns:
- a
Listcontaining the bannerPatterns.
-
setPatterns
Set a copy of the list as the banner patterns.- Parameters:
patterns- aListcontaining the newPatterns.
-
getBase
public org.bukkit.DyeColor getBase() -
setBase
public void setBase(org.bukkit.DyeColor base)
-