MCPcopy Create free account
hub / github.com/Bukkit/Bukkit / contains

Method contains

src/main/java/org/bukkit/inventory/Inventory.java:83–83  ·  view source on GitHub ↗

Check if the inventory contains any ItemStacks with the given materialId @param materialId The materialId to check for @return If any ItemStacks were found

(int materialId)

Source from the content-addressed store, hash-verified

81 * @return If any ItemStacks were found
82 */
83 public boolean contains(int materialId);
84
85 /**
86 * Check if the inventory contains any ItemStacks with the given material

Callers 15

testAddDefaultMethod · 0.65
testAddDefaults_MapMethod · 0.65
testSetDefaultsMethod · 0.65
testGetRootMethod · 0.65
removeAttachmentMethod · 0.65
isPluginEnabledMethod · 0.65
MonsterEggsMethod · 0.65
SmoothBrickMethod · 0.65
StepMethod · 0.65
setMaterialMethod · 0.65
hasKeyMethod · 0.65

Calls

no outgoing calls

Tested by 5

testAddDefaultMethod · 0.52
testAddDefaults_MapMethod · 0.52
testSetDefaultsMethod · 0.52
testGetRootMethod · 0.52