MCPcopy Create free account
hub / github.com/Teneted/Tenet / valueOf

Method valueOf

src/main/java/org/bukkit/map/MapView.java:37–48  ·  view source on GitHub ↗

Get the scale given the raw value. @param value The raw scale @return The enum scale, or null for an invalid input @deprecated Magic value

(byte value)

Source from the content-addressed store, hash-verified

35 * @deprecated Magic value
36 */
37 @Deprecated
38 @Nullable
39 public static Scale valueOf(byte value) {
40 switch (value) {
41 case 0: return CLOSEST;
42 case 1: return CLOSE;
43 case 2: return NORMAL;
44 case 3: return FAR;
45 case 4: return FARTHEST;
46 default: return null;
47 }
48 }
49
50 /**
51 * Get the raw value of this scale level.

Callers 15

getScaleMethod · 0.95
pairMethod · 0.45
executeMethod · 0.45
addMaterialMethod · 0.45
legacyValueOfMethod · 0.45
deserializeMethod · 0.45
ChatColorEnum · 0.45
loadMapMethod · 0.45
deserializeMethod · 0.45
hashCodeMethod · 0.45
setResultMethod · 0.45
disallowMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected