MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / addToList

Method addToList

src/main/java/net/optifine/CustomItems.java:549–565  ·  view source on GitHub ↗
(CustomItemProperties cp, List list, int id)

Source from the content-addressed store, hash-verified

547 }
548
549 private static void addToList(CustomItemProperties cp, List list, int id)
550 {
551 while (id >= list.size())
552 {
553 list.add(null);
554 }
555
556 List list1 = (List)list.get(id);
557
558 if (list1 == null)
559 {
560 list1 = new ArrayList();
561 list.set(id, list1);
562 }
563
564 list1.add(cp);
565 }
566
567 public static IBakedModel getCustomItemModel(ItemStack itemStack, IBakedModel model, ResourceLocation modelLocation, boolean fullModel)
568 {

Callers 2

addToItemListMethod · 0.95
addToEnchantmentListMethod · 0.95

Calls 4

getMethod · 0.65
sizeMethod · 0.45
addMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected