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>
-
Field Summary
Modifier and TypeFieldDescriptionprivate DyeColor
private ListNBT
private ITextComponent
private List<com.mojang.datafixers.util.Pair<BannerPattern,
DyeColor>> private boolean
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<com.mojang.datafixers.util.Pair<BannerPattern,
DyeColor>> createPatterns
(DyeColor p_230138_0_, ListNBT p_230138_1_) void
getBaseColor
(Supplier<BlockState> p_195533_1_) getItem
(BlockState p_190615_1_) static ListNBT
getItemPatterns
(ItemStack p_230139_0_) getName()
static int
getPatternCount
(ItemStack p_175113_0_) List<com.mojang.datafixers.util.Pair<BannerPattern,
DyeColor>> void
load
(BlockState p_230337_1_, CompoundNBT p_230337_2_) static void
removeLastPattern
(ItemStack p_175117_0_) 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 Details
-
name
-
baseColor
-
itemPatterns
-
receivedData
private boolean receivedData -
patterns
-
-
Constructor Details
-
BannerTileEntity
public BannerTileEntity() -
BannerTileEntity
-
-
Method Details
-
getItemPatterns
-
fromItem
-
getName
-
getCustomName
- Specified by:
getCustomName
in interfaceINameable
-
setCustomName
-
save
- Overrides:
save
in classTileEntity
-
load
- Overrides:
load
in classTileEntity
-
getUpdatePacket
- Overrides:
getUpdatePacket
in classTileEntity
-
getUpdateTag
- Overrides:
getUpdateTag
in classTileEntity
-
getPatternCount
-
getPatterns
-
createPatterns
public static List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> createPatterns(DyeColor p_230138_0_, @Nullable ListNBT p_230138_1_) -
removeLastPattern
-
getItem
-
getBaseColor
-