fromMaterial

public static SkillType fromMaterial(Material material)

Determines the weapon skill type from a material. Returns null if the material doesn't correspond to a weapon skill (e.g., armor, blocks, etc.)

Return

The corresponding SkillType, or null if not a weapon

Parameters

material

The material to check