MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / Slot

Method Slot

server/container/container.go:65–72  ·  view source on GitHub ↗

finds the item at the specified data slot

(slot item.DataSlot)

Source from the content-addressed store, hash-verified

63
64// finds the item at the specified data slot
65func (c Container) Slot(slot item.DataSlot) (item.Item, bool) {
66 for _, item := range c {
67 if item.Slot == slot {
68 return item, true
69 }
70 }
71 return item.Air, false
72}
73
74func (c *Container) Merge(slot item.DataSlot, carriedItem *item.Item) {
75 if carriedItem.Is(item.Air) {

Callers 1

MergeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected