Package net.minecraft.entity.vehicle
Interface VehicleInventory
- All Superinterfaces:
Clearable
,Inventory
,NamedScreenHandlerFactory
,ScreenHandlerFactory
- All Known Implementing Classes:
AbstractChestBoatEntity
,ChestBoatEntity
,ChestMinecartEntity
,ChestRaftEntity
,HopperMinecartEntity
,StorageMinecartEntity
- Mappings:
Namespace Name named net/minecraft/entity/vehicle/VehicleInventory
intermediary net/minecraft/class_7265
official csa
-
Field Summary
Fields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGE
-
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()
Returns whether the inventory consists entirely of empty item stacks.default boolean
boolean
default void
onBroken
(DamageSource source, ServerWorld world, Entity vehicle) default ActionResult
open
(PlayerEntity player) default void
readInventoryFromNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) default ItemStack
removeInventoryStack
(int slot) default ItemStack
removeInventoryStack
(int slot, int amount) void
default void
setInventoryStack
(int slot, ItemStack stack) void
setLootTable
(@Nullable RegistryKey<LootTable> lootTable) void
setLootTableSeed
(long lootTableSeed) default void
writeInventoryToNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Methods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getMaxCount, 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 named getPos
Lnet/minecraft/entity/vehicle/VehicleInventory;getPos()Lnet/minecraft/util/math/Vec3d;
intermediary method_19538
Lnet/minecraft/class_7265;method_19538()Lnet/minecraft/class_243;
official du
Lcsa;du()Lfbx;
-
getBoundingBox
Box getBoundingBox()- Mappings:
Namespace Name Mixin selector named getBoundingBox
Lnet/minecraft/entity/vehicle/VehicleInventory;getBoundingBox()Lnet/minecraft/util/math/Box;
intermediary method_5829
Lnet/minecraft/class_7265;method_5829()Lnet/minecraft/class_238;
official cR
Lcsa;cR()Lfbs;
-
getLootTable
- Mappings:
Namespace Name Mixin selector named getLootTable
Lnet/minecraft/entity/vehicle/VehicleInventory;getLootTable()Lnet/minecraft/registry/RegistryKey;
intermediary method_42276
Lnet/minecraft/class_7265;method_42276()Lnet/minecraft/class_5321;
official v
Lcsa;v()Laly;
-
setLootTable
- Mappings:
Namespace Name Mixin selector named setLootTable
Lnet/minecraft/entity/vehicle/VehicleInventory;setLootTable(Lnet/minecraft/registry/RegistryKey;)V
intermediary method_42275
Lnet/minecraft/class_7265;method_42275(Lnet/minecraft/class_5321;)V
official a
Lcsa;a(Laly;)V
-
getLootTableSeed
long getLootTableSeed()- Mappings:
Namespace Name Mixin selector named getLootTableSeed
Lnet/minecraft/entity/vehicle/VehicleInventory;getLootTableSeed()J
intermediary method_42277
Lnet/minecraft/class_7265;method_42277()J
official x
Lcsa;x()J
-
setLootTableSeed
void setLootTableSeed(long lootTableSeed) - Mappings:
Namespace Name Mixin selector named setLootTableSeed
Lnet/minecraft/entity/vehicle/VehicleInventory;setLootTableSeed(J)V
intermediary method_42274
Lnet/minecraft/class_7265;method_42274(J)V
official a
Lcsa;a(J)V
-
getInventory
DefaultedList<ItemStack> getInventory()- Mappings:
Namespace Name Mixin selector named getInventory
Lnet/minecraft/entity/vehicle/VehicleInventory;getInventory()Lnet/minecraft/util/collection/DefaultedList;
intermediary method_42278
Lnet/minecraft/class_7265;method_42278()Lnet/minecraft/class_2371;
official B
Lcsa;B()Ljz;
-
resetInventory
void resetInventory()- Mappings:
Namespace Name Mixin selector named resetInventory
Lnet/minecraft/entity/vehicle/VehicleInventory;resetInventory()V
intermediary method_42273
Lnet/minecraft/class_7265;method_42273()V
official C
Lcsa;C()V
-
getWorld
World getWorld()- Mappings:
Namespace Name Mixin selector named getWorld
Lnet/minecraft/entity/vehicle/VehicleInventory;getWorld()Lnet/minecraft/world/World;
intermediary method_37908
Lnet/minecraft/class_7265;method_37908()Lnet/minecraft/class_1937;
official dW
Lcsa;dW()Ldhh;
-
isRemoved
boolean isRemoved()- Mappings:
Namespace Name Mixin selector named isRemoved
Lnet/minecraft/entity/vehicle/VehicleInventory;isRemoved()Z
intermediary method_31481
Lnet/minecraft/class_7265;method_31481()Z
official dR
Lcsa;dR()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 named isEmpty
Lnet/minecraft/inventory/Inventory;isEmpty()Z
intermediary method_5442
Lnet/minecraft/class_1263;method_5442()Z
official c
Lbtb;c()Z
-
writeInventoryToNbt
- Mappings:
Namespace Name Mixin selector named writeInventoryToNbt
Lnet/minecraft/entity/vehicle/VehicleInventory;writeInventoryToNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary method_42288
Lnet/minecraft/class_7265;method_42288(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
official a
Lcsa;a(Lux;Ljs$a;)V
-
readInventoryFromNbt
- Mappings:
Namespace Name Mixin selector named readInventoryFromNbt
Lnet/minecraft/entity/vehicle/VehicleInventory;readInventoryFromNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary method_42285
Lnet/minecraft/class_7265;method_42285(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
official b
Lcsa;b(Lux;Ljs$a;)V
-
onBroken
- Mappings:
Namespace Name Mixin selector named onBroken
Lnet/minecraft/entity/vehicle/VehicleInventory;onBroken(Lnet/minecraft/entity/damage/DamageSource;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)V
intermediary method_42283
Lnet/minecraft/class_7265;method_42283(Lnet/minecraft/class_1282;Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)V
official a
Lcsa;a(Lbtz;Lash;Lbvj;)V
-
open
- Mappings:
Namespace Name Mixin selector named open
Lnet/minecraft/entity/vehicle/VehicleInventory;open(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;
intermediary method_42284
Lnet/minecraft/class_7265;method_42284(Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;
official b_
Lcsa;b_(Lcpw;)Lbti;
-
generateInventoryLoot
- Mappings:
Namespace Name Mixin selector named generateInventoryLoot
Lnet/minecraft/entity/vehicle/VehicleInventory;generateInventoryLoot(Lnet/minecraft/entity/player/PlayerEntity;)V
intermediary method_42291
Lnet/minecraft/class_7265;method_42291(Lnet/minecraft/class_1657;)V
official f
Lcsa;f(Lcpw;)V
-
clearInventory
default void clearInventory()- Mappings:
Namespace Name Mixin selector named clearInventory
Lnet/minecraft/entity/vehicle/VehicleInventory;clearInventory()V
intermediary method_42293
Lnet/minecraft/class_7265;method_42293()V
official f
Lcsa;f()V
-
isInventoryEmpty
default boolean isInventoryEmpty()- Mappings:
Namespace Name Mixin selector named isInventoryEmpty
Lnet/minecraft/entity/vehicle/VehicleInventory;isInventoryEmpty()Z
intermediary method_42295
Lnet/minecraft/class_7265;method_42295()Z
official g
Lcsa;g()Z
-
removeInventoryStack
- Mappings:
Namespace Name Mixin selector named removeInventoryStack
Lnet/minecraft/entity/vehicle/VehicleInventory;removeInventoryStack(I)Lnet/minecraft/item/ItemStack;
intermediary method_42289
Lnet/minecraft/class_7265;method_42289(I)Lnet/minecraft/class_1799;
official f_
Lcsa;f_(I)Lcxo;
-
getInventoryStack
- Mappings:
Namespace Name Mixin selector named getInventoryStack
Lnet/minecraft/entity/vehicle/VehicleInventory;getInventoryStack(I)Lnet/minecraft/item/ItemStack;
intermediary method_42290
Lnet/minecraft/class_7265;method_42290(I)Lnet/minecraft/class_1799;
official g_
Lcsa;g_(I)Lcxo;
-
removeInventoryStack
- Mappings:
Namespace Name Mixin selector named removeInventoryStack
Lnet/minecraft/entity/vehicle/VehicleInventory;removeInventoryStack(II)Lnet/minecraft/item/ItemStack;
intermediary method_42286
Lnet/minecraft/class_7265;method_42286(II)Lnet/minecraft/class_1799;
official b
Lcsa;b(II)Lcxo;
-
setInventoryStack
- Mappings:
Namespace Name Mixin selector named setInventoryStack
Lnet/minecraft/entity/vehicle/VehicleInventory;setInventoryStack(ILnet/minecraft/item/ItemStack;)V
intermediary method_42287
Lnet/minecraft/class_7265;method_42287(ILnet/minecraft/class_1799;)V
official c
Lcsa;c(ILcxo;)V
-
getInventoryStackReference
- Mappings:
Namespace Name Mixin selector named getInventoryStackReference
Lnet/minecraft/entity/vehicle/VehicleInventory;getInventoryStackReference(I)Lnet/minecraft/inventory/StackReference;
intermediary method_42292
Lnet/minecraft/class_7265;method_42292(I)Lnet/minecraft/class_5630;
official h_
Lcsa;h_(I)Lbwx;
-
canPlayerAccess
- Mappings:
Namespace Name Mixin selector named canPlayerAccess
Lnet/minecraft/entity/vehicle/VehicleInventory;canPlayerAccess(Lnet/minecraft/entity/player/PlayerEntity;)Z
intermediary method_42294
Lnet/minecraft/class_7265;method_42294(Lnet/minecraft/class_1657;)Z
official g
Lcsa;g(Lcpw;)Z
-