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

Method SetAt

server/container/container.go:59–62  ·  view source on GitHub ↗

Add adds the item to the container and replaces the existing one if found, and returns if the operation was successful

(item item.Item, slot item.DataSlot)

Source from the content-addressed store, hash-verified

57
58// Add adds the item to the container and replaces the existing one if found, and returns if the operation was successful
59func (c *Container) SetAt(item item.Item, slot item.DataSlot) {
60 item.Slot = slot
61 c.Set(item)
62}
63
64// finds the item at the specified data slot
65func (c Container) Slot(slot item.DataSlot) (item.Item, bool) {

Callers 1

MergeMethod · 0.95

Calls 1

SetMethod · 0.95

Tested by

no test coverage detected