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 bva
intermediary net/minecraft/class_7265
named net/minecraft/entity/vehicle/VehicleInventory
-
Field Summary
Fields inherited from interface net.minecraft.inventory.Inventory
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
(BiConsumer<GameEvent, Entity> gameEventEmitter, 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, 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 cZ
Lbva;cZ()Ldvs;
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 y
Lbva;y()Laaj;
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
Lbva;a(Laaj;)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 z
Lbva;z()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
Lbva;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 A
Lbva;A()Lhi;
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 C
Lbva;C()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 W
Lbva;W()Lcga;
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 du
Lbva;du()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
Lbva;c(Lpj;)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 a_
Lbva;a_(Lpj;)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
Lbva;a(Lazz;Lcga;Lbaq;)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 a
Lbva;a(Ljava/util/function/BiConsumer;Lbtf;)Lazm;
intermediary method_42284
Lnet/minecraft/class_7265;method_42284(Ljava/util/function/BiConsumer;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;
named open
Lnet/minecraft/entity/vehicle/VehicleInventory;open(Ljava/util/function/BiConsumer;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;
-
generateInventoryLoot
- Mappings:
Namespace Name Mixin selector official e
Lbva;e(Lbtf;)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
Lbva;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
Lbva;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 c_
Lbva;c_(I)Lcaa;
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 d_
Lbva;d_(I)Lcaa;
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
Lbva;b(II)Lcaa;
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
Lbva;c(ILcaa;)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 e_
Lbva;e_(I)Lbbw;
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 f
Lbva;f(Lbtf;)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
-