类 ItemFrameEntity

    • 字段详细资料

      • ITEM_FRAME_LOGGER

        private static final Logger ITEM_FRAME_LOGGER
        Mappings:
        Namespace Name Mixin selector
        official f Lbfy;f:Lorg/apache/logging/log4j/Logger;
        intermediary field_7131 Lnet/minecraft/class_1533;field_7131:Lorg/apache/logging/log4j/Logger;
        named ITEM_FRAME_LOGGER Lnet/minecraft/entity/decoration/ItemFrameEntity;ITEM_FRAME_LOGGER:Lorg/apache/logging/log4j/Logger;
      • ITEM_STACK

        private static final TrackedData<ItemStack> ITEM_STACK
        Mappings:
        Namespace Name Mixin selector
        official ar Lbfy;ar:Lvy;
        intermediary field_7130 Lnet/minecraft/class_1533;field_7130:Lnet/minecraft/class_2940;
        named ITEM_STACK Lnet/minecraft/entity/decoration/ItemFrameEntity;ITEM_STACK:Lnet/minecraft/entity/data/TrackedData;
      • ROTATION

        private static final TrackedData<Integer> ROTATION
        Mappings:
        Namespace Name Mixin selector
        official as Lbfy;as:Lvy;
        intermediary field_7132 Lnet/minecraft/class_1533;field_7132:Lnet/minecraft/class_2940;
        named ROTATION Lnet/minecraft/entity/decoration/ItemFrameEntity;ROTATION:Lnet/minecraft/entity/data/TrackedData;
      • field_30454

        public static final int field_30454
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official e Lbfy;e:I
        intermediary field_30454 Lnet/minecraft/class_1533;field_30454:I
        named field_30454 Lnet/minecraft/entity/decoration/ItemFrameEntity;field_30454:I
      • itemDropChance

        private float itemDropChance
        Mappings:
        Namespace Name Mixin selector
        official at Lbfy;at:F
        intermediary field_7129 Lnet/minecraft/class_1533;field_7129:F
        named itemDropChance Lnet/minecraft/entity/decoration/ItemFrameEntity;itemDropChance:F
      • fixed

        private boolean fixed
        Mappings:
        Namespace Name Mixin selector
        official au Lbfy;au:Z
        intermediary field_22476 Lnet/minecraft/class_1533;field_22476:Z
        named fixed Lnet/minecraft/entity/decoration/ItemFrameEntity;fixed:Z
    • 构造器详细资料

      • ItemFrameEntity

        public ItemFrameEntity​(EntityType<? extends ItemFrameEntity> type,
                               World world)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lasl;<init>(Lasp;Lbvr;)V
        intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
        named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      • ItemFrameEntity

        public ItemFrameEntity​(World world,
                               BlockPos pos,
                               Direction facing)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbfy;<init>(Lbvr;Lgb;Lgg;)V
        intermediary <init> Lnet/minecraft/class_1533;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)V
        named <init> Lnet/minecraft/entity/decoration/ItemFrameEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V
      • ItemFrameEntity

        public ItemFrameEntity​(EntityType<? extends ItemFrameEntity> type,
                               World world,
                               BlockPos pos,
                               Direction facing)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbfy;<init>(Lasp;Lbvr;Lgb;Lgg;)V
        intermediary <init> Lnet/minecraft/class_1533;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)V
        named <init> Lnet/minecraft/entity/decoration/ItemFrameEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V
    • 方法详细资料

      • getEyeHeight

        protected float getEyeHeight​(EntityPose pose,
                                     EntityDimensions dimensions)
        覆盖:
        getEyeHeight 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Latj;Lasm;)F
        intermediary method_18378 Lnet/minecraft/class_1297;method_18378(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F
        named getEyeHeight Lnet/minecraft/entity/Entity;getEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
      • initDataTracker

        protected void initDataTracker()
        覆盖:
        initDataTracker 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official e Lasl;e()V
        intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
        named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
      • setFacing

        protected void setFacing​(Direction facing)
        覆盖:
        setFacing 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lbfx;a(Lgg;)V
        intermediary method_6892 Lnet/minecraft/class_1530;method_6892(Lnet/minecraft/class_2350;)V
        named setFacing Lnet/minecraft/entity/decoration/AbstractDecorationEntity;setFacing(Lnet/minecraft/util/math/Direction;)V
      • updateAttachmentPosition

        protected void updateAttachmentPosition()
        覆盖:
        updateAttachmentPosition 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official o Lbfx;o()V
        intermediary method_6895 Lnet/minecraft/class_1530;method_6895()V
        named updateAttachmentPosition Lnet/minecraft/entity/decoration/AbstractDecorationEntity;updateAttachmentPosition()V
      • canStayAttached

        public boolean canStayAttached()
        覆盖:
        canStayAttached 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official p Lbfx;p()Z
        intermediary method_6888 Lnet/minecraft/class_1530;method_6888()Z
        named canStayAttached Lnet/minecraft/entity/decoration/AbstractDecorationEntity;canStayAttached()Z
      • move

        public void move​(MovementType movementType,
                         Vec3d movement)
        覆盖:
        move 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Latd;Ldma;)V
        intermediary method_5784 Lnet/minecraft/class_1297;method_5784(Lnet/minecraft/class_1313;Lnet/minecraft/class_243;)V
        named move Lnet/minecraft/entity/Entity;move(Lnet/minecraft/entity/MovementType;Lnet/minecraft/util/math/Vec3d;)V
      • addVelocity

        public void addVelocity​(double deltaX,
                                double deltaY,
                                double deltaZ)
        覆盖:
        addVelocity 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official i Lasl;i(DDD)V
        intermediary method_5762 Lnet/minecraft/class_1297;method_5762(DDD)V
        named addVelocity Lnet/minecraft/entity/Entity;addVelocity(DDD)V
      • getTargetingMargin

        public float getTargetingMargin()
        覆盖:
        getTargetingMargin 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official bm Lasl;bm()F
        intermediary method_5871 Lnet/minecraft/class_1297;method_5871()F
        named getTargetingMargin Lnet/minecraft/entity/Entity;getTargetingMargin()F
      • kill

        public void kill()
        覆盖:
        kill 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official aa Lasl;aa()V
        intermediary method_5768 Lnet/minecraft/class_1297;method_5768()V
        named kill Lnet/minecraft/entity/Entity;kill()V
      • damage

        public boolean damage​(DamageSource source,
                              float amount)
        覆盖:
        damage 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Larv;F)Z
        intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
        named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
      • getRemoveItemSound

        public SoundEvent getRemoveItemSound()
        Mappings:
        Namespace Name Mixin selector
        official g Lbfy;g()Laev;
        intermediary method_34240 Lnet/minecraft/class_1533;method_34240()Lnet/minecraft/class_3414;
        named getRemoveItemSound Lnet/minecraft/entity/decoration/ItemFrameEntity;getRemoveItemSound()Lnet/minecraft/sound/SoundEvent;
      • getWidthPixels

        public int getWidthPixels()
        指定者:
        getWidthPixels 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official q Lbfx;q()I
        intermediary method_6897 Lnet/minecraft/class_1530;method_6897()I
        named getWidthPixels Lnet/minecraft/entity/decoration/AbstractDecorationEntity;getWidthPixels()I
      • getHeightPixels

        public int getHeightPixels()
        指定者:
        getHeightPixels 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official r Lbfx;r()I
        intermediary method_6891 Lnet/minecraft/class_1530;method_6891()I
        named getHeightPixels Lnet/minecraft/entity/decoration/AbstractDecorationEntity;getHeightPixels()I
      • shouldRender

        public boolean shouldRender​(double distance)
        覆盖:
        shouldRender 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(D)Z
        intermediary method_5640 Lnet/minecraft/class_1297;method_5640(D)Z
        named shouldRender Lnet/minecraft/entity/Entity;shouldRender(D)Z
      • onBreak

        public void onBreak​(@Nullable
                            @Nullable Entity entity)
        指定者:
        onBreak 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lbfx;a(Lasl;)V
        intermediary method_6889 Lnet/minecraft/class_1530;method_6889(Lnet/minecraft/class_1297;)V
        named onBreak Lnet/minecraft/entity/decoration/AbstractDecorationEntity;onBreak(Lnet/minecraft/entity/Entity;)V
      • getBreakSound

        public SoundEvent getBreakSound()
        Mappings:
        Namespace Name Mixin selector
        official h Lbfy;h()Laev;
        intermediary method_34241 Lnet/minecraft/class_1533;method_34241()Lnet/minecraft/class_3414;
        named getBreakSound Lnet/minecraft/entity/decoration/ItemFrameEntity;getBreakSound()Lnet/minecraft/sound/SoundEvent;
      • onPlace

        public void onPlace()
        指定者:
        onPlace 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official s Lbfx;s()V
        intermediary method_6894 Lnet/minecraft/class_1530;method_6894()V
        named onPlace Lnet/minecraft/entity/decoration/AbstractDecorationEntity;onPlace()V
      • getPlaceSound

        public SoundEvent getPlaceSound()
        Mappings:
        Namespace Name Mixin selector
        official i Lbfy;i()Laev;
        intermediary method_34242 Lnet/minecraft/class_1533;method_34242()Lnet/minecraft/class_3414;
        named getPlaceSound Lnet/minecraft/entity/decoration/ItemFrameEntity;getPlaceSound()Lnet/minecraft/sound/SoundEvent;
      • dropHeldStack

        private void dropHeldStack​(@Nullable
                                   @Nullable Entity entity,
                                   boolean alwaysDrop)
        Mappings:
        Namespace Name Mixin selector
        official b Lbfy;b(Lasl;Z)V
        intermediary method_6936 Lnet/minecraft/class_1533;method_6936(Lnet/minecraft/class_1297;Z)V
        named dropHeldStack Lnet/minecraft/entity/decoration/ItemFrameEntity;dropHeldStack(Lnet/minecraft/entity/Entity;Z)V
      • removeFromFrame

        private void removeFromFrame​(ItemStack map)
        Mappings:
        Namespace Name Mixin selector
        official c Lbfy;c(Lbpr;)V
        intermediary method_6937 Lnet/minecraft/class_1533;method_6937(Lnet/minecraft/class_1799;)V
        named removeFromFrame Lnet/minecraft/entity/decoration/ItemFrameEntity;removeFromFrame(Lnet/minecraft/item/ItemStack;)V
      • getHeldItemStack

        public ItemStack getHeldItemStack()
        Mappings:
        Namespace Name Mixin selector
        official v Lbfy;v()Lbpr;
        intermediary method_6940 Lnet/minecraft/class_1533;method_6940()Lnet/minecraft/class_1799;
        named getHeldItemStack Lnet/minecraft/entity/decoration/ItemFrameEntity;getHeldItemStack()Lnet/minecraft/item/ItemStack;
      • setHeldItemStack

        public void setHeldItemStack​(ItemStack stack)
        Mappings:
        Namespace Name Mixin selector
        official b Lbfy;b(Lbpr;)V
        intermediary method_6935 Lnet/minecraft/class_1533;method_6935(Lnet/minecraft/class_1799;)V
        named setHeldItemStack Lnet/minecraft/entity/decoration/ItemFrameEntity;setHeldItemStack(Lnet/minecraft/item/ItemStack;)V
      • setHeldItemStack

        public void setHeldItemStack​(ItemStack value,
                                     boolean update)
        Mappings:
        Namespace Name Mixin selector
        official a Lbfy;a(Lbpr;Z)V
        intermediary method_6933 Lnet/minecraft/class_1533;method_6933(Lnet/minecraft/class_1799;Z)V
        named setHeldItemStack Lnet/minecraft/entity/decoration/ItemFrameEntity;setHeldItemStack(Lnet/minecraft/item/ItemStack;Z)V
      • getAddItemSound

        public SoundEvent getAddItemSound()
        Mappings:
        Namespace Name Mixin selector
        official k Lbfy;k()Laev;
        intermediary method_34243 Lnet/minecraft/class_1533;method_34243()Lnet/minecraft/class_3414;
        named getAddItemSound Lnet/minecraft/entity/decoration/ItemFrameEntity;getAddItemSound()Lnet/minecraft/sound/SoundEvent;
      • getCommandItemSlot

        public CommandItemSlot getCommandItemSlot​(int mappedIndex)
        Obtains an item slot for command modification purpose. Used by commands like /loot or /replaceitem.
        覆盖:
        getCommandItemSlot 在类中 Entity
        参数:
        mappedIndex - the mapped index as given by the item slot argument
        另请参阅:
        ItemSlotArgumentType
        Mappings:
        Namespace Name Mixin selector
        official k Lasl;k(I)Lato;
        intermediary method_32318 Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;
        named getCommandItemSlot Lnet/minecraft/entity/Entity;getCommandItemSlot(I)Lnet/minecraft/inventory/CommandItemSlot;
      • onTrackedDataSet

        public void onTrackedDataSet​(TrackedData<?> data)
        覆盖:
        onTrackedDataSet 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Lvy;)V
        intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
        named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
      • getRotation

        public int getRotation()
        Mappings:
        Namespace Name Mixin selector
        official w Lbfy;w()I
        intermediary method_6934 Lnet/minecraft/class_1533;method_6934()I
        named getRotation Lnet/minecraft/entity/decoration/ItemFrameEntity;getRotation()I
      • setRotation

        public void setRotation​(int value)
        Mappings:
        Namespace Name Mixin selector
        official a Lbfy;a(I)V
        intermediary method_6939 Lnet/minecraft/class_1533;method_6939(I)V
        named setRotation Lnet/minecraft/entity/decoration/ItemFrameEntity;setRotation(I)V
      • setRotation

        private void setRotation​(int value,
                                 boolean updateComparators)
        Mappings:
        Namespace Name Mixin selector
        official a Lbfy;a(IZ)V
        intermediary method_6941 Lnet/minecraft/class_1533;method_6941(IZ)V
        named setRotation Lnet/minecraft/entity/decoration/ItemFrameEntity;setRotation(IZ)V
      • writeCustomDataToNbt

        public void writeCustomDataToNbt​(CompoundTag nbt)
        覆盖:
        writeCustomDataToNbt 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official b Lasl;b(Lmv;)V
        intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
        named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/CompoundTag;)V
      • readCustomDataFromNbt

        public void readCustomDataFromNbt​(CompoundTag nbt)
        覆盖:
        readCustomDataFromNbt 在类中 AbstractDecorationEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Lmv;)V
        intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
        named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/CompoundTag;)V
      • interact

        public ActionResult interact​(PlayerEntity player,
                                     Hand hand)
        Called when a player interacts with this entity.
        覆盖:
        interact 在类中 Entity
        参数:
        player - the player
        hand - the hand the player used to interact with this entity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Lbjf;Larf;)Larg;
        intermediary method_5688 Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
        named interact Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      • getRotateItemSound

        public SoundEvent getRotateItemSound()
        Mappings:
        Namespace Name Mixin selector
        official m Lbfy;m()Laev;
        intermediary method_34244 Lnet/minecraft/class_1533;method_34244()Lnet/minecraft/class_3414;
        named getRotateItemSound Lnet/minecraft/entity/decoration/ItemFrameEntity;getRotateItemSound()Lnet/minecraft/sound/SoundEvent;
      • getComparatorPower

        public int getComparatorPower()
        Mappings:
        Namespace Name Mixin selector
        official y Lbfy;y()I
        intermediary method_6938 Lnet/minecraft/class_1533;method_6938()I
        named getComparatorPower Lnet/minecraft/entity/decoration/ItemFrameEntity;getComparatorPower()I
      • createSpawnPacket

        public Packet<?> createSpawnPacket()
        指定者:
        createSpawnPacket 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official O Lasl;O()Lpf;
        intermediary method_18002 Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
        named createSpawnPacket Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
      • onSpawnPacket

        public void onSpawnPacket​(EntitySpawnS2CPacket packet)
        覆盖:
        onSpawnPacket 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Lpj;)V
        intermediary method_31471 Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
        named onSpawnPacket Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
      • getPickBlockStack

        public ItemStack getPickBlockStack()
        覆盖:
        getPickBlockStack 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official da Lasl;da()Lbpr;
        intermediary method_31480 Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
        named getPickBlockStack Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
      • getAsItemStack

        protected ItemStack getAsItemStack()
        Mappings:
        Namespace Name Mixin selector
        official n Lbfy;n()Lbpr;
        intermediary method_33340 Lnet/minecraft/class_1533;method_33340()Lnet/minecraft/class_1799;
        named getAsItemStack Lnet/minecraft/entity/decoration/ItemFrameEntity;getAsItemStack()Lnet/minecraft/item/ItemStack;