net.minecraft.entity.vehicle

public interface VehicleInventory

extends Inventory, NamedScreenHandlerFactory

net.minecraft.world.entity.vehicle.ContainerEntity
net.minecraft.class_7265
net.minecraft.entity.vehicle.VehicleInventory

Method summary

Modifier and TypeMethod
Vec3d
position()
method_73189()
getEntityPos()
Box
getBoundingBox()
method_5829()
getBoundingBox()
RegistryKey<LootTable>
getContainerLootTable()
method_42276()
getLootTable()
void
setContainerLootTable(ResourceKey<LootTable> lootTable)
method_42275(class_5321<class_52> arg0)
setLootTable(RegistryKey<LootTable> lootTable)
long
getContainerLootTableSeed()
method_42277()
getLootTableSeed()
void
setContainerLootTableSeed(long lootTableSeed)
method_42274(long arg0)
setLootTableSeed(long lootTableSeed)
DefaultedList<ItemStack>
getItemStacks()
method_42278()
getInventory()
void
clearItemStacks()
method_42273()
resetInventory()
World
level()
method_73183()
getEntityWorld()
boolean
isRemoved()
method_31481()
isRemoved()
default boolean
isEmpty()
method_5442()
isEmpty()
default void
addChestVehicleSaveData(ValueOutput output)
method_42288(class_11372 arg0)
writeInventoryToData(WriteView view)
default void
readChestVehicleSaveData(ValueInput input)
method_42285(class_11368 arg0)
readInventoryFromData(ReadView view)
default void
chestVehicleDestroyed(DamageSource source, ServerLevel level, Entity entity)
method_42283(class_1282 arg0, class_3218 arg1, class_1297 arg2)
onBroken(DamageSource source, ServerWorld world, Entity vehicle)
default ActionResult
interactWithContainerVehicle(Player player)
method_42284(class_1657 arg0)
open(PlayerEntity player)
default void
unpackChestVehicleLootTable(Player player)
method_42291(class_1657 arg0)
generateInventoryLoot(PlayerEntity player)
default void
clearChestVehicleContent()
method_42293()
clearInventory()
default boolean
isChestVehicleEmpty()
method_42295()
isInventoryEmpty()
default ItemStack
removeChestVehicleItemNoUpdate(int slot)
method_42289(int arg0)
removeInventoryStack(int slot)
default ItemStack
getChestVehicleItem(int slot)
method_42290(int arg0)
getInventoryStack(int slot)
default ItemStack
removeChestVehicleItem(int slot, int count)
method_42286(int arg0, int arg1)
removeInventoryStack(int slot, int amount)
default void
setChestVehicleItem(int slot, ItemStack itemStack)
method_42287(int arg0, class_1799 arg1)
setInventoryStack(int slot, ItemStack stack)
default StackReference
getChestVehicleSlot(int slot)
method_42292(int arg0)
getInventoryStackReference(int slot)
default boolean
isChestVehicleStillValid(Player player)
method_42294(class_1657 arg0)
canPlayerAccess(PlayerEntity player)