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 cah
intermediary net/minecraft/class_7265
named net/minecraft/entity/vehicle/VehicleInventory
  • Method Details

    • getPos

      Vec3d getPos()
      Mappings:
      Namespace Name Mixin selector
      official dg Lcah;dg()Leea;
      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 z Lcah;z()Lacq;
      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 Lcah;a(Lacq;)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 A Lcah;A()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 Lcah;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 C Lcah;C()Lhn;
      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 D Lcah;D()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 dI Lcah;dI()Lcmk;
      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 dD Lcah;dD()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 aa_ Lbdp;aa_()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 Lcah;c(Lqr;)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 b_ Lcah;b_(Lqr;)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 Lcah;a(Lbem;Lcmk;Lbfh;)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(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official c_ Lcah;c_(Lbym;)Lbdw;
      intermediary method_42284 Lnet/minecraft/class_7265;method_42284(Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;
      named open Lnet/minecraft/entity/vehicle/VehicleInventory;open(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;
    • generateInventoryLoot

      default void generateInventoryLoot(@Nullable @Nullable PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official f Lcah;f(Lbym;)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 Lcah;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 Lcah;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 e_ Lcah;e_(I)Lcfx;
      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 f_ Lcah;f_(I)Lcfx;
      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 Lcah;b(II)Lcfx;
      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 Lcah;c(ILcfx;)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 g_ Lcah;g_(I)Lbgq;
      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 g Lcah;g(Lbym;)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