Package net.minecraft.tileentity
Class BannerTileEntity
- java.lang.Object
-
- net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
-
- net.minecraft.tileentity.TileEntity
-
- net.minecraft.tileentity.BannerTileEntity
-
- All Implemented Interfaces:
INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeTileEntity
,INBTSerializable<CompoundNBT>
public class BannerTileEntity extends TileEntity implements INameable
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class net.minecraft.tileentity.TileEntity
level, remove, worldPosition
-
Fields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB
-
-
Constructor Summary
Constructors Constructor Description BannerTileEntity()
BannerTileEntity(DyeColor p_i47731_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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_)
-
Methods inherited from class net.minecraft.tileentity.TileEntity
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
-
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Methods inherited from interface net.minecraft.util.INameable
getDisplayName, hasCustomName
-
-
-
-
Field Detail
-
name
@Nullable private ITextComponent name
-
baseColor
@Nullable private DyeColor baseColor
-
itemPatterns
@Nullable private ListNBT itemPatterns
-
receivedData
private boolean receivedData
-
patterns
@Nullable private java.util.List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> patterns
-
-
Constructor Detail
-
BannerTileEntity
public BannerTileEntity()
-
BannerTileEntity
public BannerTileEntity(DyeColor p_i47731_1_)
-
-
Method Detail
-
getName
public ITextComponent getName()
-
getCustomName
@Nullable public ITextComponent getCustomName()
- Specified by:
getCustomName
in interfaceINameable
-
setCustomName
public void setCustomName(ITextComponent p_213136_1_)
-
save
public CompoundNBT save(CompoundNBT p_189515_1_)
- Overrides:
save
in classTileEntity
-
load
public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
- Overrides:
load
in classTileEntity
-
getUpdatePacket
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
- Overrides:
getUpdatePacket
in classTileEntity
-
getUpdateTag
public CompoundNBT getUpdateTag()
- Overrides:
getUpdateTag
in classTileEntity
-
getPatternCount
public static int getPatternCount(ItemStack p_175113_0_)
-
getPatterns
public java.util.List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> getPatterns()
-
createPatterns
public static java.util.List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> createPatterns(DyeColor p_230138_0_, @Nullable ListNBT p_230138_1_)
-
removeLastPattern
public static void removeLastPattern(ItemStack p_175117_0_)
-
getItem
public ItemStack getItem(BlockState p_190615_1_)
-
getBaseColor
public DyeColor getBaseColor(java.util.function.Supplier<BlockState> p_195533_1_)
-
-