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
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.DyeColor
getBase()
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.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) Set a copy of the list as the banner patterns.void
update
(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:BlockEntity
Read this BlockEntity's data from the saved tag.- Overrides:
loadNbt
in classBlockEntity
- Parameters:
tag
- The tag to load from.
-
saveNbt
Description copied from class:BlockEntity
Save this BlockEntity's data to NBT.- Overrides:
saveNbt
in classBlockEntity
- Parameters:
tag
- The tag to save to.
-
getState
Description copied from class:BlockEntity
Create a new BlockState which will correspond to this block entity.- Overrides:
getState
in classBlockEntity
- Returns:
- A GlowBlockState, or null to use a standard BlockState.
-
update
Description copied from class:BlockEntity
Update this BlockEntity's visible state to the given player.- Overrides:
update
in classBlockEntity
- Parameters:
player
- The player to update.
-
getPatterns
Returns a copy of the list of patterns.- Returns:
- a
List
containing the bannerPattern
s.
-
setPatterns
Set a copy of the list as the banner patterns.- Parameters:
patterns
- aList
containing the newPattern
s.
-
getBase
public org.bukkit.DyeColor getBase() -
setBase
public void setBase(org.bukkit.DyeColor base)
-