Package net.minecraft.entity.vehicle
Interface VehicleInventory
- All Superinterfaces:
Clearable,Inventory,NamedScreenHandlerFactory,ScreenHandlerFactory
- All Known Implementing Classes:
ChestBoatEntity,ChestMinecartEntity,HopperMinecartEntity,StorageMinecartEntity
- Mappings:
Namespace Name official clsintermediary net/minecraft/class_7265named net/minecraft/entity/vehicle/VehicleInventory
-
Field Summary
Fields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGE, MAX_COUNT_PER_STACK -
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, World world, Entity vehicle) default ActionResultopen(PlayerEntity player) default voidreadInventoryFromNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup wrapperLookup) default ItemStackremoveInventoryStack(int slot) default ItemStackremoveInventoryStack(int slot, int amount) voiddefault voidsetInventoryStack(int slot, ItemStack stack) voidsetLootTableId(@Nullable Identifier lootTableId) voidsetLootTableSeed(long lootTableSeed) default voidwriteInventoryToNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup wrapperLookup) Methods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getMaxCountPerStack, getStack, isValid, markDirty, onClose, onOpen, removeStack, removeStack, setStack, sizeMethods 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 official dkLcls;dk()Lesa;intermediary method_19538Lnet/minecraft/class_7265;method_19538()Lnet/minecraft/class_243;named getPosLnet/minecraft/entity/vehicle/VehicleInventory;getPos()Lnet/minecraft/util/math/Vec3d;
-
getBoundingBox
Box getBoundingBox()- Mappings:
Namespace Name Mixin selector official cHLcls;cH()Lerv;intermediary method_5829Lnet/minecraft/class_7265;method_5829()Lnet/minecraft/class_238;named getBoundingBoxLnet/minecraft/entity/vehicle/VehicleInventory;getBoundingBox()Lnet/minecraft/util/math/Box;
-
getLootTableId
- Mappings:
Namespace Name Mixin selector official BLcls;B()Lajt;intermediary method_42276Lnet/minecraft/class_7265;method_42276()Lnet/minecraft/class_2960;named getLootTableIdLnet/minecraft/entity/vehicle/VehicleInventory;getLootTableId()Lnet/minecraft/util/Identifier;
-
setLootTableId
- Mappings:
Namespace Name Mixin selector official aLcls;a(Lajt;)Vintermediary method_42275Lnet/minecraft/class_7265;method_42275(Lnet/minecraft/class_2960;)Vnamed setLootTableIdLnet/minecraft/entity/vehicle/VehicleInventory;setLootTableId(Lnet/minecraft/util/Identifier;)V
-
getLootTableSeed
long getLootTableSeed()- Mappings:
Namespace Name Mixin selector official CLcls;C()Jintermediary method_42277Lnet/minecraft/class_7265;method_42277()Jnamed getLootTableSeedLnet/minecraft/entity/vehicle/VehicleInventory;getLootTableSeed()J
-
setLootTableSeed
void setLootTableSeed(long lootTableSeed) - Mappings:
Namespace Name Mixin selector official aLcls;a(J)Vintermediary method_42274Lnet/minecraft/class_7265;method_42274(J)Vnamed setLootTableSeedLnet/minecraft/entity/vehicle/VehicleInventory;setLootTableSeed(J)V
-
getInventory
DefaultedList<ItemStack> getInventory()- Mappings:
Namespace Name Mixin selector official DLcls;D()Liu;intermediary method_42278Lnet/minecraft/class_7265;method_42278()Lnet/minecraft/class_2371;named getInventoryLnet/minecraft/entity/vehicle/VehicleInventory;getInventory()Lnet/minecraft/util/collection/DefaultedList;
-
resetInventory
void resetInventory()- Mappings:
Namespace Name Mixin selector official ELcls;E()Vintermediary method_42273Lnet/minecraft/class_7265;method_42273()Vnamed resetInventoryLnet/minecraft/entity/vehicle/VehicleInventory;resetInventory()V
-
getWorld
World getWorld()- Mappings:
Namespace Name Mixin selector official dMLcls;dM()Lcyx;intermediary method_37908Lnet/minecraft/class_7265;method_37908()Lnet/minecraft/class_1937;named getWorldLnet/minecraft/entity/vehicle/VehicleInventory;getWorld()Lnet/minecraft/world/World;
-
isRemoved
boolean isRemoved()- Mappings:
Namespace Name Mixin selector official dHLcls;dH()Zintermediary method_31481Lnet/minecraft/class_7265;method_31481()Znamed isRemovedLnet/minecraft/entity/vehicle/VehicleInventory;isRemoved()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 official ah_Lbnt;ah_()Zintermediary method_5442Lnet/minecraft/class_1263;method_5442()Znamed isEmptyLnet/minecraft/inventory/Inventory;isEmpty()Z
-
writeInventoryToNbt
- Mappings:
Namespace Name Mixin selector official aLcls;a(Ltm;Lin$a;)Vintermediary method_42288Lnet/minecraft/class_7265;method_42288(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vnamed writeInventoryToNbtLnet/minecraft/entity/vehicle/VehicleInventory;writeInventoryToNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
-
readInventoryFromNbt
- Mappings:
Namespace Name Mixin selector official bLcls;b(Ltm;Lin$a;)Vintermediary method_42285Lnet/minecraft/class_7265;method_42285(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vnamed readInventoryFromNbtLnet/minecraft/entity/vehicle/VehicleInventory;readInventoryFromNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
-
onBroken
- Mappings:
Namespace Name Mixin selector official aLcls;a(Lbot;Lcyx;Lbpv;)Vintermediary method_42283Lnet/minecraft/class_7265;method_42283(Lnet/minecraft/class_1282;Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;)Vnamed onBrokenLnet/minecraft/entity/vehicle/VehicleInventory;onBroken(Lnet/minecraft/entity/damage/DamageSource;Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)V
-
open
- Mappings:
Namespace Name Mixin selector official c_Lcls;c_(Lcjt;)Lboa;intermediary method_42284Lnet/minecraft/class_7265;method_42284(Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;named openLnet/minecraft/entity/vehicle/VehicleInventory;open(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;
-
generateInventoryLoot
- Mappings:
Namespace Name Mixin selector official fLcls;f(Lcjt;)Vintermediary method_42291Lnet/minecraft/class_7265;method_42291(Lnet/minecraft/class_1657;)Vnamed generateInventoryLootLnet/minecraft/entity/vehicle/VehicleInventory;generateInventoryLoot(Lnet/minecraft/entity/player/PlayerEntity;)V
-
clearInventory
default void clearInventory()- Mappings:
Namespace Name Mixin selector official fLcls;f()Vintermediary method_42293Lnet/minecraft/class_7265;method_42293()Vnamed clearInventoryLnet/minecraft/entity/vehicle/VehicleInventory;clearInventory()V
-
isInventoryEmpty
default boolean isInventoryEmpty()- Mappings:
Namespace Name Mixin selector official gLcls;g()Zintermediary method_42295Lnet/minecraft/class_7265;method_42295()Znamed isInventoryEmptyLnet/minecraft/entity/vehicle/VehicleInventory;isInventoryEmpty()Z
-
removeInventoryStack
- Mappings:
Namespace Name Mixin selector official e_Lcls;e_(I)Lcrj;intermediary method_42289Lnet/minecraft/class_7265;method_42289(I)Lnet/minecraft/class_1799;named removeInventoryStackLnet/minecraft/entity/vehicle/VehicleInventory;removeInventoryStack(I)Lnet/minecraft/item/ItemStack;
-
getInventoryStack
- Mappings:
Namespace Name Mixin selector official f_Lcls;f_(I)Lcrj;intermediary method_42290Lnet/minecraft/class_7265;method_42290(I)Lnet/minecraft/class_1799;named getInventoryStackLnet/minecraft/entity/vehicle/VehicleInventory;getInventoryStack(I)Lnet/minecraft/item/ItemStack;
-
removeInventoryStack
- Mappings:
Namespace Name Mixin selector official bLcls;b(II)Lcrj;intermediary method_42286Lnet/minecraft/class_7265;method_42286(II)Lnet/minecraft/class_1799;named removeInventoryStackLnet/minecraft/entity/vehicle/VehicleInventory;removeInventoryStack(II)Lnet/minecraft/item/ItemStack;
-
setInventoryStack
- Mappings:
Namespace Name Mixin selector official cLcls;c(ILcrj;)Vintermediary method_42287Lnet/minecraft/class_7265;method_42287(ILnet/minecraft/class_1799;)Vnamed setInventoryStackLnet/minecraft/entity/vehicle/VehicleInventory;setInventoryStack(ILnet/minecraft/item/ItemStack;)V
-
getInventoryStackReference
- Mappings:
Namespace Name Mixin selector official g_Lcls;g_(I)Lbrf;intermediary method_42292Lnet/minecraft/class_7265;method_42292(I)Lnet/minecraft/class_5630;named getInventoryStackReferenceLnet/minecraft/entity/vehicle/VehicleInventory;getInventoryStackReference(I)Lnet/minecraft/inventory/StackReference;
-
canPlayerAccess
- Mappings:
Namespace Name Mixin selector official gLcls;g(Lcjt;)Zintermediary method_42294Lnet/minecraft/class_7265;method_42294(Lnet/minecraft/class_1657;)Znamed canPlayerAccessLnet/minecraft/entity/vehicle/VehicleInventory;canPlayerAccess(Lnet/minecraft/entity/player/PlayerEntity;)Z
-