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 cfuintermediary net/minecraft/class_7265named net/minecraft/entity/vehicle/VehicleInventory
-
Field Summary
Fields inherited from interface net.minecraft.inventory.Inventory
field_42619, 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 voiddefault ItemStackremoveInventoryStack(int slot) default ItemStackremoveInventoryStack(int slot, int amount) voiddefault voidsetInventoryStack(int slot, ItemStack stack) voidsetLootTableId(@Nullable Identifier lootTableId) voidsetLootTableSeed(long lootTableSeed) default voidMethods 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 dlLcfu;dl()Lejz;intermediary method_19538Lnet/minecraft/class_7265;method_19538()Lnet/minecraft/class_243;named getPosLnet/minecraft/entity/vehicle/VehicleInventory;getPos()Lnet/minecraft/util/math/Vec3d;
-
getLootTableId
- Mappings:
Namespace Name Mixin selector official CLcfu;C()Lagm;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 aLcfu;a(Lagm;)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 DLcfu;D()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 aLcfu;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 ELcfu;E()Lip;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 GLcfu;G()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 dNLcfu;dN()Lcsf;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 dILcfu;dI()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 aj_Lbiu;aj_()Zintermediary method_5442Lnet/minecraft/class_1263;method_5442()Znamed isEmptyLnet/minecraft/inventory/Inventory;isEmpty()Z
-
writeInventoryToNbt
- Mappings:
Namespace Name Mixin selector official cLcfu;c(Lsd;)Vintermediary method_42288Lnet/minecraft/class_7265;method_42288(Lnet/minecraft/class_2487;)Vnamed writeInventoryToNbtLnet/minecraft/entity/vehicle/VehicleInventory;writeInventoryToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readInventoryFromNbt
- Mappings:
Namespace Name Mixin selector official b_Lcfu;b_(Lsd;)Vintermediary method_42285Lnet/minecraft/class_7265;method_42285(Lnet/minecraft/class_2487;)Vnamed readInventoryFromNbtLnet/minecraft/entity/vehicle/VehicleInventory;readInventoryFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
onBroken
- Mappings:
Namespace Name Mixin selector official aLcfu;a(Lbjt;Lcsf;Lbkv;)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_Lcfu;c_(Lcdz;)Lbjb;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 fLcfu;f(Lcdz;)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 fLcfu;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 gLcfu;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_Lcfu;e_(I)Lclo;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_Lcfu;f_(I)Lclo;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 bLcfu;b(II)Lclo;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 cLcfu;c(ILclo;)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_Lcfu;g_(I)Lbmd;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 gLcfu;g(Lcdz;)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
-