Class BannerBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BannerBlockEntity
- All Implemented Interfaces:
Nameable
,IAttachmentHolder
,IBlockEntityExtension
,INBTSerializable<CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
-
Field Summary
Modifier and TypeFieldDescriptionprivate DyeColor
private ListTag
static final int
private Component
private List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,
DyeColor>> static final String
static final String
static final String
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
-
Constructor Summary
ConstructorDescriptionBannerBlockEntity
(BlockPos p_155035_, BlockState p_155036_) BannerBlockEntity
(BlockPos p_155038_, BlockState p_155039_, DyeColor p_155040_) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,
DyeColor>> createPatterns
(DyeColor p_58485_, ListTag p_58486_) void
void
getItem()
static ListTag
getItemPatterns
(ItemStack p_58488_) getName()
static int
getPatternCount
(ItemStack p_58505_) List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,
DyeColor>> void
load
(CompoundTag p_155042_) static void
removeLastPattern
(ItemStack p_58510_) protected void
saveAdditional
(CompoundTag p_187456_) void
setCustomName
(Component p_58502_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, removeData, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setData, setLevel, setRemoved, triggerEvent
Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
areAttachmentsCompatible, deserializeAttachments, getData, hasAttachments, hasData, serializeAttachments
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, hasData, removeData, setData
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
deserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
Methods inherited from interface net.minecraft.world.Nameable
getDisplayName, hasCustomName
-
Field Details
-
MAX_PATTERNS
public static final int MAX_PATTERNS- See Also:
-
TAG_PATTERNS
- See Also:
-
TAG_PATTERN
- See Also:
-
TAG_COLOR
- See Also:
-
name
-
baseColor
-
itemPatterns
-
patterns
-
-
Constructor Details
-
BannerBlockEntity
-
BannerBlockEntity
-
-
Method Details
-
getItemPatterns
-
fromItem
-
fromItem
-
getName
-
getCustomName
- Specified by:
getCustomName
in interfaceNameable
-
setCustomName
-
saveAdditional
- Overrides:
saveAdditional
in classBlockEntity
-
load
- Overrides:
load
in classBlockEntity
-
getUpdatePacket
- Overrides:
getUpdatePacket
in classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTag
in classBlockEntity
-
getPatternCount
-
getPatterns
-
createPatterns
-
removeLastPattern
-
getItem
-
getBaseColor
-