public class BannerTileEntity extends TileEntity implements INameable
Modifier and Type | Field and Description |
---|---|
private DyeColor |
baseColor |
private ListNBT |
itemPatterns |
private ITextComponent |
name |
private java.util.List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> |
patterns |
private boolean |
receivedData |
level, remove, worldPosition
INFINITE_EXTENT_AABB
Constructor and Description |
---|
BannerTileEntity() |
BannerTileEntity(DyeColor p_i47731_1_) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> |
createPatterns(DyeColor p_230138_0_,
ListNBT p_230138_1_) |
void |
fromItem(ItemStack p_195534_1_,
DyeColor p_195534_2_) |
DyeColor |
getBaseColor(java.util.function.Supplier<BlockState> p_195533_1_) |
ITextComponent |
getCustomName() |
ItemStack |
getItem(BlockState p_190615_1_) |
static ListNBT |
getItemPatterns(ItemStack p_230139_0_) |
ITextComponent |
getName() |
static int |
getPatternCount(ItemStack p_175113_0_) |
java.util.List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> |
getPatterns() |
SUpdateTileEntityPacket |
getUpdatePacket() |
CompoundNBT |
getUpdateTag() |
void |
load(BlockState p_230337_1_,
CompoundNBT p_230337_2_) |
static void |
removeLastPattern(ItemStack p_175117_0_) |
CompoundNBT |
save(CompoundNBT p_189515_1_) |
void |
setCustomName(ITextComponent p_213136_1_) |
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName, hasCustomName
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability, getCapability
@Nullable private ITextComponent name
@Nullable private DyeColor baseColor
@Nullable private ListNBT itemPatterns
private boolean receivedData
@Nullable private java.util.List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> patterns
public BannerTileEntity()
public BannerTileEntity(DyeColor p_i47731_1_)
public ITextComponent getName()
@Nullable public ITextComponent getCustomName()
getCustomName
in interface INameable
public void setCustomName(ITextComponent p_213136_1_)
public CompoundNBT save(CompoundNBT p_189515_1_)
save
in class TileEntity
public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
load
in class TileEntity
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class TileEntity
public CompoundNBT getUpdateTag()
getUpdateTag
in class TileEntity
public static int getPatternCount(ItemStack p_175113_0_)
public java.util.List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> getPatterns()
public static java.util.List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> createPatterns(DyeColor p_230138_0_, @Nullable ListNBT p_230138_1_)
public static void removeLastPattern(ItemStack p_175117_0_)
public ItemStack getItem(BlockState p_190615_1_)
public DyeColor getBaseColor(java.util.function.Supplier<BlockState> p_195533_1_)