public class BannerBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.Banner
closed, id, ID_ALLOCATOR, lastUpdate, movable, server, timing| Constructor and Description |
|---|
BannerBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.Chunk chunk,
com.nukkitx.math.vector.Vector3i position) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPattern(org.cloudburstmc.api.util.data.BannerPattern pattern) |
int |
getBannerType() |
org.cloudburstmc.api.util.data.DyeColor |
getBase() |
org.cloudburstmc.api.util.data.BannerPattern |
getPattern(int index) |
com.google.common.collect.ImmutableList<org.cloudburstmc.api.util.data.BannerPattern> |
getPatterns() |
boolean |
isSpawnable() |
boolean |
isValid() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
removePattern(int index) |
protected void |
saveClientData(com.nukkitx.nbt.NbtMapBuilder tag)
NBT data that is specifically sent to the client
|
void |
setBannerType(int type) |
void |
setBase(org.cloudburstmc.api.util.data.DyeColor color) |
close, getBlock, getBlockState, getChunk, getChunkTag, getClientTag, getCustomName, getId, getItemTag, getLevel, getPosition, getServer, getServerTag, getTag, getType, hasCustomName, init, isClosed, isMovable, onBreak, onUpdate, saveAdditionalData, scheduleUpdate, setCustomName, setDirty, setMovable, spawnTo, spawnToAll, updateFromClient, updateNbtMappublic BannerBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type,
org.cloudburstmc.api.level.chunk.Chunk chunk,
com.nukkitx.math.vector.Vector3i position)
public boolean isValid()
isValid in interface org.cloudburstmc.api.blockentity.BlockEntityisValid in class BaseBlockEntitypublic void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class BaseBlockEntityprotected void saveClientData(com.nukkitx.nbt.NbtMapBuilder tag)
BaseBlockEntitysaveClientData in class BaseBlockEntitytag - tag to write data topublic org.cloudburstmc.api.util.data.DyeColor getBase()
getBase in interface org.cloudburstmc.api.blockentity.Bannerpublic void setBase(org.cloudburstmc.api.util.data.DyeColor color)
setBase in interface org.cloudburstmc.api.blockentity.Bannerpublic int getBannerType()
getBannerType in interface org.cloudburstmc.api.blockentity.Bannerpublic void setBannerType(int type)
setBannerType in interface org.cloudburstmc.api.blockentity.Bannerpublic void addPattern(org.cloudburstmc.api.util.data.BannerPattern pattern)
addPattern in interface org.cloudburstmc.api.blockentity.Bannerpublic org.cloudburstmc.api.util.data.BannerPattern getPattern(int index)
getPattern in interface org.cloudburstmc.api.blockentity.Bannerpublic com.google.common.collect.ImmutableList<org.cloudburstmc.api.util.data.BannerPattern> getPatterns()
getPatterns in interface org.cloudburstmc.api.blockentity.Bannerpublic void removePattern(int index)
removePattern in interface org.cloudburstmc.api.blockentity.Bannerpublic boolean isSpawnable()
isSpawnable in interface org.cloudburstmc.api.blockentity.BlockEntityisSpawnable in class BaseBlockEntityCopyright © 2021. All rights reserved.