net.minecraft.world.level.block.entity

public class BannerBlockEntity

extends BlockEntity implements Nameable

All mapped superinterfaces:

Nameable

csy
net.minecraft.world.level.block.entity.BannerBlockEntity
net.minecraft.class_2573
net.minecraft.block.entity.BannerBlockEntity
net.minecraft.src.C_1976_
net.minecraft.world.level.block.entity.TileEntityBanner

Field summary

Modifier and TypeField
public static final int
a
MAX_PATTERNS
field_31296
field_31296
f_155030_
public static final String
b
TAG_PATTERNS
field_31297
PATTERNS_KEY
f_155031_
public static final String
c
TAG_PATTERN
field_31298
PATTERN_KEY
f_155032_
public static final String
d
TAG_COLOR
field_31299
COLOR_KEY
f_155033_
private Component
e
name
field_11772
customName
f_58473_
private DyeColor
f
baseColor
field_11774
baseColor
f_58474_
private ListTag
g
itemPatterns
field_11773
patternListNbt
f_58475_
private List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>, DyeColor>>
h
patterns
field_11769
patterns
f_58477_

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)
public (BlockPos pos, BlockState state, DyeColor baseColor)

Method summary

Modifier and TypeMethod
public static ListTag
a(cax arg0)
getItemPatterns(ItemStack arg0)
method_24281(class_1799 arg0)
getPatternListNbt(ItemStack stack)
m_58487_(C_1391_ p_58488_)
public void
a(cax arg0, bzq arg1)
fromItem(ItemStack arg0, DyeColor arg1)
method_10913(class_1799 arg0, class_1767 arg1)
readFrom(ItemStack stack, DyeColor baseColor)
m_58489_(C_1391_ p_58491_, C_1353_ arg1)
public void
b(cax arg0)
fromItem(ItemStack arg0)
method_38992(class_1799 arg0)
readFrom(ItemStack stack)
m_187453_(C_1391_ arg0)
public Component
X()
getName()
method_5477()
getName()
m_7755_()
public Component
Z()
getCustomName()
method_5797()
getCustomName()
m_7770_()
public void
a(rq arg0)
setCustomName(Component arg0)
method_16842(class_2561 arg0)
setCustomName(Text customName)
m_58501_(C_4996_ arg0)
protected void
b(pj arg0)
saveAdditional(CompoundTag arg0)
method_11007(class_2487 arg0)
writeNbt(NbtCompound arg0)
m_183515_(C_4917_ arg0)
public void
a(pj arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
readNbt(NbtCompound arg0)
m_142466_(C_4917_ arg0)
public ClientboundBlockEntityDataPacket
a()
getUpdatePacket()
method_16886()
toUpdatePacket()
m_58483_()
public CompoundTag
aa_()
getUpdateTag()
method_16887()
toInitialChunkDataNbt()
m_5995_()
public static int
c(cax arg0)
getPatternCount(ItemStack arg0)
method_10910(class_1799 arg0)
getPatternCount(ItemStack stack)
m_58504_(C_1391_ p_58505_)
public List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>, DyeColor>>
c()
getPatterns()
method_10911()
getPatterns()
m_58508_()
public static List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>, DyeColor>>
a(bzq arg0, pp arg1)
createPatterns(DyeColor arg0, ListTag arg1)
method_24280(class_1767 arg0, class_2499 arg1)
getPatternsFromNbt(DyeColor baseColor, NbtList patternListNbt)
m_58484_(C_1353_ p_58485_, C_4930_ p_58486_)
public static void
d(cax arg0)
removeLastPattern(ItemStack arg0)
method_10905(class_1799 arg0)
loadFromItemStack(ItemStack stack)
m_58509_(C_1391_ p_58510_)
public ItemStack
f()
getItem()
method_10907()
getPickStack()
m_155043_()
public DyeColor
g()
getBaseColor()
method_10908()
getColorForState()
m_155044_()