Package net.minecraft.block.entity
Class BannerBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.BannerBlockEntity
- All Implemented Interfaces:
Nameable
public class BannerBlockEntity extends BlockEntity implements Nameable
-
Field Summary
Fields Modifier and Type Field Description private DyeColorbaseColorprivate TextcustomNameprivate ListTagpatternListTagprivate booleanpatternListTagReadprivate List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>>patternsFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description BannerBlockEntity(BlockPos blockPos, BlockState blockState)BannerBlockEntity(BlockPos blockPos, BlockState blockState, DyeColor dyeColor) -
Method Summary
Modifier and Type Method Description voidfromTag(CompoundTag tag)DyeColorgetColorForState()TextgetCustomName()TextgetName()static intgetPatternCount(ItemStack stack)static ListTaggetPatternListTag(ItemStack stack)List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>>getPatterns()ItemStackgetPickStack()static voidloadFromItemStack(ItemStack stack)static List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>>method_24280(DyeColor dyeColor, ListTag listTag)voidreadFrom(ItemStack stack, DyeColor baseColor)voidsetCustomName(Text customName)CompoundTagtoInitialChunkDataTag()CompoundTagtoTag(CompoundTag tag)BlockEntityUpdateS2CPackettoUpdatePacket()Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.Nameable
getDisplayName, hasCustomName
-
Field Details
-
customName
-
baseColor
-
patternListTag
-
patternListTagRead
private boolean patternListTagRead -
patterns
-
-
Constructor Details
-
BannerBlockEntity
-
BannerBlockEntity
-
-
Method Details
-
getPatternListTag
-
readFrom
-
getName
-
getCustomName
- Specified by:
getCustomNamein interfaceNameable
-
setCustomName
-
toTag
- Overrides:
toTagin classBlockEntity
-
fromTag
- Overrides:
fromTagin classBlockEntity
-
toUpdatePacket
- Overrides:
toUpdatePacketin classBlockEntity
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTagin classBlockEntity
-
getPatternCount
-
getPatterns
@Environment(CLIENT) public List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> getPatterns() -
method_24280
-
loadFromItemStack
-
getPickStack
-
getColorForState
-