Slot class

The Slot object gives you certain utils to manipulate Inventories and Containers with the Item, Replaceitem or Data.

Constructors

Slot({String? slot, int? id})
The Slot object gives you certain utils to manipulate Inventories and Containers with the Item, Replaceitem or Data. Every Slot has a String(slot) like inventory.10 used in replaceitem and an id like 19 that is used with nbt data. objD should change between these values automatically for the specific usecase.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
id int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slot String?
final

Methods

clone() Slot
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

chest(int row, [int? col, bool enderchest = false]) Slot
Slot.chest takes in numbers, like 5,6 and an optional boolean for using an enderchest And does exactly the same as slot.inv but with a container, like a chest.
craft(int row, [int? col, int start = 1]) Slot
used to mark a 3x3 space inside a conventional container. takes in two numbers, like Slot.inv or one number from 1-9. The start options marks the upper left.
drop(int row, [int? col]) Slot
Slot.drop takes in numbers, like 1,3 This calculates the rows and columns for a 3x3 Container like a Dropper or a Dispenser. Therefore just values from 1 to 3 are allowed.
inv(int row, [int? col]) Slot
Slot.inv takes in two numbers, like 2,6 The first number represents the row in the inventory, so the second row And the second number is the sixth slot of that row.

Constants

Chest → const Slot
Container0 → const Slot
Container1 → const Slot
Container2 → const Slot
Container3 → const Slot
Container4 → const Slot
Container5 → const Slot
Container6 → const Slot
Container7 → const Slot
Container8 → const Slot
Container9 → const Slot
Container10 → const Slot
Container11 → const Slot
Container12 → const Slot
Container13 → const Slot
Container14 → const Slot
Container15 → const Slot
Container16 → const Slot
Container17 → const Slot
Container18 → const Slot
Container19 → const Slot
Container20 → const Slot
Container21 → const Slot
Container22 → const Slot
Container23 → const Slot
Container24 → const Slot
Container25 → const Slot
Container26 → const Slot
Container27 → const Slot
Container28 → const Slot
Container29 → const Slot
Container30 → const Slot
Container31 → const Slot
Container32 → const Slot
Container33 → const Slot
Container34 → const Slot
Container35 → const Slot
Container36 → const Slot
Container37 → const Slot
Container38 → const Slot
Container39 → const Slot
Container40 → const Slot
Container41 → const Slot
Container42 → const Slot
Container43 → const Slot
Container44 → const Slot
Container45 → const Slot
Container46 → const Slot
Container47 → const Slot
Container48 → const Slot
Container49 → const Slot
Container50 → const Slot
Container51 → const Slot
Container52 → const Slot
Container53 → const Slot
Enderchest0 → const Slot
Enderchest1 → const Slot
Enderchest2 → const Slot
Enderchest3 → const Slot
Enderchest4 → const Slot
Enderchest5 → const Slot
Enderchest6 → const Slot
Enderchest7 → const Slot
Enderchest8 → const Slot
Enderchest9 → const Slot
Enderchest10 → const Slot
Enderchest11 → const Slot
Enderchest12 → const Slot
Enderchest13 → const Slot
Enderchest14 → const Slot
Enderchest15 → const Slot
Enderchest16 → const Slot
Enderchest17 → const Slot
Enderchest18 → const Slot
Enderchest19 → const Slot
Enderchest20 → const Slot
Enderchest21 → const Slot
Enderchest22 → const Slot
Enderchest23 → const Slot
Enderchest24 → const Slot
Enderchest25 → const Slot
Enderchest26 → const Slot
Feet → const Slot
Hotbar0 → const Slot
Hotbar1 → const Slot
Hotbar2 → const Slot
Hotbar3 → const Slot
Hotbar4 → const Slot
Hotbar5 → const Slot
Hotbar6 → const Slot
Hotbar7 → const Slot
Hotbar8 → const Slot
Inventory0 → const Slot
Inventory1 → const Slot
Inventory2 → const Slot
Inventory3 → const Slot
Inventory4 → const Slot
Inventory5 → const Slot
Inventory6 → const Slot
Inventory7 → const Slot
Inventory8 → const Slot
Inventory9 → const Slot
Inventory10 → const Slot
Inventory11 → const Slot
Inventory12 → const Slot
Inventory13 → const Slot
Inventory14 → const Slot
Inventory15 → const Slot
Inventory16 → const Slot
Inventory17 → const Slot
Inventory18 → const Slot
Inventory19 → const Slot
Inventory20 → const Slot
Inventory21 → const Slot
Inventory22 → const Slot
Inventory23 → const Slot
Inventory24 → const Slot
Inventory25 → const Slot
Inventory26 → const Slot
Legs → const Slot
MainHand → const Slot
OffHand → const Slot