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 cdp
intermediary net/minecraft/class_7265
named 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 boolean
canPlayerAccess
(PlayerEntity player) default void
default void
generateInventoryLoot
(@Nullable PlayerEntity player) default ItemStack
getInventoryStack
(int slot) default StackReference
getInventoryStackReference
(int slot) @Nullable Identifier
long
getPos()
getWorld()
default boolean
isEmpty()
Returns whether the inventory consists entirely of empty item stacks.default boolean
boolean
default void
onBroken
(DamageSource source, World world, Entity vehicle) default ActionResult
open
(PlayerEntity player) default void
default ItemStack
removeInventoryStack
(int slot) default ItemStack
removeInventoryStack
(int slot, int amount) void
default void
setInventoryStack
(int slot, ItemStack stack) void
setLootTableId
(@Nullable Identifier lootTableId) void
setLootTableSeed
(long lootTableSeed) default void
Methods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getMaxCountPerStack, getStack, isValid, markDirty, onClose, onOpen, removeStack, removeStack, setStack, size
Methods inherited from interface net.minecraft.screen.NamedScreenHandlerFactory
getDisplayName
Methods inherited from interface net.minecraft.screen.ScreenHandlerFactory
createMenu
-
Method Details
-
getPos
Vec3d getPos()- Mappings:
Namespace Name Mixin selector official dj
Lcdp;dj()Lehn;
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
- Mappings:
Namespace Name Mixin selector official G
Lcdp;G()Laew;
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
- Mappings:
Namespace Name Mixin selector official a
Lcdp;a(Laew;)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 H
Lcdp;H()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
Lcdp;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 I
Lcdp;I()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 K
Lcdp;K()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 dL
Lcdp;dL()Lcpv;
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 dG
Lcdp;dG()Z
intermediary method_31481
Lnet/minecraft/class_7265;method_31481()Z
named isRemoved
Lnet/minecraft/entity/vehicle/VehicleInventory;isRemoved()Z
-
isEmpty
default boolean isEmpty()Returns whether the inventory consists entirely of empty item stacks.- Specified by:
isEmpty
in interfaceInventory
- Returns:
- whether the inventory consists entirely of empty item stacks
- Mappings:
Namespace Name Mixin selector official af_
Lbgr;af_()Z
intermediary method_5442
Lnet/minecraft/class_1263;method_5442()Z
named isEmpty
Lnet/minecraft/inventory/Inventory;isEmpty()Z
-
writeInventoryToNbt
- Mappings:
Namespace Name Mixin selector official c
Lcdp;c(Lqw;)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
- Mappings:
Namespace Name Mixin selector official b_
Lcdp;b_(Lqw;)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
- Mappings:
Namespace Name Mixin selector official a
Lcdp;a(Lbho;Lcpv;Lbiq;)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
- Mappings:
Namespace Name Mixin selector official c_
Lcdp;c_(Lcbu;)Lbgy;
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
- Mappings:
Namespace Name Mixin selector official f
Lcdp;f(Lcbu;)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
Lcdp;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
Lcdp;g()Z
intermediary method_42295
Lnet/minecraft/class_7265;method_42295()Z
named isInventoryEmpty
Lnet/minecraft/entity/vehicle/VehicleInventory;isInventoryEmpty()Z
-
removeInventoryStack
- Mappings:
Namespace Name Mixin selector official e_
Lcdp;e_(I)Lcjf;
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
- Mappings:
Namespace Name Mixin selector official f_
Lcdp;f_(I)Lcjf;
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
- Mappings:
Namespace Name Mixin selector official b
Lcdp;b(II)Lcjf;
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
- Mappings:
Namespace Name Mixin selector official c
Lcdp;c(ILcjf;)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
- Mappings:
Namespace Name Mixin selector official g_
Lcdp;g_(I)Lbjy;
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
- Mappings:
Namespace Name Mixin selector official g
Lcdp;g(Lcbu;)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
-