Advertisement
broken-arrow

Untitled

Dec 28th, 2021
979
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.54 KB | None | 0 0
  1.     private ContinerData.Builder setInCachetestold(Location location,SetTypeOfdataToCache dataSomeShallCache, ContinerData.Builder builder) {
  2.         ContainerData containerData = this.containerDataMap.get(location);
  3.        
  4.         if (dataSomeShallCache != SetTypeOfdataToCache.PLAYERUUID)
  5.             builder.setPlayerId(containerData.getPlayerId());
  6.         if (dataSomeShallCache != SetTypeOfdataToCache.TYPEOFCONTAINER)
  7.             builder.setTypeOfContainer(containerData.getTypeOfContainer());
  8.         if (dataSomeShallCache != SetTypeOfdataToCache.ISFILTERWHITEBLACK)
  9.             builder.setFilterWhiteBlack(containerData.isFilterWhiteBlack());
  10.         if (dataSomeShallCache != SetTypeOfdataToCache.CONTAINERUPDATE)
  11.             builder.setNextUpgrade(containerData.getNextUpgrade());
  12.         if (dataSomeShallCache != SetTypeOfdataToCache.CONTAINERFILENAME)
  13.             builder.setContainerFileName(containerData.getContainerFileName());
  14.         if (dataSomeShallCache != SetTypeOfdataToCache.FILTRERITEMS)
  15.             builder.setFilterItems(containerData.getFilterItems());
  16.         if (dataSomeShallCache != SetTypeOfdataToCache.CONTAINERCONTENTS)
  17.             builder.setChestContents(containerData.getChestContents());
  18.         if (dataSomeShallCache != SetTypeOfdataToCache.AMOUNTOFPAGES)
  19.             builder.setNumberOfPages(containerData.getNumberOfPages());
  20.         if (dataSomeShallCache != SetTypeOfdataToCache.TOTALSOLDAMOUNT)
  21.             builder.setTotalSoldAmount(containerData.getTotalSoldAmount());
  22.         if (dataSomeShallCache != SetTypeOfdataToCache.TOTALCRAFTAMOUNT)
  23.             builder.setTotalCraftAmount(containerData.getTotalCraftAmount());
  24.         if (dataSomeShallCache != SetTypeOfdataToCache.TOTALAMOUNTPICKEDUP)
  25.             builder.setTotalAmountPickedUp(containerData.getTotalAmountPickedUp());
  26.         if (dataSomeShallCache != SetTypeOfdataToCache.TOTALAMOUNTTELEPORTEDITEMS)
  27.             builder.setTotalAmountTeleportedItems(containerData.getTotalAmountTeleportedItems());
  28.         if (dataSomeShallCache != SetTypeOfdataToCache.LINKCONTAINERLINKEDTOLOCATION)
  29.             builder.setLinkContainerLinkedToLocation(containerData.getLinkContainerLinkedToLocation());
  30.         if (dataSomeShallCache != SetTypeOfdataToCache.AMONTOFITEMS)
  31.             builder.setAmountOfItems(containerData.getAmountOfItems());
  32.         if (dataSomeShallCache != SetTypeOfdataToCache.TOTALAMOUNTSOLDITEMS)
  33.             builder.setTotalAmountItemsSold(containerData.getTotalAmountItemsSold());
  34.         if (dataSomeShallCache != SetTypeOfdataToCache.TIMEBEFORERESET)
  35.             builder.setTimeBeforeReset(containerData.getTimeBeforeReset());
  36.         if (dataSomeShallCache != SetTypeOfdataToCache.AMOUNTPLACEFORFREE)
  37.             builder.setAmountPlaceForFree(containerData.getAmountPlaceForFree());
  38.  
  39.         return builder;
  40.  
  41.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement