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
- Mappings:
Namespace Name official cfi
intermediary net/minecraft/class_2573
named net/minecraft/block/entity/BannerBlockEntity
-
Field Summary
Fields Modifier and Type Field Description private DyeColor
baseColor
private Text
customName
private ListTag
patternListTag
private boolean
patternListTagRead
private List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>>
patterns
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors Constructor Description BannerBlockEntity(BlockPos pos, BlockState state)
BannerBlockEntity(BlockPos pos, BlockState state, DyeColor baseColor)
-
Method Summary
Modifier and Type Method Description void
fromTag(CompoundTag tag)
DyeColor
getColorForState()
Text
getCustomName()
Text
getName()
static int
getPatternCount(ItemStack stack)
static ListTag
getPatternListTag(ItemStack stack)
List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>>
getPatterns()
static List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>>
getPatternsFromTag(DyeColor baseColor, ListTag patternListTag)
ItemStack
getPickStack()
static void
loadFromItemStack(ItemStack stack)
void
readFrom(ItemStack stack, DyeColor baseColor)
void
setCustomName(Text customName)
CompoundTag
toInitialChunkDataTag()
CompoundTag
toTag(CompoundTag tag)
BlockEntityUpdateS2CPacket
toUpdatePacket()
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, setWorld
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.util.Nameable
getDisplayName, hasCustomName
-
Field Details
-
customName
- Mappings:
Namespace Name Mixin selector official a
Lcfi;a:Loi;
intermediary field_11772
Lnet/minecraft/class_2573;field_11772:Lnet/minecraft/class_2561;
named customName
Lnet/minecraft/block/entity/BannerBlockEntity;customName:Lnet/minecraft/text/Text;
-
baseColor
- Mappings:
Namespace Name Mixin selector official b
Lcfi;b:Lbms;
intermediary field_11774
Lnet/minecraft/class_2573;field_11774:Lnet/minecraft/class_1767;
named baseColor
Lnet/minecraft/block/entity/BannerBlockEntity;baseColor:Lnet/minecraft/util/DyeColor;
-
patternListTag
- Mappings:
Namespace Name Mixin selector official c
Lcfi;c:Lmw;
intermediary field_11773
Lnet/minecraft/class_2573;field_11773:Lnet/minecraft/class_2499;
named patternListTag
Lnet/minecraft/block/entity/BannerBlockEntity;patternListTag:Lnet/minecraft/nbt/ListTag;
-
patternListTagRead
private boolean patternListTagRead- Mappings:
Namespace Name Mixin selector official g
Lcfi;g:Z
intermediary field_11770
Lnet/minecraft/class_2573;field_11770:Z
named patternListTagRead
Lnet/minecraft/block/entity/BannerBlockEntity;patternListTagRead:Z
-
patterns
- Mappings:
Namespace Name Mixin selector official h
Lcfi;h:Ljava/util/List;
intermediary field_11769
Lnet/minecraft/class_2573;field_11769:Ljava/util/List;
named patterns
Lnet/minecraft/block/entity/BannerBlockEntity;patterns:Ljava/util/List;
-
-
Constructor Details
-
BannerBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lcfi;<init>(Lfx;Lcht;)V
intermediary <init>
Lnet/minecraft/class_2573;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/BannerBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
BannerBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lcfi;<init>(Lfx;Lcht;Lbms;)V
intermediary <init>
Lnet/minecraft/class_2573;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1767;)V
named <init>
Lnet/minecraft/block/entity/BannerBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/DyeColor;)V
-
-
Method Details
-
getPatternListTag
- Mappings:
Namespace Name Mixin selector official a
Lcfi;a(Lbnv;)Lmw;
intermediary method_24281
Lnet/minecraft/class_2573;method_24281(Lnet/minecraft/class_1799;)Lnet/minecraft/class_2499;
named getPatternListTag
Lnet/minecraft/block/entity/BannerBlockEntity;getPatternListTag(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/nbt/ListTag;
-
readFrom
- Mappings:
Namespace Name Mixin selector official a
Lcfi;a(Lbnv;Lbms;)V
intermediary method_10913
Lnet/minecraft/class_2573;method_10913(Lnet/minecraft/class_1799;Lnet/minecraft/class_1767;)V
named readFrom
Lnet/minecraft/block/entity/BannerBlockEntity;readFrom(Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/DyeColor;)V
-
getName
-
getCustomName
- Specified by:
getCustomName
in interfaceNameable
- Mappings:
Namespace Name Mixin selector official T
Lapu;T()Loi;
intermediary method_5797
Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;
named getCustomName
Lnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;
-
setCustomName
- Mappings:
Namespace Name Mixin selector official a
Lcfi;a(Loi;)V
intermediary method_16842
Lnet/minecraft/class_2573;method_16842(Lnet/minecraft/class_2561;)V
named setCustomName
Lnet/minecraft/block/entity/BannerBlockEntity;setCustomName(Lnet/minecraft/text/Text;)V
-
toTag
- Overrides:
toTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b(Lmq;)Lmq;
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named toTag
Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
fromTag
- Overrides:
fromTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a(Lmq;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named fromTag
Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toUpdatePacket
- Overrides:
toUpdatePacket
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a()Lpo;
intermediary method_16886
Lnet/minecraft/class_2586;method_16886()Lnet/minecraft/class_2622;
named toUpdatePacket
Lnet/minecraft/block/entity/BlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b()Lmq;
intermediary method_16887
Lnet/minecraft/class_2586;method_16887()Lnet/minecraft/class_2487;
named toInitialChunkDataTag
Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataTag()Lnet/minecraft/nbt/CompoundTag;
-
getPatternCount
- Mappings:
Namespace Name Mixin selector official b
Lcfi;b(Lbnv;)I
intermediary method_10910
Lnet/minecraft/class_2573;method_10910(Lnet/minecraft/class_1799;)I
named getPatternCount
Lnet/minecraft/block/entity/BannerBlockEntity;getPatternCount(Lnet/minecraft/item/ItemStack;)I
-
getPatterns
@Environment(CLIENT) public List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> getPatterns()- Mappings:
Namespace Name Mixin selector official c
Lcfi;c()Ljava/util/List;
intermediary method_10911
Lnet/minecraft/class_2573;method_10911()Ljava/util/List;
named getPatterns
Lnet/minecraft/block/entity/BannerBlockEntity;getPatterns()Ljava/util/List;
-
getPatternsFromTag
@Environment(CLIENT) public static List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> getPatternsFromTag(DyeColor baseColor, @Nullable ListTag patternListTag)- Mappings:
Namespace Name Mixin selector official a
Lcfi;a(Lbms;Lmw;)Ljava/util/List;
intermediary method_24280
Lnet/minecraft/class_2573;method_24280(Lnet/minecraft/class_1767;Lnet/minecraft/class_2499;)Ljava/util/List;
named getPatternsFromTag
Lnet/minecraft/block/entity/BannerBlockEntity;getPatternsFromTag(Lnet/minecraft/util/DyeColor;Lnet/minecraft/nbt/ListTag;)Ljava/util/List;
-
loadFromItemStack
- Mappings:
Namespace Name Mixin selector official c
Lcfi;c(Lbnv;)V
intermediary method_10905
Lnet/minecraft/class_2573;method_10905(Lnet/minecraft/class_1799;)V
named loadFromItemStack
Lnet/minecraft/block/entity/BannerBlockEntity;loadFromItemStack(Lnet/minecraft/item/ItemStack;)V
-
getPickStack
- Mappings:
Namespace Name Mixin selector official f
Lcfi;f()Lbnv;
intermediary method_10907
Lnet/minecraft/class_2573;method_10907()Lnet/minecraft/class_1799;
named getPickStack
Lnet/minecraft/block/entity/BannerBlockEntity;getPickStack()Lnet/minecraft/item/ItemStack;
-
getColorForState
- Mappings:
Namespace Name Mixin selector official g
Lcfi;g()Lbms;
intermediary method_10908
Lnet/minecraft/class_2573;method_10908()Lnet/minecraft/class_1767;
named getColorForState
Lnet/minecraft/block/entity/BannerBlockEntity;getColorForState()Lnet/minecraft/util/DyeColor;
-