Class BannerBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BannerBlockEntity
- All Implemented Interfaces:
Nameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
-
Field Summary
Modifier and TypeFieldDescriptionprivate DyeColor
private ListTag
static int
private Component
private List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>>
private boolean
static String
static String
static String
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
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<BannerPattern,DyeColor>>
createPatterns(DyeColor p_58485_, ListTag p_58486_)
void
getItem()
static ListTag
getItemPatterns(ItemStack p_58488_)
getName()
static int
getPatternCount(ItemStack p_58505_)
List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>>
void
load(CompoundTag p_155042_)
static void
removeLastPattern(ItemStack p_58510_)
save(CompoundTag p_58500_)
void
setCustomName(Component p_58502_)
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, setBlockState, setChanged, setChanged, setLevel, 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.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, 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:
- Constant Field Values
-
TAG_PATTERNS
- See Also:
- Constant Field Values
-
TAG_PATTERN
- See Also:
- Constant Field Values
-
TAG_COLOR
- See Also:
- Constant Field Values
-
name
-
baseColor
-
itemPatterns
-
receivedData
private boolean receivedData -
patterns
-
-
Constructor Details
-
BannerBlockEntity
-
BannerBlockEntity
-
-
Method Details
-
getItemPatterns
-
fromItem
-
getName
-
getCustomName
- Specified by:
getCustomName
in interfaceNameable
-
setCustomName
-
save
- Overrides:
save
in classBlockEntity
-
load
- Overrides:
load
in classBlockEntity
-
getUpdatePacket
- Overrides:
getUpdatePacket
in classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTag
in classBlockEntity
-
getPatternCount
-
getPatterns
-
createPatterns
public static List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> createPatterns(DyeColor p_58485_, @Nullable ListTag p_58486_) -
removeLastPattern
-
getItem
-
getBaseColor
-