Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ContinerData.Builder setInCachetestold(Location location,SetTypeOfdataToCache dataSomeShallCache, ContinerData.Builder builder) {
- ContainerData containerData = this.containerDataMap.get(location);
- if (dataSomeShallCache != SetTypeOfdataToCache.PLAYERUUID)
- builder.setPlayerId(containerData.getPlayerId());
- if (dataSomeShallCache != SetTypeOfdataToCache.TYPEOFCONTAINER)
- builder.setTypeOfContainer(containerData.getTypeOfContainer());
- if (dataSomeShallCache != SetTypeOfdataToCache.ISFILTERWHITEBLACK)
- builder.setFilterWhiteBlack(containerData.isFilterWhiteBlack());
- if (dataSomeShallCache != SetTypeOfdataToCache.CONTAINERUPDATE)
- builder.setNextUpgrade(containerData.getNextUpgrade());
- if (dataSomeShallCache != SetTypeOfdataToCache.CONTAINERFILENAME)
- builder.setContainerFileName(containerData.getContainerFileName());
- if (dataSomeShallCache != SetTypeOfdataToCache.FILTRERITEMS)
- builder.setFilterItems(containerData.getFilterItems());
- if (dataSomeShallCache != SetTypeOfdataToCache.CONTAINERCONTENTS)
- builder.setChestContents(containerData.getChestContents());
- if (dataSomeShallCache != SetTypeOfdataToCache.AMOUNTOFPAGES)
- builder.setNumberOfPages(containerData.getNumberOfPages());
- if (dataSomeShallCache != SetTypeOfdataToCache.TOTALSOLDAMOUNT)
- builder.setTotalSoldAmount(containerData.getTotalSoldAmount());
- if (dataSomeShallCache != SetTypeOfdataToCache.TOTALCRAFTAMOUNT)
- builder.setTotalCraftAmount(containerData.getTotalCraftAmount());
- if (dataSomeShallCache != SetTypeOfdataToCache.TOTALAMOUNTPICKEDUP)
- builder.setTotalAmountPickedUp(containerData.getTotalAmountPickedUp());
- if (dataSomeShallCache != SetTypeOfdataToCache.TOTALAMOUNTTELEPORTEDITEMS)
- builder.setTotalAmountTeleportedItems(containerData.getTotalAmountTeleportedItems());
- if (dataSomeShallCache != SetTypeOfdataToCache.LINKCONTAINERLINKEDTOLOCATION)
- builder.setLinkContainerLinkedToLocation(containerData.getLinkContainerLinkedToLocation());
- if (dataSomeShallCache != SetTypeOfdataToCache.AMONTOFITEMS)
- builder.setAmountOfItems(containerData.getAmountOfItems());
- if (dataSomeShallCache != SetTypeOfdataToCache.TOTALAMOUNTSOLDITEMS)
- builder.setTotalAmountItemsSold(containerData.getTotalAmountItemsSold());
- if (dataSomeShallCache != SetTypeOfdataToCache.TIMEBEFORERESET)
- builder.setTimeBeforeReset(containerData.getTimeBeforeReset());
- if (dataSomeShallCache != SetTypeOfdataToCache.AMOUNTPLACEFORFREE)
- builder.setAmountPlaceForFree(containerData.getAmountPlaceForFree());
- return builder;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement