MCPcopy Create free account
hub / github.com/e2wugui/zeze / getLocalBean

Method getLocalBean

ZezeJava/ZezeJava/src/main/java/Zeze/Game/Online.java:635–644  ·  view source on GitHub ↗
(long roleId, @NotNull String key)

Source from the content-addressed store, hash-verified

633 }
634
635 @SuppressWarnings("unchecked")
636 public <T extends Bean> @Nullable T getLocalBean(long roleId, @NotNull String key) {
637 var bLocal = _tlocal.get(roleId);
638 if (bLocal == null)
639 return null;
640 var data = bLocal.getDatas().get(key);
641 if (data == null)
642 return null;
643 return (T)data.getAny().getBean();
644 }
645
646 @SuppressWarnings("unchecked")
647 public <T extends Bean> @NotNull T getOrAddLocalBean(long roleId, @NotNull String key, @NotNull T defaultHint) {

Callers

nothing calls this directly

Calls 4

getMethod · 0.65
getBeanMethod · 0.65
getDatasMethod · 0.45
getAnyMethod · 0.45

Tested by

no test coverage detected