Class BannerBlockEntity
java.lang.Object
net.neoforged.neoforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BannerBlockEntity
- All Implemented Interfaces:
Nameable
,ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,ICapabilitySerializable<CompoundTag>
,IBlockEntityExtension
,INBTSerializable<CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
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
-
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, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
Methods inherited from class net.neoforged.neoforge.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.neoforged.neoforge.common.extensions.IBlockEntityExtension
deserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
Methods inherited from interface net.neoforged.neoforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
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
-