Slot class Null safety

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. [...]
read-only, inherited
id int?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
slot String?
final

Methods

clone() Slot
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
Slot(slot: 'armor.chest', id: 102)
Container0 → const Slot
Slot(slot: 'container.0', id: 0)
Container1 → const Slot
Slot(slot: 'container.1', id: 1)
Container2 → const Slot
Slot(slot: 'container.2', id: 2)
Container3 → const Slot
Slot(slot: 'container.3', id: 3)
Container4 → const Slot
Slot(slot: 'container.4', id: 4)
Container5 → const Slot
Slot(slot: 'container.5', id: 5)
Container6 → const Slot
Slot(slot: 'container.6', id: 6)
Container7 → const Slot
Slot(slot: 'container.7', id: 7)
Container8 → const Slot
Slot(slot: 'container.8', id: 8)
Container9 → const Slot
Slot(slot: 'container.9', id: 9)
Container10 → const Slot
Slot(slot: 'container.10', id: 10)
Container11 → const Slot
Slot(slot: 'container.11', id: 11)
Container12 → const Slot
Slot(slot: 'container.12', id: 12)
Container13 → const Slot
Slot(slot: 'container.13', id: 13)
Container14 → const Slot
Slot(slot: 'container.14', id: 14)
Container15 → const Slot
Slot(slot: 'container.15', id: 15)
Container16 → const Slot
Slot(slot: 'container.16', id: 16)
Container17 → const Slot
Slot(slot: 'container.17', id: 17)
Container18 → const Slot
Slot(slot: 'container.18', id: 18)
Container19 → const Slot
Slot(slot: 'container.19', id: 19)
Container20 → const Slot
Slot(slot: 'container.20', id: 20)
Container21 → const Slot
Slot(slot: 'container.21', id: 21)
Container22 → const Slot
Slot(slot: 'container.22', id: 22)
Container23 → const Slot
Slot(slot: 'container.23', id: 23)
Container24 → const Slot
Slot(slot: 'container.24', id: 24)
Container25 → const Slot
Slot(slot: 'container.25', id: 25)
Container26 → const Slot
Slot(slot: 'container.26', id: 26)
Container27 → const Slot
Slot(slot: 'container.27', id: 27)
Container28 → const Slot
Slot(slot: 'container.28', id: 28)
Container29 → const Slot
Slot(slot: 'container.29', id: 29)
Container30 → const Slot
Slot(slot: 'container.30', id: 30)
Container31 → const Slot
Slot(slot: 'container.31', id: 31)
Container32 → const Slot
Slot(slot: 'container.32', id: 32)
Container33 → const Slot
Slot(slot: 'container.33', id: 33)
Container34 → const Slot
Slot(slot: 'container.34', id: 34)
Container35 → const Slot
Slot(slot: 'container.35', id: 35)
Container36 → const Slot
Slot(slot: 'container.36', id: 36)
Container37 → const Slot
Slot(slot: 'container.37', id: 37)
Container38 → const Slot
Slot(slot: 'container.38', id: 38)
Container39 → const Slot
Slot(slot: 'container.39', id: 39)
Container40 → const Slot
Slot(slot: 'container.40', id: 40)
Container41 → const Slot
Slot(slot: 'container.41', id: 41)
Container42 → const Slot
Slot(slot: 'container.42', id: 42)
Container43 → const Slot
Slot(slot: 'container.43', id: 43)
Container44 → const Slot
Slot(slot: 'container.44', id: 44)
Container45 → const Slot
Slot(slot: 'container.45', id: 45)
Container46 → const Slot
Slot(slot: 'container.46', id: 46)
Container47 → const Slot
Slot(slot: 'container.47', id: 47)
Container48 → const Slot
Slot(slot: 'container.48', id: 48)
Container49 → const Slot
Slot(slot: 'container.49', id: 49)
Container50 → const Slot
Slot(slot: 'container.50', id: 50)
Container51 → const Slot
Slot(slot: 'container.51', id: 51)
Container52 → const Slot
Slot(slot: 'container.52', id: 52)
Container53 → const Slot
Slot(slot: 'container.53', id: 53)
Enderchest0 → const Slot
Slot(slot: 'enderchest.0', id: 0)
Enderchest1 → const Slot
Slot(slot: 'enderchest.1', id: 1)
Enderchest2 → const Slot
Slot(slot: 'enderchest.2', id: 2)
Enderchest3 → const Slot
Slot(slot: 'enderchest.3', id: 3)
Enderchest4 → const Slot
Slot(slot: 'enderchest.4', id: 4)
Enderchest5 → const Slot
Slot(slot: 'enderchest.5', id: 5)
Enderchest6 → const Slot
Slot(slot: 'enderchest.6', id: 6)
Enderchest7 → const Slot
Slot(slot: 'enderchest.7', id: 7)
Enderchest8 → const Slot
Slot(slot: 'enderchest.8', id: 8)
Enderchest9 → const Slot
Slot(slot: 'enderchest.9', id: 9)
Enderchest10 → const Slot
Slot(slot: 'enderchest.10', id: 10)
Enderchest11 → const Slot
Slot(slot: 'enderchest.11', id: 11)
Enderchest12 → const Slot
Slot(slot: 'enderchest.12', id: 12)
Enderchest13 → const Slot
Slot(slot: 'enderchest.13', id: 13)
Enderchest14 → const Slot
Slot(slot: 'enderchest.14', id: 14)
Enderchest15 → const Slot
Slot(slot: 'enderchest.15', id: 15)
Enderchest16 → const Slot
Slot(slot: 'enderchest.16', id: 16)
Enderchest17 → const Slot
Slot(slot: 'enderchest.17', id: 17)
Enderchest18 → const Slot
Slot(slot: 'enderchest.18', id: 18)
Enderchest19 → const Slot
Slot(slot: 'enderchest.19', id: 19)
Enderchest20 → const Slot
Slot(slot: 'enderchest.20', id: 20)
Enderchest21 → const Slot
Slot(slot: 'enderchest.21', id: 21)
Enderchest22 → const Slot
Slot(slot: 'enderchest.22', id: 22)
Enderchest23 → const Slot
Slot(slot: 'enderchest.23', id: 23)
Enderchest24 → const Slot
Slot(slot: 'enderchest.24', id: 24)
Enderchest25 → const Slot
Slot(slot: 'enderchest.25', id: 25)
Enderchest26 → const Slot
Slot(slot: 'enderchest.26', id: 26)
Feet → const Slot
Slot(slot: 'armor.feet', id: 100)
Slot(slot: 'armor.head', id: 103)
Hotbar0 → const Slot
Slot(slot: 'hotbar.0', id: 0)
Hotbar1 → const Slot
Slot(slot: 'hotbar.1', id: 1)
Hotbar2 → const Slot
Slot(slot: 'hotbar.2', id: 2)
Hotbar3 → const Slot
Slot(slot: 'hotbar.3', id: 3)
Hotbar4 → const Slot
Slot(slot: 'hotbar.4', id: 4)
Hotbar5 → const Slot
Slot(slot: 'hotbar.5', id: 5)
Hotbar6 → const Slot
Slot(slot: 'hotbar.6', id: 6)
Hotbar7 → const Slot
Slot(slot: 'hotbar.7', id: 7)
Hotbar8 → const Slot
Slot(slot: 'hotbar.8', id: 8)
Inventory0 → const Slot
Slot(slot: 'inventory.0', id: 9)
Inventory1 → const Slot
Slot(slot: 'inventory.1', id: 10)
Inventory2 → const Slot
Slot(slot: 'inventory.2', id: 11)
Inventory3 → const Slot
Slot(slot: 'inventory.3', id: 12)
Inventory4 → const Slot
Slot(slot: 'inventory.4', id: 13)
Inventory5 → const Slot
Slot(slot: 'inventory.5', id: 14)
Inventory6 → const Slot
Slot(slot: 'inventory.6', id: 15)
Inventory7 → const Slot
Slot(slot: 'inventory.7', id: 16)
Inventory8 → const Slot
Slot(slot: 'inventory.8', id: 17)
Inventory9 → const Slot
Slot(slot: 'inventory.9', id: 18)
Inventory10 → const Slot
Slot(slot: 'inventory.10', id: 19)
Inventory11 → const Slot
Slot(slot: 'inventory.11', id: 20)
Inventory12 → const Slot
Slot(slot: 'inventory.12', id: 21)
Inventory13 → const Slot
Slot(slot: 'inventory.13', id: 22)
Inventory14 → const Slot
Slot(slot: 'inventory.14', id: 23)
Inventory15 → const Slot
Slot(slot: 'inventory.15', id: 24)
Inventory16 → const Slot
Slot(slot: 'inventory.16', id: 25)
Inventory17 → const Slot
Slot(slot: 'inventory.17', id: 26)
Inventory18 → const Slot
Slot(slot: 'inventory.18', id: 27)
Inventory19 → const Slot
Slot(slot: 'inventory.19', id: 28)
Inventory20 → const Slot
Slot(slot: 'inventory.20', id: 29)
Inventory21 → const Slot
Slot(slot: 'inventory.21', id: 30)
Inventory22 → const Slot
Slot(slot: 'inventory.22', id: 31)
Inventory23 → const Slot
Slot(slot: 'inventory.23', id: 32)
Inventory24 → const Slot
Slot(slot: 'inventory.24', id: 33)
Inventory25 → const Slot
Slot(slot: 'inventory.25', id: 34)
Inventory26 → const Slot
Slot(slot: 'inventory.26', id: 35)
Legs → const Slot
Slot(slot: 'armor.legs', id: 101)
MainHand → const Slot
Slot(slot: 'weapon.mainhand', id: -1)
OffHand → const Slot
Slot(slot: 'weapon.offhand', id: -106)