类 StorageMinecartEntity

    • 字段详细资料

      • inventory

        private DefaultedList<ItemStack> inventory
        Mappings:
        Namespace Name Mixin selector
        official c Lbkv;c:Lgn;
        intermediary field_7735 Lnet/minecraft/class_1693;field_7735:Lnet/minecraft/class_2371;
        named inventory Lnet/minecraft/entity/vehicle/StorageMinecartEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
      • lootTableId

        @Nullable
        private @Nullable Identifier lootTableId
        Mappings:
        Namespace Name Mixin selector
        official d Lbkv;d:Lwp;
        intermediary field_7734 Lnet/minecraft/class_1693;field_7734:Lnet/minecraft/class_2960;
        named lootTableId Lnet/minecraft/entity/vehicle/StorageMinecartEntity;lootTableId:Lnet/minecraft/util/Identifier;
      • lootSeed

        private long lootSeed
        Mappings:
        Namespace Name Mixin selector
        official e Lbkv;e:J
        intermediary field_7732 Lnet/minecraft/class_1693;field_7732:J
        named lootSeed Lnet/minecraft/entity/vehicle/StorageMinecartEntity;lootSeed:J
    • 构造器详细资料

      • StorageMinecartEntity

        protected StorageMinecartEntity​(EntityType<?> 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
      • StorageMinecartEntity

        protected StorageMinecartEntity​(EntityType<?> type,
                                        double x,
                                        double y,
                                        double z,
                                        World world)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbkv;<init>(Lasp;DDDLbvr;)V
        intermediary <init> Lnet/minecraft/class_1693;<init>(Lnet/minecraft/class_1299;DDDLnet/minecraft/class_1937;)V
        named <init> Lnet/minecraft/entity/vehicle/StorageMinecartEntity;<init>(Lnet/minecraft/entity/EntityType;DDDLnet/minecraft/world/World;)V
    • 方法详细资料

      • dropItems

        public void dropItems​(DamageSource damageSource)
        覆盖:
        dropItems 在类中 AbstractMinecartEntity
        Mappings:
        Namespace Name Mixin selector
        official a Lbku;a(Larv;)V
        intermediary method_7516 Lnet/minecraft/class_1688;method_7516(Lnet/minecraft/class_1282;)V
        named dropItems Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;dropItems(Lnet/minecraft/entity/damage/DamageSource;)V
      • isEmpty

        public boolean isEmpty()
        指定者:
        isEmpty 在接口中 Inventory
        Mappings:
        Namespace Name Mixin selector
        official c Laqz;c()Z
        intermediary method_5442 Lnet/minecraft/class_1263;method_5442()Z
        named isEmpty Lnet/minecraft/inventory/Inventory;isEmpty()Z
      • getStack

        public ItemStack getStack​(int slot)
        Fetches the stack currently stored at the given slot. If the slot is empty, or is outside the bounds of this inventory, returns see ItemStack.EMPTY.
        指定者:
        getStack 在接口中 Inventory
        Mappings:
        Namespace Name Mixin selector
        official a Laqz;a(I)Lbpr;
        intermediary method_5438 Lnet/minecraft/class_1263;method_5438(I)Lnet/minecraft/class_1799;
        named getStack Lnet/minecraft/inventory/Inventory;getStack(I)Lnet/minecraft/item/ItemStack;
      • removeStack

        public ItemStack removeStack​(int slot,
                                     int amount)
        Removes a specific number of items from the given slot.
        指定者:
        removeStack 在接口中 Inventory
        返回:
        the removed items as a stack
        Mappings:
        Namespace Name Mixin selector
        official a Laqz;a(II)Lbpr;
        intermediary method_5434 Lnet/minecraft/class_1263;method_5434(II)Lnet/minecraft/class_1799;
        named removeStack Lnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;
      • removeStack

        public ItemStack removeStack​(int slot)
        Removes the stack currently stored at the indicated slot.
        指定者:
        removeStack 在接口中 Inventory
        返回:
        the stack previously stored at the indicated slot.
        Mappings:
        Namespace Name Mixin selector
        official b Laqz;b(I)Lbpr;
        intermediary method_5441 Lnet/minecraft/class_1263;method_5441(I)Lnet/minecraft/class_1799;
        named removeStack Lnet/minecraft/inventory/Inventory;removeStack(I)Lnet/minecraft/item/ItemStack;
      • setStack

        public void setStack​(int slot,
                             ItemStack stack)
        指定者:
        setStack 在接口中 Inventory
        Mappings:
        Namespace Name Mixin selector
        official a Laqz;a(ILbpr;)V
        intermediary method_5447 Lnet/minecraft/class_1263;method_5447(ILnet/minecraft/class_1799;)V
        named setStack Lnet/minecraft/inventory/Inventory;setStack(ILnet/minecraft/item/ItemStack;)V
      • 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;
      • markDirty

        public void markDirty()
        指定者:
        markDirty 在接口中 Inventory
        Mappings:
        Namespace Name Mixin selector
        official Z_ Laqz;Z_()V
        intermediary method_5431 Lnet/minecraft/class_1263;method_5431()V
        named markDirty Lnet/minecraft/inventory/Inventory;markDirty()V
      • canPlayerUse

        public boolean canPlayerUse​(PlayerEntity player)
        指定者:
        canPlayerUse 在接口中 Inventory
        Mappings:
        Namespace Name Mixin selector
        official a Laqz;a(Lbjf;)Z
        intermediary method_5443 Lnet/minecraft/class_1263;method_5443(Lnet/minecraft/class_1657;)Z
        named canPlayerUse Lnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
      • remove

        public void remove​(Entity.RemovalReason reason)
        覆盖:
        remove 在类中 Entity
        Mappings:
        Namespace Name Mixin selector
        official a Lasl;a(Lasl$c;)V
        intermediary method_5650 Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)V
        named remove Lnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
      • writeCustomDataToNbt

        protected void writeCustomDataToNbt​(CompoundTag nbt)
        覆盖:
        writeCustomDataToNbt 在类中 AbstractMinecartEntity
        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

        protected void readCustomDataFromNbt​(CompoundTag nbt)
        覆盖:
        readCustomDataFromNbt 在类中 AbstractMinecartEntity
        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;
      • applySlowdown

        protected void applySlowdown()
        覆盖:
        applySlowdown 在类中 AbstractMinecartEntity
        Mappings:
        Namespace Name Mixin selector
        official i Lbku;i()V
        intermediary method_7525 Lnet/minecraft/class_1688;method_7525()V
        named applySlowdown Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown()V
      • generateLoot

        public void generateLoot​(@Nullable
                                 @Nullable PlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official d Lbkv;d(Lbjf;)V
        intermediary method_7563 Lnet/minecraft/class_1693;method_7563(Lnet/minecraft/class_1657;)V
        named generateLoot Lnet/minecraft/entity/vehicle/StorageMinecartEntity;generateLoot(Lnet/minecraft/entity/player/PlayerEntity;)V
      • clear

        public void clear()
        指定者:
        clear 在接口中 Clearable
        Mappings:
        Namespace Name Mixin selector
        official aa_ Laqx;aa_()V
        intermediary method_5448 Lnet/minecraft/class_3829;method_5448()V
        named clear Lnet/minecraft/util/Clearable;clear()V
      • setLootTable

        public void setLootTable​(Identifier id,
                                 long lootSeed)
        Mappings:
        Namespace Name Mixin selector
        official a Lbkv;a(Lwp;J)V
        intermediary method_7562 Lnet/minecraft/class_1693;method_7562(Lnet/minecraft/class_2960;J)V
        named setLootTable Lnet/minecraft/entity/vehicle/StorageMinecartEntity;setLootTable(Lnet/minecraft/util/Identifier;J)V
      • createMenu

        @Nullable
        public @Nullable ScreenHandler createMenu​(int syncId,
                                                  PlayerInventory inv,
                                                  PlayerEntity player)
        指定者:
        createMenu 在接口中 ScreenHandlerFactory
        Mappings:
        Namespace Name Mixin selector
        official createMenu Lbmo;createMenu(ILbje;Lbjf;)Lbll;
        intermediary createMenu Lnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;
        named createMenu Lnet/minecraft/screen/ScreenHandlerFactory;createMenu(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
      • getScreenHandler

        protected abstract ScreenHandler getScreenHandler​(int syncId,
                                                          PlayerInventory playerInventory)
        Mappings:
        Namespace Name Mixin selector
        official a Lbkv;a(ILbje;)Lbll;
        intermediary method_17357 Lnet/minecraft/class_1693;method_17357(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;
        named getScreenHandler Lnet/minecraft/entity/vehicle/StorageMinecartEntity;getScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;