Interface VehicleInventory

All Superinterfaces:
Clearable, Inventory, NamedScreenHandlerFactory, ScreenHandlerFactory
All Known Implementing Classes:
ChestBoatEntity, ChestMinecartEntity, HopperMinecartEntity, StorageMinecartEntity

public interface VehicleInventory extends Inventory, NamedScreenHandlerFactory
Mappings:
Namespace Name
official bva
intermediary net/minecraft/class_7265
named net/minecraft/entity/vehicle/VehicleInventory
  • Method Details

    • getPos

      Vec3d getPos()
      Mappings:
      Namespace Name Mixin selector
      official cZ Lbva;cZ()Ldvs;
      intermediary method_19538 Lnet/minecraft/class_7265;method_19538()Lnet/minecraft/class_243;
      named getPos Lnet/minecraft/entity/vehicle/VehicleInventory;getPos()Lnet/minecraft/util/math/Vec3d;
    • getLootTableId

      @Nullable @Nullable Identifier getLootTableId()
      Mappings:
      Namespace Name Mixin selector
      official y Lbva;y()Laaj;
      intermediary method_42276 Lnet/minecraft/class_7265;method_42276()Lnet/minecraft/class_2960;
      named getLootTableId Lnet/minecraft/entity/vehicle/VehicleInventory;getLootTableId()Lnet/minecraft/util/Identifier;
    • setLootTableId

      void setLootTableId(@Nullable @Nullable Identifier lootTableId)
      Mappings:
      Namespace Name Mixin selector
      official a Lbva;a(Laaj;)V
      intermediary method_42275 Lnet/minecraft/class_7265;method_42275(Lnet/minecraft/class_2960;)V
      named setLootTableId Lnet/minecraft/entity/vehicle/VehicleInventory;setLootTableId(Lnet/minecraft/util/Identifier;)V
    • getLootTableSeed

      long getLootTableSeed()
      Mappings:
      Namespace Name Mixin selector
      official z Lbva;z()J
      intermediary method_42277 Lnet/minecraft/class_7265;method_42277()J
      named getLootTableSeed Lnet/minecraft/entity/vehicle/VehicleInventory;getLootTableSeed()J
    • setLootTableSeed

      void setLootTableSeed(long lootTableSeed)
      Mappings:
      Namespace Name Mixin selector
      official a Lbva;a(J)V
      intermediary method_42274 Lnet/minecraft/class_7265;method_42274(J)V
      named setLootTableSeed Lnet/minecraft/entity/vehicle/VehicleInventory;setLootTableSeed(J)V
    • getInventory

      DefaultedList<ItemStack> getInventory()
      Mappings:
      Namespace Name Mixin selector
      official A Lbva;A()Lhi;
      intermediary method_42278 Lnet/minecraft/class_7265;method_42278()Lnet/minecraft/class_2371;
      named getInventory Lnet/minecraft/entity/vehicle/VehicleInventory;getInventory()Lnet/minecraft/util/collection/DefaultedList;
    • resetInventory

      void resetInventory()
      Mappings:
      Namespace Name Mixin selector
      official C Lbva;C()V
      intermediary method_42273 Lnet/minecraft/class_7265;method_42273()V
      named resetInventory Lnet/minecraft/entity/vehicle/VehicleInventory;resetInventory()V
    • getWorld

      World getWorld()
      Mappings:
      Namespace Name Mixin selector
      official W Lbva;W()Lcga;
      intermediary method_37908 Lnet/minecraft/class_7265;method_37908()Lnet/minecraft/class_1937;
      named getWorld Lnet/minecraft/entity/vehicle/VehicleInventory;getWorld()Lnet/minecraft/world/World;
    • isRemoved

      boolean isRemoved()
      Mappings:
      Namespace Name Mixin selector
      official du Lbva;du()Z
      intermediary method_31481 Lnet/minecraft/class_7265;method_31481()Z
      named isRemoved Lnet/minecraft/entity/vehicle/VehicleInventory;isRemoved()Z
    • isEmpty

      default boolean isEmpty()
      Specified by:
      isEmpty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official c Lazf;c()Z
      intermediary method_5442 Lnet/minecraft/class_1263;method_5442()Z
      named isEmpty Lnet/minecraft/inventory/Inventory;isEmpty()Z
    • writeInventoryToNbt

      default void writeInventoryToNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official c Lbva;c(Lpj;)V
      intermediary method_42288 Lnet/minecraft/class_7265;method_42288(Lnet/minecraft/class_2487;)V
      named writeInventoryToNbt Lnet/minecraft/entity/vehicle/VehicleInventory;writeInventoryToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • readInventoryFromNbt

      default void readInventoryFromNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbva;a_(Lpj;)V
      intermediary method_42285 Lnet/minecraft/class_7265;method_42285(Lnet/minecraft/class_2487;)V
      named readInventoryFromNbt Lnet/minecraft/entity/vehicle/VehicleInventory;readInventoryFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • onBroken

      default void onBroken(DamageSource source, World world, Entity vehicle)
      Mappings:
      Namespace Name Mixin selector
      official a Lbva;a(Lazz;Lcga;Lbaq;)V
      intermediary method_42283 Lnet/minecraft/class_7265;method_42283(Lnet/minecraft/class_1282;Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;)V
      named onBroken Lnet/minecraft/entity/vehicle/VehicleInventory;onBroken(Lnet/minecraft/entity/damage/DamageSource;Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)V
    • open

      default ActionResult open(BiConsumer<GameEvent,Entity> gameEventEmitter, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lbva;a(Ljava/util/function/BiConsumer;Lbtf;)Lazm;
      intermediary method_42284 Lnet/minecraft/class_7265;method_42284(Ljava/util/function/BiConsumer;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;
      named open Lnet/minecraft/entity/vehicle/VehicleInventory;open(Ljava/util/function/BiConsumer;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;
    • generateInventoryLoot

      default void generateInventoryLoot(@Nullable @Nullable PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official e Lbva;e(Lbtf;)V
      intermediary method_42291 Lnet/minecraft/class_7265;method_42291(Lnet/minecraft/class_1657;)V
      named generateInventoryLoot Lnet/minecraft/entity/vehicle/VehicleInventory;generateInventoryLoot(Lnet/minecraft/entity/player/PlayerEntity;)V
    • clearInventory

      default void clearInventory()
      Mappings:
      Namespace Name Mixin selector
      official f Lbva;f()V
      intermediary method_42293 Lnet/minecraft/class_7265;method_42293()V
      named clearInventory Lnet/minecraft/entity/vehicle/VehicleInventory;clearInventory()V
    • isInventoryEmpty

      default boolean isInventoryEmpty()
      Mappings:
      Namespace Name Mixin selector
      official g Lbva;g()Z
      intermediary method_42295 Lnet/minecraft/class_7265;method_42295()Z
      named isInventoryEmpty Lnet/minecraft/entity/vehicle/VehicleInventory;isInventoryEmpty()Z
    • removeInventoryStack

      default ItemStack removeInventoryStack(int slot)
      Mappings:
      Namespace Name Mixin selector
      official c_ Lbva;c_(I)Lcaa;
      intermediary method_42289 Lnet/minecraft/class_7265;method_42289(I)Lnet/minecraft/class_1799;
      named removeInventoryStack Lnet/minecraft/entity/vehicle/VehicleInventory;removeInventoryStack(I)Lnet/minecraft/item/ItemStack;
    • getInventoryStack

      default ItemStack getInventoryStack(int slot)
      Mappings:
      Namespace Name Mixin selector
      official d_ Lbva;d_(I)Lcaa;
      intermediary method_42290 Lnet/minecraft/class_7265;method_42290(I)Lnet/minecraft/class_1799;
      named getInventoryStack Lnet/minecraft/entity/vehicle/VehicleInventory;getInventoryStack(I)Lnet/minecraft/item/ItemStack;
    • removeInventoryStack

      default ItemStack removeInventoryStack(int slot, int amount)
      Mappings:
      Namespace Name Mixin selector
      official b Lbva;b(II)Lcaa;
      intermediary method_42286 Lnet/minecraft/class_7265;method_42286(II)Lnet/minecraft/class_1799;
      named removeInventoryStack Lnet/minecraft/entity/vehicle/VehicleInventory;removeInventoryStack(II)Lnet/minecraft/item/ItemStack;
    • setInventoryStack

      default void setInventoryStack(int slot, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official c Lbva;c(ILcaa;)V
      intermediary method_42287 Lnet/minecraft/class_7265;method_42287(ILnet/minecraft/class_1799;)V
      named setInventoryStack Lnet/minecraft/entity/vehicle/VehicleInventory;setInventoryStack(ILnet/minecraft/item/ItemStack;)V
    • getInventoryStackReference

      default StackReference getInventoryStackReference(int slot)
      Mappings:
      Namespace Name Mixin selector
      official e_ Lbva;e_(I)Lbbw;
      intermediary method_42292 Lnet/minecraft/class_7265;method_42292(I)Lnet/minecraft/class_5630;
      named getInventoryStackReference Lnet/minecraft/entity/vehicle/VehicleInventory;getInventoryStackReference(I)Lnet/minecraft/inventory/StackReference;
    • canPlayerAccess

      default boolean canPlayerAccess(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official f Lbva;f(Lbtf;)Z
      intermediary method_42294 Lnet/minecraft/class_7265;method_42294(Lnet/minecraft/class_1657;)Z
      named canPlayerAccess Lnet/minecraft/entity/vehicle/VehicleInventory;canPlayerAccess(Lnet/minecraft/entity/player/PlayerEntity;)Z