MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / getBookWithTitle

Method getBookWithTitle

src/main/java/gregapi/util/UT.java:599–601  ·  view source on GitHub ↗
(String aMapping)

Source from the content-addressed store, hash-verified

597 }
598
599 public static ItemStack getBookWithTitle(String aMapping) {
600 return getBookWithTitle(aMapping, null);
601 }
602 public static ItemStack getBookWithTitle(String aMapping, ItemStack aStackToPutNBT) {
603 ItemStack tStack = BOOK_MAP.get(aMapping);
604 if (tStack == null) return aStackToPutNBT==null?ST.make(Items.written_book, 1, 0):aStackToPutNBT;

Callers 1

bookMethod · 0.80

Calls 7

makeMethod · 0.95
copyMethod · 0.95
setMethod · 0.95
makeMethod · 0.95
getBookTitleMethod · 0.95
getBookAuthorMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected