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

Method deserialize

src/main/java/org/bukkit/FireworkEffect.java:372–383  ·  view source on GitHub ↗

@see ConfigurationSerializable @param map the map to deserialize @return the resulting serializable

(@NotNull Map<String, Object> map)

Source from the content-addressed store, hash-verified

370 * @return the resulting serializable
371 */
372 @NotNull
373 public static ConfigurationSerializable deserialize(@NotNull Map<String, Object> map) {
374 Type type = Type.valueOf((String) map.get(TYPE));
375
376 return builder()
377 .flicker((Boolean) map.get(FLICKER))
378 .trail((Boolean) map.get(TRAIL))
379 .withColor((Iterable<?>) map.get(COLORS))
380 .withFade((Iterable<?>) map.get(FADE_COLORS))
381 .with(type)
382 .build();
383 }
384
385 @NotNull
386 @Override

Callers

nothing calls this directly

Calls 9

builderMethod · 0.95
withFadeMethod · 0.80
withColorMethod · 0.80
trailMethod · 0.80
flickerMethod · 0.80
getMethod · 0.65
buildMethod · 0.65
valueOfMethod · 0.45
withMethod · 0.45

Tested by

no test coverage detected