Package net.minecraft.entity.vehicle
Interface VehicleInventory
- All Superinterfaces:
Clearable,Inventory,Iterable<ItemStack>,NamedScreenHandlerFactory,ScreenHandlerFactory
- All Known Implementing Classes:
AbstractChestBoatEntity,ChestBoatEntity,ChestMinecartEntity,ChestRaftEntity,HopperMinecartEntity,StorageMinecartEntity
- Mappings:
Namespace Name named net/minecraft/entity/vehicle/VehicleInventoryintermediary net/minecraft/class_7265official cva
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.inventory.Inventory
Inventory.Iterator -
Field Summary
Fields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGE -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanPlayerAccess(PlayerEntity player) default voiddefault voiddefault ItemStackgetInventoryStack(int slot) default StackReferencegetInventoryStackReference(int slot) longgetPos()getWorld()default booleanisEmpty()Returns whether the inventory consists entirely of empty item stacks.default booleanbooleandefault voidonBroken(DamageSource source, ServerWorld world, Entity vehicle) default ActionResultopen(PlayerEntity player) default voidreadInventoryFromNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) default ItemStackremoveInventoryStack(int slot) default ItemStackremoveInventoryStack(int slot, int amount) voiddefault voidsetInventoryStack(int slot, ItemStack stack) voidsetLootTable(@Nullable RegistryKey<LootTable> lootTable) voidsetLootTableSeed(long lootTableSeed) default voidwriteInventoryToNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Methods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, getStack, isValid, iterator, markDirty, onClose, onOpen, removeStack, removeStack, setStack, sizeMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.screen.NamedScreenHandlerFactory
getDisplayNameMethods inherited from interface net.minecraft.screen.ScreenHandlerFactory
createMenu
-
Method Details
-
getPos
Vec3d getPos()- Mappings:
Namespace Name Mixin selector named getPosLnet/minecraft/entity/vehicle/VehicleInventory;getPos()Lnet/minecraft/util/math/Vec3d;intermediary method_19538Lnet/minecraft/class_7265;method_19538()Lnet/minecraft/class_243;official dtLcva;dt()Lfgc;
-
getBoundingBox
Box getBoundingBox()- Mappings:
Namespace Name Mixin selector named getBoundingBoxLnet/minecraft/entity/vehicle/VehicleInventory;getBoundingBox()Lnet/minecraft/util/math/Box;intermediary method_5829Lnet/minecraft/class_7265;method_5829()Lnet/minecraft/class_238;official cRLcva;cR()Lffx;
-
getLootTable
- Mappings:
Namespace Name Mixin selector named getLootTableLnet/minecraft/entity/vehicle/VehicleInventory;getLootTable()Lnet/minecraft/registry/RegistryKey;intermediary method_42276Lnet/minecraft/class_7265;method_42276()Lnet/minecraft/class_5321;official rLcva;r()Lalq;
-
setLootTable
- Mappings:
Namespace Name Mixin selector named setLootTableLnet/minecraft/entity/vehicle/VehicleInventory;setLootTable(Lnet/minecraft/registry/RegistryKey;)Vintermediary method_42275Lnet/minecraft/class_7265;method_42275(Lnet/minecraft/class_5321;)Vofficial aLcva;a(Lalq;)V
-
getLootTableSeed
long getLootTableSeed()- Mappings:
Namespace Name Mixin selector named getLootTableSeedLnet/minecraft/entity/vehicle/VehicleInventory;getLootTableSeed()Jintermediary method_42277Lnet/minecraft/class_7265;method_42277()Jofficial sLcva;s()J
-
setLootTableSeed
void setLootTableSeed(long lootTableSeed) - Mappings:
Namespace Name Mixin selector named setLootTableSeedLnet/minecraft/entity/vehicle/VehicleInventory;setLootTableSeed(J)Vintermediary method_42274Lnet/minecraft/class_7265;method_42274(J)Vofficial aLcva;a(J)V
-
getInventory
DefaultedList<ItemStack> getInventory()- Mappings:
Namespace Name Mixin selector named getInventoryLnet/minecraft/entity/vehicle/VehicleInventory;getInventory()Lnet/minecraft/util/collection/DefaultedList;intermediary method_42278Lnet/minecraft/class_7265;method_42278()Lnet/minecraft/class_2371;official tLcva;t()Ljp;
-
resetInventory
void resetInventory()- Mappings:
Namespace Name Mixin selector named resetInventoryLnet/minecraft/entity/vehicle/VehicleInventory;resetInventory()Vintermediary method_42273Lnet/minecraft/class_7265;method_42273()Vofficial uLcva;u()V
-
getWorld
World getWorld()- Mappings:
Namespace Name Mixin selector named getWorldLnet/minecraft/entity/vehicle/VehicleInventory;getWorld()Lnet/minecraft/world/World;intermediary method_37908Lnet/minecraft/class_7265;method_37908()Lnet/minecraft/class_1937;official dVLcva;dV()Ldkj;
-
isRemoved
boolean isRemoved()- Mappings:
Namespace Name Mixin selector named isRemovedLnet/minecraft/entity/vehicle/VehicleInventory;isRemoved()Zintermediary method_31481Lnet/minecraft/class_7265;method_31481()Zofficial dQLcva;dQ()Z
-
isEmpty
default boolean isEmpty()Returns whether the inventory consists entirely of empty item stacks.- Specified by:
isEmptyin interfaceInventory- Returns:
- whether the inventory consists entirely of empty item stacks
- Mappings:
Namespace Name Mixin selector named isEmptyLnet/minecraft/inventory/Inventory;isEmpty()Zintermediary method_5442Lnet/minecraft/class_1263;method_5442()Zofficial cLbuv;c()Z
-
writeInventoryToNbt
- Mappings:
Namespace Name Mixin selector named writeInventoryToNbtLnet/minecraft/entity/vehicle/VehicleInventory;writeInventoryToNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_42288Lnet/minecraft/class_7265;method_42288(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial aLcva;a(Lua;Lji$a;)V
-
readInventoryFromNbt
- Mappings:
Namespace Name Mixin selector named readInventoryFromNbtLnet/minecraft/entity/vehicle/VehicleInventory;readInventoryFromNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_42285Lnet/minecraft/class_7265;method_42285(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial bLcva;b(Lua;Lji$a;)V
-
onBroken
- Mappings:
Namespace Name Mixin selector named onBrokenLnet/minecraft/entity/vehicle/VehicleInventory;onBroken(Lnet/minecraft/entity/damage/DamageSource;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)Vintermediary method_42283Lnet/minecraft/class_7265;method_42283(Lnet/minecraft/class_1282;Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Vofficial aLcva;a(Lbvt;Lasb;Lbxe;)V
-
open
- Mappings:
Namespace Name Mixin selector named openLnet/minecraft/entity/vehicle/VehicleInventory;open(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;intermediary method_42284Lnet/minecraft/class_7265;method_42284(Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;official b_Lcva;b_(Lcsi;)Lbvc;
-
generateInventoryLoot
- Mappings:
Namespace Name Mixin selector named generateInventoryLootLnet/minecraft/entity/vehicle/VehicleInventory;generateInventoryLoot(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_42291Lnet/minecraft/class_7265;method_42291(Lnet/minecraft/class_1657;)Vofficial fLcva;f(Lcsi;)V
-
clearInventory
default void clearInventory()- Mappings:
Namespace Name Mixin selector named clearInventoryLnet/minecraft/entity/vehicle/VehicleInventory;clearInventory()Vintermediary method_42293Lnet/minecraft/class_7265;method_42293()Vofficial ah_Lcva;ah_()V
-
isInventoryEmpty
default boolean isInventoryEmpty()- Mappings:
Namespace Name Mixin selector named isInventoryEmptyLnet/minecraft/entity/vehicle/VehicleInventory;isInventoryEmpty()Zintermediary method_42295Lnet/minecraft/class_7265;method_42295()Zofficial hLcva;h()Z
-
removeInventoryStack
- Mappings:
Namespace Name Mixin selector named removeInventoryStackLnet/minecraft/entity/vehicle/VehicleInventory;removeInventoryStack(I)Lnet/minecraft/item/ItemStack;intermediary method_42289Lnet/minecraft/class_7265;method_42289(I)Lnet/minecraft/class_1799;official f_Lcva;f_(I)Ldak;
-
getInventoryStack
- Mappings:
Namespace Name Mixin selector named getInventoryStackLnet/minecraft/entity/vehicle/VehicleInventory;getInventoryStack(I)Lnet/minecraft/item/ItemStack;intermediary method_42290Lnet/minecraft/class_7265;method_42290(I)Lnet/minecraft/class_1799;official g_Lcva;g_(I)Ldak;
-
removeInventoryStack
- Mappings:
Namespace Name Mixin selector named removeInventoryStackLnet/minecraft/entity/vehicle/VehicleInventory;removeInventoryStack(II)Lnet/minecraft/item/ItemStack;intermediary method_42286Lnet/minecraft/class_7265;method_42286(II)Lnet/minecraft/class_1799;official bLcva;b(II)Ldak;
-
setInventoryStack
- Mappings:
Namespace Name Mixin selector named setInventoryStackLnet/minecraft/entity/vehicle/VehicleInventory;setInventoryStack(ILnet/minecraft/item/ItemStack;)Vintermediary method_42287Lnet/minecraft/class_7265;method_42287(ILnet/minecraft/class_1799;)Vofficial cLcva;c(ILdak;)V
-
getInventoryStackReference
- Mappings:
Namespace Name Mixin selector named getInventoryStackReferenceLnet/minecraft/entity/vehicle/VehicleInventory;getInventoryStackReference(I)Lnet/minecraft/inventory/StackReference;intermediary method_42292Lnet/minecraft/class_7265;method_42292(I)Lnet/minecraft/class_5630;official h_Lcva;h_(I)Lbyw;
-
canPlayerAccess
- Mappings:
Namespace Name Mixin selector named canPlayerAccessLnet/minecraft/entity/vehicle/VehicleInventory;canPlayerAccess(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_42294Lnet/minecraft/class_7265;method_42294(Lnet/minecraft/class_1657;)Zofficial gLcva;g(Lcsi;)Z
-