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 cah
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
default ItemStack
getInventoryStack
(int slot) default StackReference
getInventoryStackReference
(int slot) long
getPos()
getWorld()
default boolean
isEmpty()
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 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
- 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
- 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() -
writeInventoryToNbt
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
-