mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-17 11:05:07 +00:00
Compare commits
14
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab8d5f275f | ||
|
|
9e87f2b158 | ||
|
|
ab512d3fd8 | ||
|
|
4a9f17590b | ||
|
|
a845e6c3e5 | ||
|
|
4f3a0826fe | ||
|
|
6cd7697ca0 | ||
|
|
38dc14eca1 | ||
|
|
1fc824410b | ||
|
|
af6dba1269 | ||
|
|
2bf5a1cf9f | ||
|
|
2126ec78bc | ||
|
|
5f6209366a | ||
|
|
f5fc4e704d |
No files matched your search
@@ -1,5 +1,7 @@
|
||||
# NotEnoughItems Unofficial - By the GTNH Team
|
||||
|
||||
🌐 **Languages:** [English](README.md) | [Українська](README_uk.md)
|
||||
|
||||
A continuation of NotEnoughItems for 1.7.10 by the developers of Gregtech: New Horizons modpack, with features either inspired and/or backported from JustEnoughItems
|
||||
|
||||
We've tested this against all of the mods included in GTNH, as well as a limited set of other mods (like Reika's mods). Every effort has been made to maintain backwards compatibility, however the focus is on the mods contained in the GTNH modpack.
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
# NotEnoughItems Unofficial — від команди GTNH
|
||||
|
||||
🌐 **Мови:** [English](README.md) | [Українська](README_uk.md)
|
||||
|
||||
Продовження модифікації NotEnoughItems для 1.7.10 від розробників збірки GregTech: New Horizons із функціями, натхненними та/або бекпортованими з JustEnoughItems.
|
||||
|
||||
Ми протестували цю версію з усіма модами, що входять до GTNH, а також із обмеженим набором інших модів (як-от моди від Reika). Було докладено всіх зусиль для збереження зворотної сумісності, однак основну увагу приділено модам зі збірки GTNH.
|
||||
|
||||
Якщо у вас виникли проблеми з NEI за межами збірки GTNH, ви можете повідомити про них у [GitHub-репозиторії GTNH NEI](https://github.com/GTNewHorizons/NotEnoughItems).
|
||||
|
||||
## Нові можливості:
|
||||
|
||||
* Швидкодія
|
||||
- Використовує паралельний потік для пошуку у списку предметів на кількох ядрах процесора, що в середньому пришвидшує пошук у 2–6 разів.
|
||||
- Завантажує обробники рецептів паралельно.
|
||||
* Текстове поле пошуку з більшістю очікуваних функцій — переміщення курсора вперед/назад, виділення тексту тощо.
|
||||
* Закладки! Перебуваєте у процесі крафту? Додайте потрібний рецепт до закладок за допомогою клавіші «A» або налаштуйте власну клавішу.
|
||||
* Перемикання видимості панелі закладок. Гаряча клавіша за замовчуванням — `B`. Меню «Підгрупи предметів» доступне лише тоді, коли панель закладок прихована.
|
||||
* Кнопки утиліт та читів вирівнюються в ряд та переносяться на новий рядок залежно від розміру графічного інтерфейсу.
|
||||
* Список предметів (`ItemList`) більше не генерується повторно з `ItemRegistry` під час кожного відкриття інвентарю.
|
||||
* Вкладки у стилі JEI (або творчого режиму) [За бажанням]. Примітка: вимагає явної підтримки для рендерингу `ItemStack`, інакше використовуються перші дві літери назви обробника.
|
||||
* Вкладки/обробники завантажуються з конфігураційного CSV-файлу в JAR-архіві (або за бажанням з папки `config`). Для авторів модів доступні IMC-повідомлення з NBT-даними `registerHandlerInfo` та `removeHandlerInfo` для додавання інформації про обробники з використанням тих самих полів, що й у CSV-файлі.
|
||||
* Пошук за допомогою синтаксису `@[Мод]->[предмет]`. Наприклад: `@Mod.gregtech->iron ingot`.
|
||||
* Перемикання між режимами рецептів, утиліт та читів за допомогою CTRL + ЛКМ по іконці гайкового ключа.
|
||||
* Інструменти/предмети з GT5u та інструменти з GT6 тепер мають коректно працювати з функцією накладення та перенесення рецепта.
|
||||
|
||||
### Обробник інформаційних сторінок
|
||||
Хочете додати інформацію про блок чи предмет, не створюючи для нього величезну підказку? Ви можете додати інформацію про будь-який блок чи предмет, зареєструвавши його в обробнику інформації.
|
||||
|
||||
Інформаційні сторінки відображаються під час пошуку рецептів або способів використання відповідного предмета. Усі відповідні предмети будуть циклічно змінюватися у верхній частині інформаційної сторінки.
|
||||
|
||||
Ваш мод може викликати:
|
||||
```java
|
||||
FMLInterModComms.sendMessage("NotEnoughItems", "addItemInfo", nbt);
|
||||
```
|
||||
Де `nbt` — це `NBTTagCompound`, відформатований, як описано нижче.
|
||||
|
||||
| Тег | Тип | Опис |
|
||||
|------------------|--------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `filter` | `String` | Текстовий фільтр для визначення предметів, для яких має відображатися ця інформаційна сторінка.<br/>Можна використовувати `modname:itemname`, метадані, теги OreDictionary та регулярні вирази. Повний формат можна переглянути у `config/NEI/collapsibleitems.cfg`. |
|
||||
| `page` / `pages` | `String` / `String NBTTagList` | Безпосередньо текст для відображення. Різницю між одно- та багатосторінковими повідомленнями див. нижче.<br/>Обидва формати підтримують автоматичний переклад наданих рядків. |
|
||||
|
||||
#### Односторінковий формат
|
||||
|
||||
Використовуйте текстовий тег `"page"`, якщо хочете додати лише одну сторінку інформації:
|
||||
```java
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
tag.setString("filter", "minecraft:log 3");
|
||||
tag.setString("page", "Exotic wood found in tropical climates.");
|
||||
|
||||
FMLInterModComms.sendMessage("NotEnoughItems", "addItemInfo", tag);
|
||||
```
|
||||
|
||||
#### Багатосторінковий формат
|
||||
|
||||
Використовуйте тег `"pages"` як `NBTTagList` із рядків, якщо потрібно додати понад одну сторінку:
|
||||
```java
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
tag.setString("filter", "minecraft:diamond_sword");
|
||||
|
||||
NBTTagList pages = new NBTTagList();
|
||||
pages.appendTag(new NBTTagString("A powerful melee weapon."));
|
||||
pages.appendTag(new NBTTagString("Can be enchanted for extra effects."));
|
||||
|
||||
tag.setTag("pages", pages);
|
||||
|
||||
FMLInterModComms.sendMessage("NotEnoughItems", "addItemInfo", tag);
|
||||
```
|
||||
* Кожен елемент списку — це одна сторінка.
|
||||
* Сторінки з’являтимуться в NEI з кнопками для їх гортання.
|
||||
|
||||
#### Відповідність предметів
|
||||
|
||||
Усі предмети, що відповідають фільтру `filter`, відображатимуть вашу інформаційну сторінку. Повний формат фільтра див. у `config/NEI/collapsibleitems.cfg`.
|
||||
|
||||
#### Файл конфігурації інформації про предмети
|
||||
|
||||
Якщо ви творець збірки модів і хочете створити власні інформаційні сторінки для предметів, їх можна легко додати у файлі `config/NEI/informationpages.cfg`, де також наведено ще кілька прикладів.
|
||||
|
||||
## Інші примітки:
|
||||
|
||||
* Вилучено стиль TMI
|
||||
* Вилучено збереження/завантаження стану інвентарю
|
||||
|
||||
## Ліцензія
|
||||
|
||||
Авторські права на модифікації від команди GTNH (c) 2019-2024 належать mitchej123 та команді GTNH.
|
||||
|
||||
Поширюється за ліцензією LGPL-3.0 або новішої версії — використовуйте цей код на власний розсуд, але, будь ласка, діліться з розробниками будь-якими внесеними вами змінами.
|
||||
|
||||
Окремі частини коду натхненні, запозичені або бекпортовані з [JEI](https://github.com/mezz/JustEnoughItems/tree/1.12) за ліцензією MIT.
|
||||
|
||||
Авторські права на оригінальний код (c) 2014-2015 належать mezz; код поширювався за ліцензією MIT.
|
||||
+4
-4
@@ -5,8 +5,8 @@ configurations.create('gtnhlibEmbed') {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api('com.github.GTNewHorizons:CodeChickenCore:1.4.17:dev')
|
||||
devOnlyNonPublishable('com.github.GTNewHorizons:GTNHLib:0.11.37:dev')
|
||||
api('com.github.GTNewHorizons:CodeChickenCore:1.4.19:dev')
|
||||
devOnlyNonPublishable('com.github.GTNewHorizons:GTNHLib:0.11.48:dev')
|
||||
|
||||
shadowImplementation('org.apache.commons:commons-csv:1.10.0')
|
||||
|
||||
@@ -23,8 +23,8 @@ dependencies {
|
||||
testRuntimeOnly('org.junit.platform:junit-platform-launcher')
|
||||
testRuntimeOnly("org.lwjgl.lwjgl:lwjgl:2.9.3");
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:GTNHLib:0.11.37") { transitive = false }
|
||||
gtnhlibEmbed("com.github.GTNewHorizons:GTNHLib:0.11.37") { transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:GTNHLib:0.11.48") { transitive = false }
|
||||
gtnhlibEmbed("com.github.GTNewHorizons:GTNHLib:0.11.48") { transitive = false }
|
||||
}
|
||||
|
||||
[tasks.jar, tasks.shadowJar].each {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#This file is generated by updateDaemonJvm
|
||||
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/97d46b5ff4df0bf61e95652a190a5567/redirect
|
||||
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/9ef54a08e06b0754cee9fc95ed3a3134/redirect
|
||||
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/97d46b5ff4df0bf61e95652a190a5567/redirect
|
||||
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/9ef54a08e06b0754cee9fc95ed3a3134/redirect
|
||||
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1df82b76031285ef2e6a4f59ffe9299d/redirect
|
||||
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/c7d5be6a02945ac2e045048ee54a7d32/redirect
|
||||
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/97d46b5ff4df0bf61e95652a190a5567/redirect
|
||||
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/9ef54a08e06b0754cee9fc95ed3a3134/redirect
|
||||
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/643f404f769811f5f265fd66f7af5d89/redirect
|
||||
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/38256085a73e137cb4937ea9c4807fec/redirect
|
||||
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
|
||||
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
|
||||
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
|
||||
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
|
||||
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/9064f22734b42ac03e85df04b632e167/redirect
|
||||
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/4d0277c49991306ac78048580fe34bcf/redirect
|
||||
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
|
||||
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
|
||||
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/a9fa3b809e484a1e1ac4308a5dda661a/redirect
|
||||
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/aa99913fa6d767d899ffc96082da01ca/redirect
|
||||
toolchainVersion=25
|
||||
@@ -17,6 +17,8 @@ public class ColorUtils {
|
||||
buttonLabelNormal = color.rgb("buttonLabelNormal", "0xE0E0E0"),
|
||||
buttonLabelHover = color.rgb("buttonLabelHover", "0xFFFFA0"),
|
||||
buttonLabelDisabled = color.rgb("buttonLabelDisabled", "0x601010"),
|
||||
buttonLabelInactive = color.rgb("buttonLabelInactive", "0xA0A0A0");
|
||||
buttonLabelInactive = color.rgb("buttonLabelInactive", "0xA0A0A0"),
|
||||
|
||||
craftingTreeLine = color.argb("craftingTreeLine", "0xFF888888");
|
||||
// spotless:on
|
||||
}
|
||||
@@ -6,11 +6,14 @@ import java.util.Comparator;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.FluidContainerRegistry;
|
||||
|
||||
import codechicken.lib.vec.Rectangle4i;
|
||||
import codechicken.nei.ItemsGrid.ItemsGridSlot;
|
||||
@@ -21,7 +24,6 @@ import codechicken.nei.recipe.GuiCraftingRecipe;
|
||||
import codechicken.nei.recipe.GuiRecipe;
|
||||
import codechicken.nei.recipe.ICraftingHandler;
|
||||
import codechicken.nei.recipe.IRecipeHandler;
|
||||
import codechicken.nei.recipe.Recipe;
|
||||
import codechicken.nei.recipe.Recipe.RecipeId;
|
||||
import codechicken.nei.recipe.RecipeInfo;
|
||||
import codechicken.nei.recipe.StackInfo;
|
||||
@@ -82,6 +84,42 @@ public class ItemCraftablesPanel
|
||||
|
||||
}
|
||||
|
||||
private static class CraftablesSnapshot {
|
||||
|
||||
final GuiContainer guiContainer;
|
||||
final ItemStackAmount inventory;
|
||||
final boolean showOnlyFavorites;
|
||||
final int maxCandidates;
|
||||
|
||||
CraftablesSnapshot(GuiContainer guiContainer, ItemStackAmount inventory, boolean showOnlyFavorites,
|
||||
int maxCandidates) {
|
||||
this.guiContainer = guiContainer;
|
||||
this.inventory = inventory;
|
||||
this.showOnlyFavorites = showOnlyFavorites;
|
||||
this.maxCandidates = maxCandidates;
|
||||
}
|
||||
}
|
||||
|
||||
private static class RecipeCandidate {
|
||||
|
||||
final IRecipeHandler handler;
|
||||
final int recipeIndex;
|
||||
final List<PositionedStack> ingredientStacks;
|
||||
final ItemStack sortKeyItem;
|
||||
|
||||
RecipeCandidate(IRecipeHandler handler, int recipeIndex, List<PositionedStack> ingredientStacks,
|
||||
ItemStack sortKeyItem) {
|
||||
this.handler = handler;
|
||||
this.recipeIndex = recipeIndex;
|
||||
this.ingredientStacks = ingredientStacks;
|
||||
this.sortKeyItem = sortKeyItem;
|
||||
}
|
||||
}
|
||||
|
||||
private static final Comparator<ItemStack> ITEM_SORT_COMPARATOR = Comparator
|
||||
.comparing(FavoriteRecipes::containsManual).thenComparing(FavoriteRecipes::contains).reversed()
|
||||
.thenComparing(ItemSorter.instance);
|
||||
|
||||
public static List<String> guiBlacklist = new ArrayList<>();
|
||||
private final int MIN_DELAY = 600;
|
||||
|
||||
@@ -93,6 +131,16 @@ public class ItemCraftablesPanel
|
||||
private long lastPlayerInventorySync = 0;
|
||||
private int lastFavoritesCount = 0;
|
||||
|
||||
private volatile CraftablesSnapshot pendingSnapshot;
|
||||
private final AtomicReference<Map<ItemStack, RecipeId>> pendingResult = new AtomicReference<>();
|
||||
private final RestartableTask task = new RestartableTask("NEI Craftables Panel") {
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
pendingResult.set(generateCraftables(ItemCraftablesPanel.this.pendingSnapshot));
|
||||
}
|
||||
};
|
||||
|
||||
public ItemCraftablesPanel() {
|
||||
this.grid = new ItemsGrid<>() {
|
||||
|
||||
@@ -114,12 +162,7 @@ public class ItemCraftablesPanel
|
||||
|
||||
if (!ItemCraftablesPanel.this.availableRecipes.isEmpty()) {
|
||||
final List<Map.Entry<ItemStack, RecipeId>> entries = ItemCraftablesPanel.this.availableRecipes
|
||||
.entrySet().stream()
|
||||
.sorted(
|
||||
Map.Entry.comparingByKey(
|
||||
Comparator.comparing(FavoriteRecipes::containsManual)
|
||||
.thenComparing(FavoriteRecipes::contains).reversed()
|
||||
.thenComparing(ItemSorter.instance)))
|
||||
.entrySet().stream().sorted(Map.Entry.comparingByKey(ITEM_SORT_COMPARATOR))
|
||||
.limit(maxSlotIndex).collect(Collectors.toList());
|
||||
int slotIndex = 0;
|
||||
int itemIndex = 0;
|
||||
@@ -195,10 +238,20 @@ public class ItemCraftablesPanel
|
||||
|
||||
public void update() {
|
||||
this.splittingLineColor = NEIClientConfig.getSetting("inventory.craftables.color").getHexValue();
|
||||
applyPendingResult();
|
||||
updateCraftables();
|
||||
super.update();
|
||||
}
|
||||
|
||||
private void applyPendingResult() {
|
||||
final Map<ItemStack, RecipeId> result = this.pendingResult.getAndSet(null);
|
||||
|
||||
if (result != null && NEIClientConfig.showCraftablesPanelWidget()) {
|
||||
this.availableRecipes = result;
|
||||
this.grid.onGridChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private void updateCraftables() {
|
||||
|
||||
if (!NEIClientConfig.showCraftablesPanelWidget()) {
|
||||
@@ -219,8 +272,14 @@ public class ItemCraftablesPanel
|
||||
this.lastPlayerInventory = inv;
|
||||
this.lastGuiContainer = firstGui;
|
||||
this.lastFavoritesCount = FavoriteRecipes.size();
|
||||
this.availableRecipes = generateCraftables(firstGui);
|
||||
this.grid.onGridChanged();
|
||||
final int maxRows = NEIClientConfig.getIntSetting("inventory.craftables.useRows") + 2;
|
||||
final int maxCandidates = Math.max(this.grid.columns, 1) * maxRows;
|
||||
this.pendingSnapshot = new CraftablesSnapshot(
|
||||
firstGui,
|
||||
inv,
|
||||
showOnlyFavorites,
|
||||
maxCandidates);
|
||||
this.task.restart();
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -244,17 +303,28 @@ public class ItemCraftablesPanel
|
||||
return (firstGui instanceof GuiRecipe<?>gui) ? gui.firstGui : firstGui;
|
||||
}
|
||||
|
||||
private Map<ItemStack, RecipeId> generateCraftables(GuiContainer firstGui) {
|
||||
final List<IRecipeHandler> availableHandlers = getAvailableHandlers(firstGui);
|
||||
private Map<ItemStack, RecipeId> generateCraftables(CraftablesSnapshot snapshot) {
|
||||
final List<IRecipeHandler> availableHandlers = getAvailableHandlers(snapshot.guiContainer);
|
||||
final Map<ItemStack, RecipeId> availableRecipes = new HashMap<>();
|
||||
|
||||
if (!availableHandlers.isEmpty()) {
|
||||
final List<ItemStack> invStacks = ItemCraftablesPanel.this.lastPlayerInventory.values();
|
||||
final Map<Item, List<ItemStack>> invByItem = indexInventoryByItem(snapshot.inventory.values());
|
||||
|
||||
for (IRecipeHandler handler : availableHandlers) {
|
||||
availableRecipes.putAll(filterHandlerRecipes(handler, firstGui, invStacks));
|
||||
if (snapshot.showOnlyFavorites) {
|
||||
for (IRecipeHandler handler : availableHandlers) {
|
||||
availableRecipes.putAll(filterHandlerRecipes(handler, invByItem, true));
|
||||
}
|
||||
} else {
|
||||
final List<RecipeCandidate> candidates = Collections.synchronizedList(new ArrayList<>());
|
||||
|
||||
for (IRecipeHandler handler : availableHandlers) {
|
||||
collectHandlerCandidates(handler, invByItem, candidates);
|
||||
}
|
||||
|
||||
candidates.sort(Comparator.comparing(c -> c.sortKeyItem, ITEM_SORT_COMPARATOR));
|
||||
candidates.subList(0, Math.min(candidates.size(), snapshot.maxCandidates)).parallelStream()
|
||||
.forEach(candidate -> buildCandidate(candidate, availableRecipes));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return availableRecipes;
|
||||
@@ -270,19 +340,126 @@ public class ItemCraftablesPanel
|
||||
return availableHandlers;
|
||||
}
|
||||
|
||||
private Map<ItemStack, RecipeId> filterHandlerRecipes(IRecipeHandler handler, GuiContainer firstGui,
|
||||
List<ItemStack> invStacks) {
|
||||
private static Map<Item, List<ItemStack>> indexInventoryByItem(List<ItemStack> invStacks) {
|
||||
final Map<Item, List<ItemStack>> index = new HashMap<>();
|
||||
|
||||
for (ItemStack stack : invStacks) {
|
||||
index.computeIfAbsent(stack.getItem(), i -> new ArrayList<>()).add(stack);
|
||||
}
|
||||
|
||||
return index;
|
||||
}
|
||||
|
||||
private void collectHandlerCandidates(IRecipeHandler handler, Map<Item, List<ItemStack>> invByItem,
|
||||
List<RecipeCandidate> candidates) {
|
||||
IntStream.range(0, handler.numRecipes()).parallel().forEach(recipeIndex -> {
|
||||
final List<PositionedStack> ingredientStacks = handler.getIngredientStacks(recipeIndex);
|
||||
|
||||
if (existsIngredients(ingredientStacks, invByItem)) {
|
||||
final ItemStack sortKeyItem = getCheapResultItem(handler, recipeIndex);
|
||||
|
||||
if (sortKeyItem != null) {
|
||||
candidates.add(new RecipeCandidate(handler, recipeIndex, ingredientStacks, sortKeyItem));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void buildCandidate(RecipeCandidate candidate, Map<ItemStack, RecipeId> availableRecipes) {
|
||||
final ItemStack result = getCheapResult(candidate.handler, candidate.recipeIndex);
|
||||
|
||||
if (result != null) {
|
||||
final RecipeId recipeId = RecipeId.of(candidate.handler, candidate.recipeIndex, candidate.ingredientStacks);
|
||||
|
||||
synchronized (availableRecipes) {
|
||||
availableRecipes.put(result, recipeId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static ItemStack getCheapResultItem(IRecipeHandler handler, int recipeIndex) {
|
||||
final PositionedStack resultStack = handler.getResultStack(recipeIndex);
|
||||
|
||||
if (resultStack != null) {
|
||||
return resultStack.item;
|
||||
}
|
||||
|
||||
final List<PositionedStack> otherStacks = handler.getOtherStacks(recipeIndex);
|
||||
|
||||
for (PositionedStack otherStack : otherStacks) {
|
||||
if (!FluidContainerRegistry.isContainer(otherStack.items[0])
|
||||
|| StackInfo.getFluid(otherStack.items[0]) != null) {
|
||||
return otherStack.item;
|
||||
}
|
||||
}
|
||||
|
||||
return otherStacks.isEmpty() ? null : otherStacks.get(0).item;
|
||||
}
|
||||
|
||||
private static ItemStack getCheapResult(IRecipeHandler handler, int recipeIndex) {
|
||||
final PositionedStack resultStack = handler.getResultStack(recipeIndex);
|
||||
final List<PositionedStack> results = resultStack != null ? Collections.singletonList(resultStack)
|
||||
: handler.getOtherStacks(recipeIndex);
|
||||
|
||||
if (results.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
ItemStack stack = null;
|
||||
|
||||
if (results.size() > 1) {
|
||||
for (PositionedStack result : results) {
|
||||
if (!FluidContainerRegistry.isContainer(result.item) || StackInfo.getFluid(result.item) != null) {
|
||||
stack = result.item;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (stack == null) {
|
||||
stack = results.get(0).item;
|
||||
}
|
||||
|
||||
int stackSize = 0;
|
||||
|
||||
for (PositionedStack result : results) {
|
||||
if (containsSameType(result, stack)) {
|
||||
stackSize += StackInfo.getAmount(result.item);
|
||||
}
|
||||
}
|
||||
|
||||
return StackInfo.withAmount(stack, stackSize);
|
||||
}
|
||||
|
||||
private static boolean containsSameType(PositionedStack pStack, ItemStack stack) {
|
||||
final ItemStack normalized = StackInfo.withAmount(stack, 0);
|
||||
|
||||
for (ItemStack permutation : pStack.items) {
|
||||
if (NEIServerUtils.areStacksSameTypeWithNBT(StackInfo.withAmount(permutation, 0), normalized)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private Map<ItemStack, RecipeId> filterHandlerRecipes(IRecipeHandler handler, Map<Item, List<ItemStack>> invByItem,
|
||||
boolean showOnlyFavorites) {
|
||||
final Map<ItemStack, RecipeId> availableRecipes = new HashMap<>();
|
||||
final boolean showOnlyFavorites = NEIClientConfig.getBooleanSetting("inventory.craftables.favoritesOnly");
|
||||
|
||||
IntStream.range(0, handler.numRecipes()).parallel().forEach(recipeIndex -> {
|
||||
if (existsIngredients(firstGui, handler.getIngredientStacks(recipeIndex), invStacks)) {
|
||||
final Recipe recipe = Recipe.of(handler, recipeIndex);
|
||||
final List<PositionedStack> ingredientStacks = handler.getIngredientStacks(recipeIndex);
|
||||
|
||||
if (!recipe.getResults().isEmpty()
|
||||
&& (!showOnlyFavorites || FavoriteRecipes.getFavorite(recipe.getRecipeId()) != null)) {
|
||||
synchronized (availableRecipes) {
|
||||
availableRecipes.put(recipe.getResult(), recipe.getRecipeId());
|
||||
if (existsIngredients(ingredientStacks, invByItem)) {
|
||||
final ItemStack result = getCheapResult(handler, recipeIndex);
|
||||
|
||||
if (result != null) {
|
||||
final RecipeId recipeId = RecipeId.of(handler, recipeIndex, ingredientStacks);
|
||||
|
||||
if (!showOnlyFavorites || FavoriteRecipes.getFavorite(recipeId) != null) {
|
||||
synchronized (availableRecipes) {
|
||||
availableRecipes.put(result, recipeId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -291,14 +468,27 @@ public class ItemCraftablesPanel
|
||||
return availableRecipes;
|
||||
}
|
||||
|
||||
private boolean existsIngredients(GuiContainer firstGui, List<PositionedStack> ingredients,
|
||||
List<ItemStack> invStacks) {
|
||||
private boolean existsIngredients(List<PositionedStack> ingredients, Map<Item, List<ItemStack>> invByItem) {
|
||||
final Map<ItemStack, Integer> usedItems = new HashMap<>();
|
||||
|
||||
for (PositionedStack pStack : ingredients) {
|
||||
final ItemStack used = invStacks.stream().filter(
|
||||
is -> usedItems.getOrDefault(is, is.stackSize) >= pStack.item.stackSize && pStack.contains(is))
|
||||
.findAny().orElse(null);
|
||||
ItemStack used = null;
|
||||
|
||||
for (ItemStack permutation : pStack.items) {
|
||||
final List<ItemStack> candidates = invByItem.get(permutation.getItem());
|
||||
|
||||
if (candidates == null) continue;
|
||||
|
||||
for (ItemStack is : candidates) {
|
||||
if (usedItems.getOrDefault(is, is.stackSize) >= pStack.item.stackSize
|
||||
&& NEIServerUtils.areStacksSameTypeCrafting(permutation, is)) {
|
||||
used = is;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (used != null) break;
|
||||
}
|
||||
|
||||
if (used != null) {
|
||||
usedItems.put(used, usedItems.getOrDefault(used, used.stackSize) - pStack.item.stackSize);
|
||||
|
||||
@@ -571,7 +571,7 @@ public class NEIClientUtils extends NEIServerUtils {
|
||||
return multiplier;
|
||||
}
|
||||
|
||||
return StackInfo.itemStackToNBT(stack).hasKey("gtFluidName") ? 144 : stack.getMaxStackSize();
|
||||
return StackInfo.isFluidDisplayItem(stack) ? 144 : stack.getMaxStackSize();
|
||||
}
|
||||
|
||||
public static void drawRect(double left, double top, double width, double height, Color color) {
|
||||
|
||||
@@ -169,7 +169,7 @@ public class NEIController implements IContainerSlotClickHandler, IContainerInpu
|
||||
|
||||
if (GuiInfo.hasCustomSlots(gui)) return false;
|
||||
|
||||
if (NEIClientUtils.shiftKey()) {
|
||||
if (NEIClientUtils.shiftKey() && button != 2) { // MMB is used by other mods when an itemstack is picked.
|
||||
// fix small mouse movement while clicking causing slotIndex to be -999
|
||||
if (slotIndex == -999) {
|
||||
final Point mouse = GuiDraw.getMousePosition();
|
||||
|
||||
@@ -102,6 +102,7 @@ public class NEIModContainer extends DummyModContainer {
|
||||
gregTech5Loaded = Loader.isModLoaded("gregtech") && !Loader.isModLoaded("gregapi_post");
|
||||
gtnhLibLoaded = Loader.isModLoaded("gtnhlib");
|
||||
cubicChunksLoaded = Loader.isModLoaded("cubicchunks");
|
||||
ServerHandler.preInit();
|
||||
if (CommonUtils.isClient()) ClientHandler.preInit();
|
||||
asmDataTable = event.getAsmData();
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import net.minecraftforge.event.world.WorldEvent;
|
||||
|
||||
import codechicken.core.CommonUtils;
|
||||
import codechicken.lib.packet.PacketCustom;
|
||||
import codechicken.nei.item.ItemFluidDisplay;
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.PlayerEvent.PlayerChangedDimensionEvent;
|
||||
@@ -18,6 +19,7 @@ import cpw.mods.fml.common.gameevent.PlayerEvent.PlayerLoggedOutEvent;
|
||||
import cpw.mods.fml.common.gameevent.PlayerEvent.PlayerRespawnEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class ServerHandler {
|
||||
|
||||
@@ -31,6 +33,14 @@ public class ServerHandler {
|
||||
NEIActions.init();
|
||||
}
|
||||
|
||||
public static void preInit() {
|
||||
registerFluidDisplayItem();
|
||||
}
|
||||
|
||||
private static void registerFluidDisplayItem() {
|
||||
GameRegistry.registerItem(new ItemFluidDisplay(), "neiFluidDisplay");
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void tickEvent(TickEvent.WorldTickEvent event) {
|
||||
if (event.phase == Phase.START && !event.world.isRemote
|
||||
|
||||
@@ -146,14 +146,14 @@ public class API {
|
||||
* Hide an item from the item panel Damage values of OreDictionary.WILDCARD_VALUE and ItemStackMap.WILDCARD_TAG tags
|
||||
* function as wildcards for their respective variables
|
||||
*/
|
||||
public static void hideItem(ItemStack item) {
|
||||
public static synchronized void hideItem(ItemStack item) {
|
||||
if (!ItemInfo.hiddenItems.contains(item)) {
|
||||
ItemInfo.hiddenItems.add(item);
|
||||
LayoutManager.markItemsDirty();
|
||||
}
|
||||
}
|
||||
|
||||
public static void hideItem(String rule) {
|
||||
public static synchronized void hideItem(String rule) {
|
||||
ItemFilter filter = ItemStackFilterParser.parse(rule);
|
||||
if (filter != null) {
|
||||
ItemInfo.hiddenItemsRules.filters.add(filter);
|
||||
|
||||
@@ -36,6 +36,7 @@ import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.util.RegistryNamespaced;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
import net.minecraftforge.common.BiomeDictionary;
|
||||
import net.minecraftforge.common.IShearable;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
@@ -60,6 +61,7 @@ import codechicken.nei.config.HandlerDumper;
|
||||
import codechicken.nei.config.ItemPanelDumper;
|
||||
import codechicken.nei.config.RegistryDumper;
|
||||
import codechicken.nei.guihook.GuiContainerManager;
|
||||
import codechicken.nei.item.FluidDisplayRenderer;
|
||||
import codechicken.nei.item.ItemFluidDisplay;
|
||||
import codechicken.nei.recipe.BrewingRecipeHandler;
|
||||
import codechicken.nei.recipe.RecipeItemInputHandler;
|
||||
@@ -134,7 +136,7 @@ public class ItemInfo {
|
||||
|
||||
public static void preInit() {
|
||||
addMobSpawnerItem();
|
||||
addFluidDisplayItem();
|
||||
setupFluidDisplayItemClient();
|
||||
}
|
||||
|
||||
public static void load() {
|
||||
@@ -320,8 +322,9 @@ public class ItemInfo {
|
||||
GameDataManipulator.replaceItem(Block.getIdFromBlock(Blocks.mob_spawner), new ItemMobSpawner());
|
||||
}
|
||||
|
||||
private static void addFluidDisplayItem() {
|
||||
GameRegistry.registerItem(new ItemFluidDisplay(), "neiFluidDisplay");
|
||||
private static void setupFluidDisplayItemClient() {
|
||||
ItemFluidDisplay.INSTANCE.setCreativeTab(ItemFluidDisplay.tabFluids);
|
||||
MinecraftForgeClient.registerItemRenderer(ItemFluidDisplay.INSTANCE, new FluidDisplayRenderer());
|
||||
}
|
||||
|
||||
private static void addInfiniteHandlers() {
|
||||
|
||||
@@ -42,7 +42,7 @@ public class BookmarkItem {
|
||||
|
||||
this.groupId = groupId;
|
||||
this.stack = stack;
|
||||
this.factor = StackInfo.isFluidDisplayItem(stack) ? Math.min(144, nbTag.getInteger("Count")) : 1;
|
||||
this.factor = StackInfo.isFluidDisplayItem(stack) ? Math.max(nbTag.getInteger("Count"), 1) : 1;
|
||||
}
|
||||
|
||||
public Builder factor(long factor) {
|
||||
|
||||
@@ -19,6 +19,7 @@ import org.lwjgl.opengl.GL12;
|
||||
|
||||
import codechicken.lib.gui.GuiDraw;
|
||||
import codechicken.lib.vec.Rectangle4i;
|
||||
import codechicken.nei.ColorUtils;
|
||||
import codechicken.nei.NEIClientUtils;
|
||||
import codechicken.nei.NEIClientUtils.Alignment;
|
||||
import codechicken.nei.PositionedStack;
|
||||
@@ -123,7 +124,7 @@ class CraftingTreeCanvas {
|
||||
18,
|
||||
18).build();
|
||||
|
||||
private static final Color LINE_COLOR = new Color(0xFF888888, true);
|
||||
private static final Color LINE_COLOR = new Color(ColorUtils.craftingTreeLine.getColor(), true);
|
||||
private static final int HOVER_COLOR = 0x66888888;
|
||||
private static final float BADGE_SCALE = 0.6f;
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class ItemTreeSlot {
|
||||
this.emptyStack = ingrItem.getItemStack(0);
|
||||
}
|
||||
|
||||
this.isFluidDisplay = StackInfo.itemStackToNBT(this.emptyStack).hasKey("gtFluidName");
|
||||
this.isFluidDisplay = StackInfo.isFluidDisplayItem(this.emptyStack);
|
||||
this.isContainerItem = isContainerItem(this.emptyStack);
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ class StatsPanel extends ScrollContainer {
|
||||
this.icon = icon;
|
||||
this.recipeId = recipeId;
|
||||
this.multiplier = multiplier;
|
||||
this.isFluidDisplay = StackInfo.itemStackToNBT(stack).hasKey("gtFluidName");
|
||||
this.isFluidDisplay = StackInfo.isFluidDisplayItem(stack);
|
||||
this.info = this.recipeId != null ? handlerInfo(this.recipeId.getHandlerName()) : null;
|
||||
this.w = SLOT_SIZE;
|
||||
this.h = SLOT_SIZE;
|
||||
|
||||
@@ -7,6 +7,7 @@ import net.minecraft.item.ItemStack;
|
||||
import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.api.IRecipeFilter;
|
||||
import codechicken.nei.api.ItemFilter;
|
||||
import codechicken.nei.api.ItemInfo;
|
||||
import codechicken.nei.recipe.IRecipeHandler;
|
||||
|
||||
public class RecipeFilter implements IRecipeFilter {
|
||||
@@ -78,7 +79,7 @@ public class RecipeFilter implements IRecipeFilter {
|
||||
if (pStack == null) return false;
|
||||
|
||||
for (ItemStack stack : pStack.items) {
|
||||
if (this.filter.matches(stack)) {
|
||||
if (!ItemInfo.isHidden(stack) && this.filter.matches(stack)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,17 +2,20 @@ package codechicken.nei.item;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.FontRenderer;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.client.IItemRenderer;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import codechicken.nei.util.ReadableNumberConverter;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class FluidDisplayRenderer implements IItemRenderer {
|
||||
|
||||
@Override
|
||||
@@ -49,7 +52,8 @@ public class FluidDisplayRenderer implements IItemRenderer {
|
||||
Minecraft.getMinecraft().getTextureManager().bindTexture(TextureMap.locationBlocksTexture);
|
||||
GL11.glColor4f(red, green, blue, 1F);
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
|
||||
OpenGlHelper
|
||||
.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
final Tessellator tessellator = Tessellator.instance;
|
||||
tessellator.startDrawingQuads();
|
||||
@@ -64,17 +68,17 @@ public class FluidDisplayRenderer implements IItemRenderer {
|
||||
}
|
||||
|
||||
private void renderAmountOverlay(ItemStack item, ItemFluidDisplay fluidDisplay) {
|
||||
final FluidStack fluidStack = fluidDisplay.getFluid(item);
|
||||
if (fluidStack == null || fluidStack.amount <= 0) {
|
||||
final long amount = fluidDisplay.getAmountLong(item);
|
||||
if (amount <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
String amountString = "";
|
||||
|
||||
if (fluidStack.amount < 10_000) {
|
||||
amountString = String.valueOf(fluidStack.amount) + "L";
|
||||
if (amount < 10_000) {
|
||||
amountString = String.valueOf(amount) + "L";
|
||||
} else {
|
||||
amountString = ReadableNumberConverter.INSTANCE.toWideReadableForm(fluidStack.amount) + "L";
|
||||
amountString = ReadableNumberConverter.INSTANCE.toWideReadableForm(amount) + "L";
|
||||
}
|
||||
|
||||
final FontRenderer fontRender = Minecraft.getMinecraft().fontRenderer;
|
||||
|
||||
@@ -10,7 +10,6 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
@@ -40,36 +39,32 @@ public class ItemFluidDisplay extends Item implements IFluidContainerItem {
|
||||
};
|
||||
|
||||
public ItemFluidDisplay() {
|
||||
setMaxStackSize(1);
|
||||
setUnlocalizedName("nei.fluidDisplay");
|
||||
setMaxStackSize(1);
|
||||
INSTANCE = this;
|
||||
|
||||
setCreativeTab(tabFluids);
|
||||
MinecraftForgeClient.registerItemRenderer(this, new FluidDisplayRenderer());
|
||||
}
|
||||
|
||||
public static ItemStack createStack(FluidStack fluidStack) {
|
||||
if (fluidStack == null || fluidStack.getFluid() == null) {
|
||||
return fluidStack == null ? null : createStack(fluidStack.getFluid(), fluidStack.amount);
|
||||
}
|
||||
|
||||
public static ItemStack createStack(Fluid fluid, long amount) {
|
||||
if (fluid == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
int fluidId;
|
||||
|
||||
try {
|
||||
fluidId = FluidRegistry.getFluidID(fluidStack.getFluid());
|
||||
fluidId = FluidRegistry.getFluidID(fluid);
|
||||
} catch (Exception e) {
|
||||
NEIClientConfig.logger.error("Failed to get fluid id for: " + fluidStack.getFluid().getName(), e);
|
||||
NEIClientConfig.logger.error("Failed to get fluid id for: " + fluid.getName(), e);
|
||||
return null;
|
||||
}
|
||||
|
||||
final ItemStack stack = new ItemStack(INSTANCE, 1, fluidId);
|
||||
final NBTTagCompound nbtTag = new NBTTagCompound();
|
||||
|
||||
if (fluidStack.tag != null) {
|
||||
nbtTag.setTag("FluidTag", fluidStack.tag.copy());
|
||||
}
|
||||
|
||||
nbtTag.setInteger("neiFluidDisplayAmount", fluidStack.amount);
|
||||
nbtTag.setLong("neiFluidDisplayAmount", amount);
|
||||
stack.setTagCompound(nbtTag);
|
||||
return stack;
|
||||
}
|
||||
@@ -88,23 +83,25 @@ public class ItemFluidDisplay extends Item implements IFluidContainerItem {
|
||||
}
|
||||
|
||||
final NBTTagCompound nbTag = stack.getTagCompound();
|
||||
final FluidStack fluidStack = new FluidStack(fluid, nbTag.getInteger("neiFluidDisplayAmount"));
|
||||
|
||||
if (nbTag.hasKey("FluidTag")) {
|
||||
fluidStack.tag = nbTag.getCompoundTag("FluidTag");
|
||||
}
|
||||
final FluidStack fluidStack = new FluidStack(
|
||||
fluid,
|
||||
(int) Math.min(nbTag.getLong("neiFluidDisplayAmount"), Integer.MAX_VALUE));
|
||||
|
||||
return fluidStack;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCapacity(ItemStack stack) {
|
||||
public long getAmountLong(ItemStack stack) {
|
||||
|
||||
if (stack == null || !(stack.getItem() instanceof ItemFluidDisplay) || !stack.hasTagCompound()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return stack.getTagCompound().getInteger("neiFluidDisplayAmount");
|
||||
return stack.getTagCompound().getLong("neiFluidDisplayAmount");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCapacity(ItemStack stack) {
|
||||
return (int) Math.min(getAmountLong(stack), Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -180,7 +177,7 @@ public class ItemFluidDisplay extends Item implements IFluidContainerItem {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item aItem, CreativeTabs aTab, List<ItemStack> aList) {
|
||||
for (int i = 0, j = FluidRegistry.getMaxID(); i < j; i++) {
|
||||
for (int i = 0, j = FluidRegistry.getMaxID(); i <= j; i++) {
|
||||
final Fluid fluid = FluidRegistry.getFluid(i);
|
||||
if (fluid == null) {
|
||||
continue;
|
||||
|
||||
@@ -70,7 +70,7 @@ public class GuiOverlayButton extends GuiRecipeButton {
|
||||
|
||||
if (format == ItemOverlayFormat.BACKGROUND) {
|
||||
NEIClientUtils.gl2DRenderContext(
|
||||
() -> drawRect(
|
||||
() -> GuiDraw.drawRect(
|
||||
this.slot.relx,
|
||||
this.slot.rely,
|
||||
this.slot.width,
|
||||
|
||||
@@ -4,7 +4,9 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.IdentityHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
@@ -43,7 +45,13 @@ public class Recipe {
|
||||
|
||||
if (!isShapedRecipe()) {
|
||||
// sort to ignore ingredients position in shapeless recipes
|
||||
this.ingredients.sort(Comparator.comparing(StackInfo::getItemStackGUID));
|
||||
final Map<ItemStack, String> guids = new IdentityHashMap<>();
|
||||
|
||||
for (ItemStack ingredient : this.ingredients) {
|
||||
guids.put(ingredient, StackInfo.getItemStackGUID(ingredient));
|
||||
}
|
||||
|
||||
this.ingredients.sort(Comparator.comparing(guids::get));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +60,10 @@ public class Recipe {
|
||||
}
|
||||
|
||||
public static RecipeId of(IRecipeHandler handler, int recipeIndex) {
|
||||
final List<PositionedStack> ingredients = handler.getIngredientStacks(recipeIndex);
|
||||
return of(handler, recipeIndex, handler.getIngredientStacks(recipeIndex));
|
||||
}
|
||||
|
||||
public static RecipeId of(IRecipeHandler handler, int recipeIndex, List<PositionedStack> ingredients) {
|
||||
final String handlerName = GuiRecipeTab.getHandlerInfo(handler).getHandlerName();
|
||||
PositionedStack pStackResult = handler.getResultStack(recipeIndex);
|
||||
|
||||
|
||||
@@ -2,13 +2,17 @@ package codechicken.nei.recipe;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import net.minecraft.client.gui.GuiRepair;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import codechicken.nei.ItemList;
|
||||
@@ -35,14 +39,17 @@ public class RepairRecipeHandler extends TemplateRecipeHandler {
|
||||
private static class ItemStackKey {
|
||||
|
||||
private final ItemStack stack;
|
||||
private final int hashCode;
|
||||
|
||||
public ItemStackKey(ItemStack stack) {
|
||||
this.stack = stack;
|
||||
this.hashCode = stack.isItemStackDamageable() ? stack.getItem().hashCode()
|
||||
: 31 * stack.getItem().hashCode() + stack.getItemDamage();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return stack.getItem().hashCode();
|
||||
return this.hashCode;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -104,22 +111,48 @@ public class RepairRecipeHandler extends TemplateRecipeHandler {
|
||||
reloadRepairRecipesTask.restart();
|
||||
}
|
||||
|
||||
private void buildCache() {
|
||||
final Map<ItemStackKey, RepairPair> recipes = new HashMap<>();
|
||||
private static final Set<Integer> knownBrokenItemTypes = ConcurrentHashMap.newKeySet();
|
||||
private static volatile List<ItemStack> uniqueMaterials;
|
||||
|
||||
for (ItemStack itemstack1 : ItemList.items) {
|
||||
recipes.computeIfAbsent(new ItemStackKey(itemstack1), key -> this.getRepairRecipe(key.stack));
|
||||
private void buildCache() {
|
||||
if (cachedRecipes != null) return;
|
||||
|
||||
uniqueMaterials = collectUniqueMaterials();
|
||||
|
||||
final Map<ItemStackKey, RepairPair> recipes = new ConcurrentHashMap<>();
|
||||
|
||||
try {
|
||||
ItemList.forkJoinPool.submit(
|
||||
() -> ItemList.items.parallelStream().forEach(
|
||||
itemstack1 -> recipes
|
||||
.computeIfAbsent(new ItemStackKey(itemstack1), key -> getRepairRecipe(key.stack))))
|
||||
.get();
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
NEIClientConfig.logger.error("Failed to build repair recipe cache", e);
|
||||
}
|
||||
|
||||
cachedRecipes = recipes.values().stream().filter(recipe -> recipe != null).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
private static List<ItemStack> collectUniqueMaterials() {
|
||||
final Map<Long, ItemStack> unique = new LinkedHashMap<>();
|
||||
for (ItemStack stack : ItemList.items) {
|
||||
final long key = ((long) Item.getIdFromItem(stack.getItem()) << 32) | (stack.getItemDamage() & 0xFFFFFFFFL);
|
||||
unique.putIfAbsent(key, stack);
|
||||
}
|
||||
return new ArrayList<>(unique.values());
|
||||
}
|
||||
|
||||
private RepairPair getRepairRecipe(ItemStack itemstack1) {
|
||||
if (!itemstack1.isItemStackDamageable()) return null;
|
||||
|
||||
final List<ItemStack> permutations = new ArrayList<>();
|
||||
final int itemId = Item.getIdFromItem(itemstack1.getItem());
|
||||
if (knownBrokenItemTypes.contains(itemId)) return null;
|
||||
|
||||
for (ItemStack itemstack2 : ItemList.items) {
|
||||
final List<ItemStack> permutations = new ArrayList<>();
|
||||
final List<ItemStack> candidates = uniqueMaterials != null ? uniqueMaterials : collectUniqueMaterials();
|
||||
|
||||
for (ItemStack itemstack2 : candidates) {
|
||||
try {
|
||||
if (itemstack1.getItem().getIsRepairable(itemstack1, itemstack2)) {
|
||||
final ItemStack right = itemstack2.copy();
|
||||
@@ -127,7 +160,8 @@ public class RepairRecipeHandler extends TemplateRecipeHandler {
|
||||
permutations.add(right);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// Catch exceptions from mods that don't properly implement getIsRepairable
|
||||
knownBrokenItemTypes.add(itemId);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -74,20 +74,18 @@ class SearchRecipeHandler<H extends IRecipeHandler> {
|
||||
}
|
||||
|
||||
List<Integer> filtered = null;
|
||||
final List<Integer> recipes = IntStream.range(0, filteredRecipes.size()).boxed()
|
||||
.collect(Collectors.toCollection(ArrayList::new));
|
||||
final List<Integer> recipes = IntStream.range(0, filteredRecipes.size()).boxed().collect(Collectors.toList());
|
||||
|
||||
try {
|
||||
filtered = ItemList.forkJoinPool.submit(
|
||||
() -> recipes.parallelStream()
|
||||
.filter(recipe -> mathRecipe(this.original, filteredRecipes.get(recipe), filter))
|
||||
.collect(Collectors.toCollection(ArrayList::new)))
|
||||
.collect(Collectors.toList()))
|
||||
.get();
|
||||
|
||||
filtered.sort((a, b) -> a - b);
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
}
|
||||
|
||||
return filtered;
|
||||
|
||||
@@ -59,7 +59,7 @@ public class StackInfo {
|
||||
|
||||
if (nbtTag != null) {
|
||||
nbtTag = (NBTTagCompound) nbtTag.copy();
|
||||
nbtTag.setInteger("Count", (int) Math.max(Math.min(customCount, Integer.MAX_VALUE), 0));
|
||||
nbtTag.setLong("Count", Math.max(customCount, 0));
|
||||
return loadFromNBT(nbtTag);
|
||||
}
|
||||
|
||||
@@ -126,7 +126,15 @@ public class StackInfo {
|
||||
}
|
||||
|
||||
public static boolean equalItemAndNBT(ItemStack stackA, ItemStack stackB, boolean useNBT) {
|
||||
if (stackA == null || stackB == null || stackA.getItem() != stackB.getItem()) {
|
||||
if (stackA == null || stackB == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isFluidDisplayItem(stackA)) {
|
||||
return isFluidDisplayItem(stackB) && getFluid(stackA).isFluidEqual(getFluid(stackB));
|
||||
}
|
||||
|
||||
if (stackA.getItem() != stackB.getItem()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -142,6 +150,10 @@ public class StackInfo {
|
||||
}
|
||||
|
||||
public static synchronized FluidStack getFluid(ItemStack stack) {
|
||||
if (stack == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
ItemStackKey key = new ItemStackKey(stack);
|
||||
FluidStack fluid = fluidcache.get(key);
|
||||
|
||||
@@ -158,7 +170,8 @@ public class StackInfo {
|
||||
}
|
||||
|
||||
public static boolean isFluidContainer(ItemStack stack) {
|
||||
return stack.getItem() instanceof IFluidContainerItem || FluidContainerRegistry.isContainer(stack);
|
||||
return stack.getItem() instanceof IFluidContainerItem && !isFluidDisplayItem(stack)
|
||||
|| FluidContainerRegistry.isContainer(stack);
|
||||
}
|
||||
|
||||
public static String getItemStackGUID(ItemStack stack) {
|
||||
|
||||
@@ -45,7 +45,7 @@ public class DefaultStackStringifyHandler implements IStackStringifyHandler {
|
||||
final ItemStack stack = ItemStack.loadItemStackFromNBT(nbtTag);
|
||||
|
||||
if (stack != null) {
|
||||
stack.stackSize = nbtTag.getInteger("Count");
|
||||
stack.stackSize = (int) Math.min(nbtTag.getLong("Count"), Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
return stack;
|
||||
|
||||
+3
-12
@@ -31,13 +31,10 @@ public class FluidDisplayStackStringifyHandler implements IStackStringifyHandler
|
||||
return null;
|
||||
}
|
||||
|
||||
final long amount = ((ItemFluidDisplay) stack.getItem()).getAmountLong(stack);
|
||||
final NBTTagCompound nbTag = new NBTTagCompound();
|
||||
nbTag.setString(NBT_FLUID_NAME, fluidStack.getFluid().getName());
|
||||
nbTag.setInteger("Count", saveStackSize ? fluidStack.amount : 1);
|
||||
|
||||
if (fluidStack.tag != null) {
|
||||
nbTag.setTag("FluidTag", fluidStack.tag.copy());
|
||||
}
|
||||
nbTag.setLong("Count", saveStackSize ? amount : 1);
|
||||
|
||||
return nbTag;
|
||||
}
|
||||
@@ -55,13 +52,7 @@ public class FluidDisplayStackStringifyHandler implements IStackStringifyHandler
|
||||
return null;
|
||||
}
|
||||
|
||||
final FluidStack fluidStack = new FluidStack(fluid, nbtTag.getInteger("Count"));
|
||||
|
||||
if (nbtTag.hasKey("FluidTag")) {
|
||||
fluidStack.tag = nbtTag.getCompoundTag("FluidTag");
|
||||
}
|
||||
|
||||
return ItemFluidDisplay.createStack(fluidStack);
|
||||
return ItemFluidDisplay.createStack(fluid, nbtTag.getLong("Count"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -67,10 +67,9 @@ public class GTFluidStackStringifyHandler implements IStackStringifyHandler {
|
||||
if (nbtTag.hasKey("gtFluidName")) {
|
||||
final String fluidName = nbtTag.getString("gtFluidName");
|
||||
final Fluid fluid = FluidRegistry.getFluid(fluidName);
|
||||
final int amount = nbtTag.getInteger("Count");
|
||||
|
||||
if (fluid != null) {
|
||||
return ItemFluidDisplay.createStack(new FluidStack(fluid, amount));
|
||||
return ItemFluidDisplay.createStack(fluid, nbtTag.getLong("Count"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,11 +97,7 @@ public class GTFluidStackStringifyHandler implements IStackStringifyHandler {
|
||||
Fluid fluid = FluidRegistry.getFluid(nbtTag.getString("Fluid").toLowerCase());
|
||||
|
||||
if (fluid != null) {
|
||||
FluidStack fluidStack = new FluidStack(fluid, stack.stackSize);
|
||||
if (nbtTag.hasKey("FluidTag")) {
|
||||
fluidStack.tag = nbtTag.getCompoundTag("FluidTag");
|
||||
}
|
||||
return fluidStack;
|
||||
return new FluidStack(fluid, stack.stackSize);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {}
|
||||
|
||||
@@ -4,8 +4,11 @@ import java.util.regex.Pattern;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
import codechicken.nei.api.ItemFilter;
|
||||
import codechicken.nei.recipe.StackInfo;
|
||||
import cpw.mods.fml.common.registry.GameData;
|
||||
|
||||
public class IdentifierFilter implements ItemFilter {
|
||||
@@ -18,15 +21,33 @@ public class IdentifierFilter implements ItemFilter {
|
||||
|
||||
@Override
|
||||
public boolean matches(ItemStack stack) {
|
||||
final FluidStack fluidStack = StackInfo.isFluidDisplayItem(stack) ? StackInfo.getFluid(stack) : null;
|
||||
|
||||
if (fluidStack != null) {
|
||||
return this.pattern.matcher(getFluidStringIdentifier(fluidStack) + "\n" + getFluidIdentifier(fluidStack))
|
||||
.find();
|
||||
}
|
||||
|
||||
return this.pattern.matcher(getStringIdentifier(stack) + "\n" + getIdentifier(stack)).find();
|
||||
}
|
||||
|
||||
protected String getFluidIdentifier(FluidStack fluidStack) {
|
||||
return String.valueOf(FluidRegistry.getFluidID(fluidStack.getFluid()));
|
||||
}
|
||||
|
||||
protected String getFluidStringIdentifier(FluidStack fluidStack) {
|
||||
final String name = FluidRegistry.getDefaultFluidName(fluidStack.getFluid());
|
||||
|
||||
return name == null || name.isEmpty() ? "Unknown:Unknown" : name;
|
||||
}
|
||||
|
||||
protected String getIdentifier(ItemStack stack) {
|
||||
return Item.getIdFromItem(stack.getItem()) + ":" + stack.getItemDamage();
|
||||
}
|
||||
|
||||
protected String getStringIdentifier(ItemStack stack) {
|
||||
String name = GameData.getItemRegistry().getNameForObject(stack.getItem());
|
||||
final String name = GameData.getItemRegistry().getNameForObject(stack.getItem());
|
||||
|
||||
return name == null || name.isEmpty() ? "Unknown:Unknown" : name;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,11 +7,12 @@ import java.util.regex.Pattern;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
import codechicken.nei.NEIClientConfig;
|
||||
import codechicken.nei.api.ItemFilter;
|
||||
import codechicken.nei.api.ItemInfo;
|
||||
import codechicken.nei.item.ItemFluidDisplay;
|
||||
import codechicken.nei.recipe.StackInfo;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.ModContainer;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
@@ -41,9 +42,10 @@ public class ModNameFilter implements ItemFilter {
|
||||
}
|
||||
|
||||
protected static String getModId(ItemStack itemStack) {
|
||||
final FluidStack fluidStack = StackInfo.isFluidDisplayItem(itemStack) ? StackInfo.getFluid(itemStack) : null;
|
||||
|
||||
if (itemStack.getItem() instanceof ItemFluidDisplay fluidDisplay) {
|
||||
return getFluidModId(fluidDisplay, itemStack);
|
||||
if (fluidStack != null) {
|
||||
return getFluidModId(fluidStack.getFluid());
|
||||
}
|
||||
|
||||
if (!ItemInfo.itemOwners.containsKey(itemStack.getItem())) {
|
||||
@@ -59,8 +61,7 @@ public class ModNameFilter implements ItemFilter {
|
||||
return ItemInfo.itemOwners.get(itemStack.getItem());
|
||||
}
|
||||
|
||||
private static String getFluidModId(ItemFluidDisplay fluidDisplay, ItemStack itemStack) {
|
||||
final Fluid fluid = FluidRegistry.getFluid(itemStack.getItemDamage());
|
||||
private static String getFluidModId(Fluid fluid) {
|
||||
final String fluidName = FluidRegistry.getDefaultFluidName(fluid);
|
||||
|
||||
if (!fluidOwners.containsKey(fluidName)) {
|
||||
|
||||
@@ -749,6 +749,9 @@ nei.subsets.Items.Weapons=Weapons
|
||||
nei.subsets.Items.Weapons.Ranged=Ranged
|
||||
nei.subsets.Items.Weapons.Swords=Swords
|
||||
nei.subsets.Untranslated=Untranslated
|
||||
nei.subsets.Favorites=Favorites
|
||||
nei.subsets.Favorites.Manual=Manual
|
||||
nei.subsets.Favorites.Generated=Generated
|
||||
nei.subsets.Mod=Mod
|
||||
|
||||
nei.presets.new=New Preset
|
||||
|
||||
@@ -0,0 +1,721 @@
|
||||
nei.load=Завантажити
|
||||
nei.save=Зберегти
|
||||
|
||||
# Клавіша керування PC/Linux
|
||||
nei.key.ctrl=CTRL
|
||||
nei.key.shift=SHIFT
|
||||
nei.key.alt=ALT
|
||||
nei.mouse.left=ЛКМ
|
||||
nei.mouse.right=ПКМ
|
||||
nei.mouse.middle=СКМ
|
||||
nei.mouse.other=Кнопка %d
|
||||
nei.mouse.scroll=Прокручування
|
||||
nei.mouse.drag=Перетягування
|
||||
# Клавіша Command на Mac
|
||||
nei.key.ctrl.mac=CMD
|
||||
nei.showHotkeys=Утримуйте %s для відображення гарячих клавіш
|
||||
|
||||
nei.bookmark.toggle=Закладки
|
||||
nei.bookmark.toggle.tip=Перемикнути видимість панелі закладок
|
||||
nei.bookmark.pullBookmarkedItems.tip=Перемістити всі предмети із закладок зі сховища до інвентарю
|
||||
|
||||
nei.bookmark.group=Група закладок
|
||||
nei.bookmark.group.include_group=Створити групу/Додати до групи
|
||||
nei.bookmark.group.exclude_group=Видалити групу/Виключити з групи
|
||||
nei.bookmark.group.toggle_mode=Перемикнути режим груп
|
||||
nei.bookmark.group.toggle_collapse=Згорнути/Розгорнути
|
||||
nei.bookmark.group.toggle_crafting_chain=Перемикнути ланцюжок крафту
|
||||
nei.bookmark.group.overlay_use=Заповнити сітку крафту
|
||||
nei.bookmark.group.sorting=Змінити позицію
|
||||
nei.bookmark.group.remove_recipe=Видалити групу
|
||||
nei.bookmark.group.pull_items=Перемістити всі предмети
|
||||
nei.bookmark.group.pull_items_shift=Перемістити відсутні предмети
|
||||
nei.bookmark.group.craft_missing=Скрафтити відсутні предмети
|
||||
nei.bookmark.group.craft_all=Скрафтити предмети
|
||||
nei.bookmark.group.chat_link=Надіслати групу закладок у чат
|
||||
nei.bookmark.item.sorting=Змінити позицію
|
||||
nei.bookmark.item.chat_link=Надіслати предмет у чат
|
||||
nei.bookmark.remove_recipe=Видалити рецепт
|
||||
nei.bookmark.remove_item=Видалити предмет
|
||||
nei.bookmark.add_item=Додати закладку
|
||||
nei.bookmark.add_item_with_recipe=Додати закладку з рецептом
|
||||
nei.bookmark.add_item_with_recipe_and_count=Додати закладку з рецептом і кількістю
|
||||
nei.bookmark.add_item_with_count=Додати закладку з кількістю
|
||||
nei.bookmark.change_quantity=Змінити кількість
|
||||
nei.bookmark.change_quantity_step=Змінити кількість із множником
|
||||
nei.bookmark.recipe.toggle_collapse=Згорнути/Розгорнути
|
||||
nei.bookmark.recipe.chat_link=Надіслати рецепт у чат
|
||||
nei.bookmark.crafting_chain=Ланцюжок крафту
|
||||
nei.bookmark.crafting_chain.input=Інгредієнти
|
||||
nei.bookmark.crafting_chain.missing=Відсутні предмети
|
||||
nei.bookmark.crafting_chain.output=Результати
|
||||
nei.bookmark.crafting_chain.remainder=Залишки
|
||||
nei.bookmark.crafting_chain.needed=Необхідні крафти
|
||||
nei.bookmark.crafting_chain.available=Доступні предмети
|
||||
nei.inventory.search.placeholder=Пошук...
|
||||
nei.itempanel.quantity.default=Один стек
|
||||
nei.itempanel.loading=Завантаження списку предметів...
|
||||
nei.itempanel.deleteItem=Знищити предмет
|
||||
nei.itempanel.collapsed.button=G
|
||||
nei.itempanel.collapsed.button.tip=Згорнути/Розгорнути всі згруповані предмети
|
||||
nei.itempanel.collapsed.hint.expand=Розгорнути групу (%d предметів)
|
||||
nei.itempanel.collapsed.hint.collapse=Згорнути групу (%d предметів)
|
||||
nei.itempanel.overlay_recipe=Накласти рецепт
|
||||
nei.itempanel.craft_missing=Скрафтити відсутні предмети
|
||||
nei.itempanel.craft_all=Скрафтити предмети
|
||||
nei.itempanel.fill_crafting_grid=Заповнити сітку крафту
|
||||
nei.itempanel.fill_crafting_grid_quantity=Заповнити сітку крафту з кількістю
|
||||
nei.itempanel.open_crafting=Рецепт створення цього предмета
|
||||
nei.itempanel.open_usage=Рецепти з використанням цього предмета
|
||||
nei.itempanel.infinite_item=Видати нескінченний предмет
|
||||
nei.itempanel.copy_name=Скопіювати назву предмета
|
||||
nei.itempanel.copy_oredict=Скопіювати OreDictionary предмета
|
||||
nei.itempanel.copy_id=Скопіювати ID предмета
|
||||
|
||||
nei.itempanel.chat_link_item=Надіслати посилання на предмет у чат
|
||||
|
||||
nei.enchant=Зачарування
|
||||
nei.enchant.level=Рівень
|
||||
nei.enchant.locked=Заблоковано
|
||||
nei.enchant.unlocked=Розблоковано
|
||||
|
||||
nei.potion.favourite=Обрані зілля
|
||||
nei.potion.duration=Тривалість
|
||||
nei.potion.level=Рівень
|
||||
|
||||
nei.inventory.options=Налаштування
|
||||
nei.inventory.options.tip=Налаштування NEI
|
||||
nei.inventory.options.tip.cheatmode.0=Режим рецептів
|
||||
nei.inventory.options.tip.cheatmode.1=Режим утиліт
|
||||
nei.inventory.options.tip.cheatmode.2=Режим читів
|
||||
nei.inventory.options.tip.cheatmode.disable=%s - натисніть тут для перемикання між режимами Рецептів, Утиліт та Читів.
|
||||
nei.inventory.prev=Назад
|
||||
nei.inventory.next=Далі
|
||||
nei.inventory.item_subsets=Підгрупи предметів
|
||||
nei.inventory.delete.inv=ЗНИЩИТИ ВСІ ПРЕДМЕТИ з поточного інвентарю
|
||||
nei.inventory.delete.one=Знищити %s
|
||||
nei.inventory.delete.all=Знищити ВСІ %s
|
||||
nei.inventory.delete.enable=Режим знищення
|
||||
nei.inventory.delete.1=Увімкнути режим знищення
|
||||
nei.inventory.delete.0=Вимкнути режим знищення
|
||||
nei.inventory.rain.enable=Дощ
|
||||
nei.inventory.rain.1=Увімкнути дощ
|
||||
nei.inventory.rain.0=Вимкнути дощ
|
||||
nei.inventory.magnet.enable=Режим магніту
|
||||
nei.inventory.magnet.1=Увімкнути режим магніту
|
||||
nei.inventory.magnet.0=Вимкнути режим магніту
|
||||
nei.inventory.dawn.enable=Світанок-полудень
|
||||
nei.inventory.dawn.disable=ПКМ: Вимкнути фазу світанок-полудень
|
||||
nei.inventory.dawn.set=Встановити час: Світанок
|
||||
nei.inventory.noon.enable=Полудень-сутінки
|
||||
nei.inventory.noon.disable=ПКМ: Вимкнути фазу полудень-сутінки
|
||||
nei.inventory.noon.set=Встановити час: Полудень
|
||||
nei.inventory.dusk.enable=Сутінки-опівніч
|
||||
nei.inventory.dusk.disable=ПКМ: Вимкнути фазу сутінки-опівніч
|
||||
nei.inventory.dusk.set=Встановити час: Сутінки
|
||||
nei.inventory.midnight.enable=Опівніч-світанок
|
||||
nei.inventory.midnight.disable=ПКМ: Вимкнути фазу опівніч-світанок
|
||||
nei.inventory.midnight.set=Встановити час: Опівніч
|
||||
nei.inventory.heal=Зцілити гравця
|
||||
nei.inventory.current.gamemode.0=Поточний режим гри: Виживання
|
||||
nei.inventory.current.gamemode.1=Поточний режим гри: Творчий
|
||||
nei.inventory.current.gamemode.2=Поточний режим гри: Творчий+
|
||||
nei.inventory.current.gamemode.3=Поточний режим гри: Пригодницький
|
||||
nei.inventory.tooltip.page=Сторінка: %s / %s [Натисніть %s для наступної сторінки]
|
||||
nei.inventory.tooltip.count.item=Кількість: %s
|
||||
nei.inventory.tooltip.count.fluid=Об’єм: %s
|
||||
|
||||
nei.inventory.gamemode.0=Встановити режим Виживання
|
||||
nei.inventory.gamemode.1=Встановити Творчий режим
|
||||
nei.inventory.gamemode.2=Встановити Творчий+ режим
|
||||
nei.inventory.gamemode.3=Встановити Пригодницький режим
|
||||
|
||||
nei.chat.gamemode.0=Тепер ви граєте в режимі Виживання
|
||||
nei.chat.gamemode.1=Тепер ви граєте у Творчому режимі
|
||||
nei.chat.gamemode.2=Тепер ви граєте в режимі Творчий+
|
||||
nei.chat.gamemode.3=Тепер ви граєте в Пригодницькому режимі
|
||||
nei.chat.rain.on=Дощ увімкнено
|
||||
nei.chat.rain.off=Дощ вимкнено
|
||||
nei.chat.time=День %d. %d:00
|
||||
nei.chat.give.noitem=Такого предмета не існує.
|
||||
nei.chat.recipe.error=Сталася помилка під час завантаження рецепта. Перегляньте лог для отримання деталей.
|
||||
nei.chat.render.error=Сталася помилка під час відображення предмета. Перегляньте лог для отримання деталей.
|
||||
nei.chat.chunkoverlay.0=Відображення чанків: Вимкнено
|
||||
nei.chat.chunkoverlay.1=Відображення чанків: Кути чанків
|
||||
nei.chat.chunkoverlay.2=Відображення чанків: Чанки
|
||||
nei.chat.chunkoverlay.3=Відображення чанків: Рудні жили GT
|
||||
nei.chat.moboverlay.0=Відображення спавну мобів: §cВимкнено
|
||||
nei.chat.moboverlay.1=Відображення спавну мобів: §2Увімкнено
|
||||
nei.chat.item_link.text=<%s> §6Натисніть, щоб додати закладку: %s
|
||||
nei.chat.item_link.item.text=Додати предмет у закладки
|
||||
nei.chat.item_link.recipe.text=Додати рецепт у закладки
|
||||
nei.chat.item_link.group.text=Додати групу в закладки
|
||||
nei.chat.bookmark_added.text=Закладку додано!
|
||||
|
||||
nei.chat.recipeid.many_params=Забагато параметрів! Використання: %s
|
||||
nei.chat.recipeid.not_found=Файл %s не знайдено!
|
||||
nei.chat.recipeid.diff.start=Розпочато порівняння рецептів!
|
||||
nei.chat.recipeid.diff.finish=Завершено порівняння рецептів!
|
||||
nei.chat.recipeid.dump.start=Розпочато опрацювання обробників рецептів!
|
||||
nei.chat.recipeid.dump.finish=Завершено опрацювання обробників рецептів!
|
||||
|
||||
nei.chat.untranslator.dump.start=Розпочато створення дампу untranslator!
|
||||
nei.chat.untranslator.dump.finish=Завершено створення дампу untranslator!
|
||||
nei.chat.untranslator.dump.error=Дочекайтеся завантаження предметів!
|
||||
nei.chat.untranslator.clear=Файл успішно видалено!
|
||||
nei.chat.untranslator.clear.error=Не вдалося видалити файл!
|
||||
|
||||
nei.options=Налаштування NEI
|
||||
nei.options.back=Повернутися
|
||||
nei.options.save=Зберегти
|
||||
nei.options.world=Світ
|
||||
nei.options.global=Глобально
|
||||
nei.options.global.tip.0=Налаштування застосовуються до всіх світів
|
||||
nei.options.global.tip.1=Натисніть W біля налаштування, щоб увімкнути перевизначення для цього світу
|
||||
nei.options.wbutton.tip.0=Використовуються глобальні налаштування
|
||||
nei.options.wbutton.tip.1=Перевизначення глобального налаштування
|
||||
|
||||
nei.options.keys=Прив’язка клавіш
|
||||
nei.options.keys.tip=Налаштувати гарячі клавіші NEI у вікні керування Minecraft
|
||||
nei.options.keys.gui=Інвентар NEI
|
||||
nei.options.keys.world=Світ NEI
|
||||
nei.options.keys.recipe=Рецепти NEI
|
||||
nei.options.keys.bookmark=Закладки NEI
|
||||
nei.options.keys.copy=Копіювання NEI
|
||||
nei.options.keys.itemzoom=Наближення предметів NEI
|
||||
nei.options.keys.showenchant=Показати зачарування
|
||||
nei.options.keys.recipe.recipe=Рецепт
|
||||
nei.options.keys.recipe.usage=Використання
|
||||
nei.options.keys.gui.enchant=Зачарування
|
||||
nei.options.keys.gui.potion=Зілля
|
||||
nei.options.keys.recipe.back=Повернутися до попереднього рецепту
|
||||
nei.options.keys.gui.prev=Попередня сторінка панелі предметів
|
||||
nei.options.keys.gui.next=Наступна сторінка панелі предметів
|
||||
nei.options.keys.gui.hide=Перемикнути видимість
|
||||
nei.options.keys.recipe.next_recipe=Наступний рецепт
|
||||
nei.options.keys.recipe.prev_recipe=Попередній рецепт
|
||||
nei.options.keys.recipe.next_machine=Наступна категорія
|
||||
nei.options.keys.recipe.prev_machine=Попередня категорія
|
||||
nei.options.keys.gui.search=Фокус на рядок пошуку
|
||||
nei.options.keys.bookmark.add=Додати закладку
|
||||
nei.options.keys.bookmark.remove_recipe=Видалити групу із закладок (Shift +)
|
||||
nei.options.keys.bookmark.pull_items=Перемістити всі предмети із закладок
|
||||
nei.options.keys.bookmark.hide=Перемикнути видимість панелі закладок
|
||||
nei.options.keys.bookmark.chat_link=Надіслати посилання в чат (Ctrl +)
|
||||
nei.options.keys.gui.overlay=Заповнити/Накласти сітку крафту
|
||||
nei.options.keys.gui.getprevioussearch=Попередній пошуковий запит
|
||||
nei.options.keys.gui.getnextsearch=Наступний пошуковий запит
|
||||
nei.options.keys.gui.next_tooltip=Наступна підказка
|
||||
nei.options.keys.copy.name=Скопіювати назву предмета (Ctrl +)
|
||||
nei.options.keys.gui.craft_items=Скрафтити предмети (Shift +)
|
||||
nei.options.keys.copy.oredict=Скопіювати OreDictionary предмета (Ctrl +)
|
||||
nei.options.keys.copy.identifier=Скопіювати ID предмета (Ctrl +)
|
||||
nei.options.keys.itemzoom.toggle=Перемикнути наближення предмета (Shift +)
|
||||
nei.options.keys.itemzoom.hold=Утримувати для відображення наближення предмета
|
||||
nei.options.keys.itemzoom.zoom_in=Збільшити масштаб предмета
|
||||
nei.options.keys.itemzoom.zoom_out=Зменшити масштаб предмета
|
||||
nei.options.keys.bookmark.favorite=Додати в обране (Shift +)
|
||||
nei.options.keys.bookmark.favorite_item=Перемикнути обране (Shift +)
|
||||
nei.options.keys.world.chunkoverlay=Відображення меж чанків
|
||||
nei.options.keys.world.moboverlay=Відображення спавну мобів
|
||||
nei.options.keys.world.highlight_tips=Контекстні підказки
|
||||
nei.options.keys.world.dawn=Світанок
|
||||
nei.options.keys.world.noon=Полудень
|
||||
nei.options.keys.world.dusk=Сутінки
|
||||
nei.options.keys.world.midnight=Опівніч
|
||||
nei.options.keys.world.rain=Дощ
|
||||
nei.options.keys.world.heal=Зцілення
|
||||
nei.options.keys.world.creative=Режим гри
|
||||
nei.options.keys.world.creative.tip=Перемикати режим гри
|
||||
|
||||
nei.options.inventory=Інвентар
|
||||
nei.options.inventory.bookmarks=Панель закладок
|
||||
nei.options.inventory.bookmarks.enabled=Видимість панелі закладок
|
||||
nei.options.inventory.bookmarks.enabled.true=Видима
|
||||
nei.options.inventory.bookmarks.enabled.false=Прихована
|
||||
nei.options.inventory.bookmarks.animation=Анімація закладок у стилі REI
|
||||
nei.options.inventory.bookmarks.animation.true=Так
|
||||
nei.options.inventory.bookmarks.animation.false=Ні
|
||||
nei.options.inventory.bookmarks.recipeChainDir=Напрямок ланцюжка крафту
|
||||
nei.options.inventory.bookmarks.recipeChainDir.0=Спочатку інгредієнти
|
||||
nei.options.inventory.bookmarks.recipeChainDir.1=Спочатку результат
|
||||
nei.options.inventory.bookmarks.recipeTooltipsMode=Показувати підказки рецептів у закладках
|
||||
nei.options.inventory.bookmarks.recipeTooltipsMode.0=Ніколи
|
||||
nei.options.inventory.bookmarks.recipeTooltipsMode.1=У горизонтальному вигляді
|
||||
nei.options.inventory.bookmarks.recipeTooltipsMode.2=У вертикальному вигляді
|
||||
nei.options.inventory.bookmarks.recipeTooltipsMode.3=Завжди
|
||||
nei.options.inventory.bookmarks.showRecipeMarkerMode=Показувати маркер рецепта
|
||||
nei.options.inventory.bookmarks.showRecipeMarkerMode.0=Не показувати
|
||||
nei.options.inventory.bookmarks.showRecipeMarkerMode.1=Текст
|
||||
nei.options.inventory.bookmarks.showRecipeMarkerMode.2=Тло
|
||||
nei.options.inventory.bookmarks.showRecipeHandlerIcon=Показувати іконку обробника
|
||||
nei.options.inventory.bookmarks.showRecipeHandlerIcon.true=Так
|
||||
nei.options.inventory.bookmarks.showRecipeHandlerIcon.false=Ні
|
||||
|
||||
nei.options.inventory.bookmarks.recipeMarkerColor=Колір маркера рецепта
|
||||
nei.options.inventory.bookmarks.ignorePotionOverlap=Ігнорувати перекриття з HUD ефектів зілля
|
||||
nei.options.inventory.bookmarks.ignorePotionOverlap.true=Так
|
||||
nei.options.inventory.bookmarks.ignorePotionOverlap.false=Ні
|
||||
nei.options.inventory.bookmarks.worldSpecific=Прив’язка до світу
|
||||
nei.options.inventory.bookmarks.worldSpecific.true=Так
|
||||
nei.options.inventory.bookmarks.worldSpecific.false=Ні
|
||||
nei.options.inventory.bookmarks.bookmarkItemsWithRecipe=Додавати в закладки предмети з рецептом
|
||||
nei.options.inventory.bookmarks.bookmarkItemsWithRecipe.true=Так
|
||||
nei.options.inventory.bookmarks.bookmarkItemsWithRecipe.false=Ні
|
||||
nei.options.inventory.bookmarks.bookmarkRecipeWithCount=Додавати в закладки рецепт з кількістю
|
||||
nei.options.inventory.bookmarks.bookmarkRecipeWithCount.true=Так
|
||||
nei.options.inventory.bookmarks.bookmarkRecipeWithCount.false=Ні
|
||||
nei.options.inventory.favorites=Обране
|
||||
nei.options.inventory.favorites.enabled=Видимість
|
||||
nei.options.inventory.favorites.enabled.true=Видимо
|
||||
nei.options.inventory.favorites.enabled.false=Приховано
|
||||
nei.options.inventory.favorites.worldSpecific=Прив’язка до світу
|
||||
nei.options.inventory.favorites.worldSpecific.true=Так
|
||||
nei.options.inventory.favorites.worldSpecific.false=Ні
|
||||
nei.options.inventory.favorites.showRecipeTooltipInPanel=Підказки рецептів у правій панелі
|
||||
nei.options.inventory.favorites.showRecipeTooltipInPanel.true=Так
|
||||
nei.options.inventory.favorites.showRecipeTooltipInPanel.false=Ні
|
||||
nei.options.inventory.favorites.showRecipeTooltipInGui=Підказки рецептів у меню рецептів
|
||||
nei.options.inventory.favorites.showRecipeTooltipInGui.true=Так
|
||||
nei.options.inventory.favorites.showRecipeTooltipInGui.false=Ні
|
||||
nei.options.inventory.favorites.depth=Глибина
|
||||
nei.options.inventory.favorites.generateSingleRecipeFavorites=Додавати в обране окремі рецепти
|
||||
nei.options.inventory.favorites.generateSingleRecipeFavorites.true=Так
|
||||
nei.options.inventory.favorites.generateSingleRecipeFavorites.false=Ні
|
||||
nei.options.inventory.hotkeysHelpText=Показувати підказки щодо гарячих клавіш
|
||||
nei.options.inventory.hotkeysHelpText.true=Так
|
||||
nei.options.inventory.hotkeysHelpText.false=Ні
|
||||
nei.options.inventory.showHotkeys=Показувати гарячі клавіші
|
||||
nei.options.inventory.showHotkeys.true=Так
|
||||
nei.options.inventory.showHotkeys.false=Ні
|
||||
nei.options.inventory.guirecipe=Інтерфейс рецептів
|
||||
nei.options.inventory.guirecipe.jeiStyleTabs=Вкладки у стилі JEI
|
||||
nei.options.inventory.guirecipe.jeiStyleTabs.true=Так
|
||||
nei.options.inventory.guirecipe.jeiStyleTabs.false=Ні [Дивак]
|
||||
nei.options.inventory.guirecipe.itemPresenceOverlay=Індикатор наявності предметів під час наведення на «?»
|
||||
nei.options.inventory.guirecipe.itemPresenceOverlay.0=Немає
|
||||
nei.options.inventory.guirecipe.itemPresenceOverlay.1=Іконка
|
||||
nei.options.inventory.guirecipe.itemPresenceOverlay.2=Тло
|
||||
nei.options.inventory.guirecipe.slotHighlightPresent=Підсвічувати наявні предмети
|
||||
nei.options.inventory.guirecipe.slotHighlightPresent.true=Так
|
||||
nei.options.inventory.guirecipe.slotHighlightPresent.false=Ні
|
||||
nei.options.inventory.guirecipe.infiniteScroll=Нескінченне прокручування
|
||||
nei.options.inventory.guirecipe.infiniteScroll.true=Так
|
||||
nei.options.inventory.guirecipe.infiniteScroll.false=Ні
|
||||
nei.options.inventory.guirecipe.jeiStyleRecipeCatalyst=Каталізатори рецептів у стилі JEI
|
||||
nei.options.inventory.guirecipe.jeiStyleRecipeCatalyst.0=Немає
|
||||
nei.options.inventory.guirecipe.jeiStyleRecipeCatalyst.1=Сітка
|
||||
nei.options.inventory.guirecipe.jeiStyleRecipeCatalyst.2=Прокручування
|
||||
nei.options.inventory.guirecipe.cycledIngredientsTooltip=Підказка щодо циклічних інгредієнтів
|
||||
nei.options.inventory.guirecipe.cycledIngredientsTooltip.true=Показувати
|
||||
nei.options.inventory.guirecipe.cycledIngredientsTooltip.false=Приховувати
|
||||
nei.options.inventory.guirecipe.handlerInfo=Віджет інформації про обробник
|
||||
nei.options.inventory.guirecipe.handlerInfo.tip=Використовуйте Shift+D в інтерфейсі рецептів
|
||||
nei.options.inventory.guirecipe.handlerInfo.true=Увімкнено
|
||||
nei.options.inventory.guirecipe.handlerInfo.false=Вимкнено
|
||||
|
||||
nei.options.inventory.guirecipe.scrollPages=Прокручування сторінок
|
||||
nei.options.inventory.guirecipe.scrollPages.true=Увімкнено
|
||||
nei.options.inventory.guirecipe.scrollPages.false=Вимкнено
|
||||
|
||||
nei.options.inventory.guirecipe.maxHeight=Максимальна висота
|
||||
nei.options.inventory.showItemQuantityWidget=Показувати віджет кількості предметів
|
||||
nei.options.inventory.showItemQuantityWidget.true=Так
|
||||
nei.options.inventory.showItemQuantityWidget.false=Ні
|
||||
nei.options.inventory.search=Віджет пошуку
|
||||
nei.options.inventory.search.widgetPosition=Позиція віджета
|
||||
nei.options.inventory.search.widgetPosition.true=По центру
|
||||
nei.options.inventory.search.widgetPosition.false=Праворуч
|
||||
nei.options.inventory.search.hideUntilSearching=Приховувати до початку пошуку
|
||||
nei.options.inventory.search.hideUntilSearching.true=Так
|
||||
nei.options.inventory.search.hideUntilSearching.false=Ні
|
||||
nei.options.inventory.search.widgetAutofocus=Автофокус
|
||||
nei.options.inventory.search.widgetAutofocus.0=Ні
|
||||
nei.options.inventory.search.widgetAutofocus.1=Так
|
||||
nei.options.inventory.search.widgetAutofocus.2=Розширений
|
||||
nei.options.inventory.search.patternMode=Режим пошуку
|
||||
nei.options.inventory.search.patternMode.0=Звичайний
|
||||
nei.options.inventory.search.patternMode.1=Розширений
|
||||
nei.options.inventory.search.patternMode.2=Регулярні вирази
|
||||
nei.options.inventory.search.patternMode.3=Розширений+
|
||||
nei.options.inventory.search.spaceMode=Пробіл працює як
|
||||
nei.options.inventory.search.spaceMode.0=Логічне «AND»
|
||||
nei.options.inventory.search.spaceMode.0.tip=Пробіл між токенами без префіксів працює як логічний оператор «AND»
|
||||
nei.options.inventory.search.spaceMode.1=Пробіл
|
||||
nei.options.inventory.search.spaceMode.1.tip=Пробіл між токенами без префіксів працює як звичайний пробіл
|
||||
nei.options.inventory.search.spaceMode.2=Логічне «AND» (в категорії)
|
||||
nei.options.inventory.search.spaceMode.2.tip=Пробіл працює як оператор «AND», але всі токени повинні бути в межах однієї категорії
|
||||
nei.options.inventory.search.quoteDropItemName=Брати в лапки назву перетягнутого предмета
|
||||
nei.options.inventory.search.quoteDropItemName.true=Так
|
||||
nei.options.inventory.search.quoteDropItemName.false=Ні
|
||||
nei.options.inventory.search.format=Формат пошуку
|
||||
nei.options.inventory.search.format.true=Старий формат
|
||||
nei.options.inventory.search.format.false=Розширений
|
||||
nei.options.inventory.search.modNameSearchMode=Пошук за назвою моду
|
||||
nei.options.inventory.search.modNameSearchMode.0=Завжди
|
||||
nei.options.inventory.search.modNameSearchMode.1=Префікс: %s
|
||||
nei.options.inventory.search.modNameSearchMode.2=Ніколи
|
||||
nei.options.inventory.search.tooltipSearchMode=Пошук у підказках
|
||||
nei.options.inventory.search.tooltipSearchMode.0=Завжди
|
||||
nei.options.inventory.search.tooltipSearchMode.1=Префікс: %s
|
||||
nei.options.inventory.search.tooltipSearchMode.2=Ніколи
|
||||
nei.options.inventory.search.identifierSearchMode=Пошук за ID ресурсу
|
||||
nei.options.inventory.search.identifierSearchMode.0=Завжди
|
||||
nei.options.inventory.search.identifierSearchMode.1=Префікс: %s
|
||||
nei.options.inventory.search.identifierSearchMode.2=Ніколи
|
||||
nei.options.inventory.search.oreDictSearchMode=Пошук у OreDictionary
|
||||
nei.options.inventory.search.oreDictSearchMode.0=Завжди
|
||||
nei.options.inventory.search.oreDictSearchMode.1=Префікс: %s
|
||||
nei.options.inventory.search.oreDictSearchMode.2=Ніколи
|
||||
nei.options.inventory.search.subsetsSearchMode=Пошук у підгрупах предметів
|
||||
nei.options.inventory.search.subsetsSearchMode.0=Завжди
|
||||
nei.options.inventory.search.subsetsSearchMode.1=Префікс: %s
|
||||
nei.options.inventory.search.subsetsSearchMode.2=Ніколи
|
||||
nei.options.inventory.guirecipe.creativeTabStyle=Стиль вкладок Creative чи JEI
|
||||
nei.options.inventory.guirecipe.creativeTabStyle.true=Creative
|
||||
nei.options.inventory.guirecipe.creativeTabStyle.false=JEI
|
||||
nei.options.inventory.optimize_gui_overlap_computation=Оптимізувати обчислення перекриття інтерфейсів
|
||||
nei.options.inventory.optimize_gui_overlap_computation.true=Так
|
||||
nei.options.inventory.optimize_gui_overlap_computation.false=Ні
|
||||
nei.options.inventory.autocrafting=Автокрафт
|
||||
nei.options.inventory.autocrafting.true=Увімкнено
|
||||
nei.options.inventory.autocrafting.false=Вимкнено
|
||||
nei.options.inventory.guirecipe.shiftOverlayRecipe=Утримувати Shift для переміщення предметів під час накладання рецепта
|
||||
nei.options.inventory.guirecipe.shiftOverlayRecipe.true=Так
|
||||
nei.options.inventory.guirecipe.shiftOverlayRecipe.false=Ні
|
||||
nei.options.inventory.widgetsenabled.true=NEI увімкнено
|
||||
nei.options.inventory.widgetsenabled.false=NEI вимкнено
|
||||
nei.options.inventory.cheatmode.0=Режим рецептів
|
||||
nei.options.inventory.cheatmode.1=Режим утиліт
|
||||
nei.options.inventory.cheatmode.2=Режим читів
|
||||
nei.options.inventory.guirecipe.profile=Профілювання рецептів
|
||||
nei.options.inventory.guirecipe.profile.true=Так
|
||||
nei.options.inventory.guirecipe.profile.false=Ні
|
||||
nei.options.inventory.itemsort=Сортування панелі предметів
|
||||
nei.options.inventory.itemIDs=ID предметів
|
||||
nei.options.inventory.itemIDs.0=Приховано
|
||||
nei.options.inventory.itemIDs.1=Авто
|
||||
nei.options.inventory.itemIDs.2=Відображаються
|
||||
nei.options.inventory.utilities=Утиліти
|
||||
nei.options.inventory.utilities.tip=Оберіть функції для режиму утиліт
|
||||
nei.options.inventory.utilities.time=Час
|
||||
nei.options.inventory.utilities.rain=Дощ
|
||||
nei.options.inventory.utilities.heal=Зцілення
|
||||
nei.options.inventory.utilities.delete=Знищення
|
||||
nei.options.inventory.utilities.magnet=Магніт
|
||||
nei.options.inventory.utilities.gamemode=Режим гри
|
||||
nei.options.inventory.utilities.enchant=Зачарування
|
||||
nei.options.inventory.utilities.potion=Зілля
|
||||
nei.options.inventory.utilities.item=Предмети
|
||||
nei.options.inventory.gamemodes=Режими гри
|
||||
nei.options.inventory.gamemodes.tip=Оберіть режими гри для перемикання
|
||||
nei.options.inventory.gamemodes.creative=Творчий
|
||||
nei.options.inventory.gamemodes.creative+=Творчий+
|
||||
nei.options.inventory.gamemodes.adventure=Пригодницький
|
||||
nei.options.inventory.itempanelScale=Масштаб панелі предметів (у відсотках)
|
||||
nei.options.inventory.disableMouseScrollTransfer=Вимкнути переміщення колесом миші
|
||||
nei.options.inventory.disableMouseScrollTransfer.true=Так
|
||||
nei.options.inventory.disableMouseScrollTransfer.false=Ні
|
||||
nei.options.inventory.invertMouseScrollTransfer=Інвертувати напрямок переміщення колесом миші
|
||||
nei.options.inventory.invertMouseScrollTransfer.true=Так
|
||||
nei.options.inventory.invertMouseScrollTransfer.false=Ні
|
||||
nei.options.inventory.gridRenderingCacheMode=Режим кешування візуалізації сітки
|
||||
nei.options.inventory.gridRenderingCacheMode.0=Вимкнено
|
||||
nei.options.inventory.gridRenderingCacheMode.1=Низький FPS
|
||||
nei.options.inventory.gridRenderingCacheMode.2=Заморожування
|
||||
nei.options.inventory.gridRenderingCacheFPS=FPS кешування візуалізації сітки
|
||||
nei.options.inventory.collapsibleItems=Групування предметів
|
||||
nei.options.inventory.collapsibleItems.enabled=Групування предметів
|
||||
nei.options.inventory.collapsibleItems.enabled.true=Увімкнено
|
||||
nei.options.inventory.collapsibleItems.enabled.false=Вимкнено
|
||||
nei.options.inventory.collapsibleItems.customName=Показувати власну назву групи
|
||||
nei.options.inventory.collapsibleItems.customName.true=Так
|
||||
nei.options.inventory.collapsibleItems.customName.false=Ні
|
||||
nei.options.inventory.collapsibleItems.expandedColor=Колір розгорнутої групи
|
||||
nei.options.inventory.collapsibleItems.collapsedColor=Колір згорнутої групи
|
||||
nei.options.inventory.history=Панель історії
|
||||
nei.options.inventory.history.enabled=Видимість панелі історії
|
||||
nei.options.inventory.history.enabled.true=Увімкнено
|
||||
nei.options.inventory.history.enabled.false=Вимкнено
|
||||
nei.options.inventory.history.color=Колір
|
||||
nei.options.inventory.history.useRows=Рядки
|
||||
nei.options.inventory.history.worldSpecific=Прив’язка до світу
|
||||
nei.options.inventory.history.worldSpecific.true=Так
|
||||
nei.options.inventory.history.worldSpecific.false=Ні
|
||||
nei.options.inventory.history.save=Збереження історії
|
||||
nei.options.inventory.history.save.true=Увімкнено
|
||||
nei.options.inventory.history.save.false=Вимкнено
|
||||
nei.options.inventory.craftables=Панель доступних крафтів
|
||||
nei.options.inventory.craftables.enabled=Видимість панелі доступних крафтів
|
||||
nei.options.inventory.craftables.enabled.true=Увімкнено
|
||||
nei.options.inventory.craftables.enabled.false=Вимкнено
|
||||
nei.options.inventory.craftables.color=Колір
|
||||
nei.options.inventory.craftables.useRows=Рядки
|
||||
nei.options.inventory.craftables.favoritesOnly=Показувати лише обрані
|
||||
nei.options.inventory.craftables.favoritesOnly.true=Так
|
||||
nei.options.inventory.craftables.favoritesOnly.false=Ні
|
||||
nei.options.inventory.subsets=Віджет підгруп
|
||||
nei.options.inventory.subsets.enabled=Видимість підгруп
|
||||
nei.options.inventory.subsets.enabled.true=Увімкнено
|
||||
nei.options.inventory.subsets.enabled.false=Вимкнено
|
||||
nei.options.inventory.subsets.widgetPosition=Позиція віджета
|
||||
nei.options.inventory.subsets.widgetPosition.true=Зверху
|
||||
nei.options.inventory.subsets.widgetPosition.false=Знизу
|
||||
nei.options.inventory.itemzoom=Панель наближення предметів
|
||||
nei.options.inventory.itemzoom.enabled=Видимість панелі наближення предметів
|
||||
nei.options.inventory.itemzoom.enabled.true=Увімкнено
|
||||
nei.options.inventory.itemzoom.enabled.false=Вимкнено
|
||||
nei.options.inventory.itemzoom.neiOnly=Лише для оверлеїв NEI
|
||||
nei.options.inventory.itemzoom.neiOnly.true=Увімкнено
|
||||
nei.options.inventory.itemzoom.neiOnly.false=Вимкнено
|
||||
nei.options.inventory.itemzoom.neiOnly.tip=Наближати предмети лише зі списків інгредієнтів та закладок JEI.
|
||||
nei.options.inventory.itemzoom.onlySolid=Показувати лише суцільні предмети
|
||||
nei.options.inventory.itemzoom.onlySolid.true=Увімкнено
|
||||
nei.options.inventory.itemzoom.onlySolid.false=Вимкнено
|
||||
nei.options.inventory.itemzoom.helpText=Показувати текст підказки
|
||||
nei.options.inventory.itemzoom.helpText.true=Увімкнено
|
||||
nei.options.inventory.itemzoom.helpText.false=Вимкнено
|
||||
nei.options.inventory.itemzoom.helpText.tip=Показувати назву «Наближення предмета» та гарячу клавішу перемикання під збільшеним предметом.
|
||||
nei.options.inventory.itemzoom.zoom=Рівень наближення
|
||||
nei.options.inventory.itemzoom.zoom.tip=Установіть менше значення, щоб зменшити ступінь наближення предмета.
|
||||
nei.options.inventory.itemzoom.showName=Показувати назву
|
||||
nei.options.inventory.itemzoom.showName.true=Показувати
|
||||
nei.options.inventory.itemzoom.showName.false=Приховувати
|
||||
nei.options.inventory.itemzoom.nameColor=Колір назви
|
||||
nei.options.inventory.itemUntranslator=Оригінальні назви предметів
|
||||
nei.options.inventory.itemUntranslator.true=Увімкнено
|
||||
nei.options.inventory.itemUntranslator.false=Вимкнено
|
||||
|
||||
nei.options.command=Команди
|
||||
nei.options.command.creative=Режим гри
|
||||
nei.options.command.creative.tip={0} = 1 для творчого, 0 для виживання, {1} = гравець
|
||||
nei.options.command.item=Предмет
|
||||
nei.options.command.item.tip={0} = гравець, {1} = ID, {2} = кількість, {3} = міцність/метадані, {4} = NBT, {5} = назва
|
||||
nei.options.command.time=Час
|
||||
nei.options.command.time.tip={0} = ігровий час
|
||||
nei.options.command.rain=Дощ
|
||||
nei.options.command.rain.tip={0} = 1 увімкнено, 0 вимкнено
|
||||
nei.options.command.heal=Зцілення
|
||||
nei.options.command.heal.tip={0} = гравець
|
||||
|
||||
nei.options.world.highlight_tips=Контекстні підказки
|
||||
nei.options.world.highlight_tips.hide=Приховані
|
||||
nei.options.world.highlight_tips.show=Відображаються
|
||||
nei.options.world.highlight_tips.sample=Зразок
|
||||
|
||||
nei.options.world.panels=Налаштування панелей
|
||||
nei.options.world.presets=Список пресетів
|
||||
|
||||
nei.options.world.overlays=Налаштування оверлеїв
|
||||
nei.options.world.overlays.lock=Фіксувати оверлеї між вимірами
|
||||
nei.options.world.overlays.lock.true=Увімкнено
|
||||
nei.options.world.overlays.lock.false=Вимкнено
|
||||
|
||||
nei.options.tools=Інструменти
|
||||
nei.options.tools.handler_load_from_config=Завантажувати обробники з конфігураційного файлу
|
||||
nei.options.tools.handler_load_from_config.true=Конфігурація
|
||||
nei.options.tools.handler_load_from_config.false=JAR
|
||||
nei.options.tools.catalyst_load_from_config=Завантажувати каталізатори з конфігураційного файлу
|
||||
nei.options.tools.catalyst_load_from_config.true=Конфігурація
|
||||
nei.options.tools.catalyst_load_from_config.false=JAR
|
||||
nei.options.tools.dump=Дампи даних
|
||||
nei.options.tools.dump.dump=Створити дамп
|
||||
nei.options.tools.dump.dumped=ID %s збережено в %s
|
||||
nei.options.tools.dump.mode.0=Використані
|
||||
nei.options.tools.dump.mode.1=Вільні
|
||||
nei.options.tools.dump.mode.2=Усі
|
||||
nei.options.tools.dump.item=Предметів
|
||||
nei.options.tools.dump.items=Предмети
|
||||
nei.options.tools.dump.block=Блоків
|
||||
nei.options.tools.dump.blocks=Блоки
|
||||
nei.options.tools.dump.potion=Зіллів
|
||||
nei.options.tools.dump.potions=Зілля
|
||||
nei.options.tools.dump.enchantment=Зачарувань
|
||||
nei.options.tools.dump.enchantments=Зачарування
|
||||
nei.options.tools.dump.biome=Біомів
|
||||
nei.options.tools.dump.biomes=Біоми
|
||||
nei.options.tools.dump.itempanel=Панель предметів
|
||||
nei.options.tools.dump.itempanel.dumped=Вміст панелі предметів збережено в %s
|
||||
nei.options.tools.dump.itempanel.mode.0=CSV
|
||||
nei.options.tools.dump.itempanel.mode.1=NBT
|
||||
nei.options.tools.dump.itempanel.mode.2=Json
|
||||
nei.options.tools.dump.itempanel.mode.3=PNG
|
||||
nei.options.tools.dump.itempanel.icon.dumped=Іконки панелі предметів збережено в %s
|
||||
nei.options.tools.dump.itempanel.icon.cancelled=Дамп скасовано
|
||||
nei.options.tools.dump.itempanel.icon.warning.1=§cУВАГА§r: Ви збираєтеся зберегти дамп %s предметів у роздільній здатності %sx%s
|
||||
nei.options.tools.dump.itempanel.icon.warning.2=Утримуйте %s під час натискання цієї кнопки, щоб продовжити
|
||||
nei.options.tools.dump.handlers=Обробники NEI
|
||||
nei.options.tools.dump.handlers.dumped=Обробники збережено в %s
|
||||
nei.options.tools.dump.handlers.mode.0=CSV
|
||||
nei.options.tools.dump.handlers.mode.1=Json
|
||||
|
||||
nei.debug.RecipeHandler.title=Налагодження обробника рецептів
|
||||
nei.debug.RecipeHandler.copy=Скопіювати
|
||||
nei.debug.RecipeHandler.Name=Назва
|
||||
nei.debug.RecipeHandler.Id=ID
|
||||
nei.debug.RecipeHandler.Key=Ключ
|
||||
nei.debug.RecipeHandler.HHack=H.Hack
|
||||
nei.debug.RecipeHandler.ModName=Назва моду
|
||||
nei.debug.RecipeHandler.ModId=ID моду
|
||||
nei.debug.RecipeHandler.Order=Порядок
|
||||
nei.debug.RecipeHandler.yShift=yShift
|
||||
nei.debug.RecipeHandler.MultiWidgets=Мультивіджети
|
||||
nei.debug.RecipeHandler.Height=Висота
|
||||
nei.debug.RecipeHandler.Width=Ширина
|
||||
nei.debug.RecipeHandler.ShowFavorites=Показувати обрані
|
||||
nei.debug.RecipeHandler.ShowOverlay=Показувати оверлеї
|
||||
nei.debug.RecipeHandler.ShowBadge=Показувати плашку
|
||||
nei.debug.RecipeHandler.AllowOverflowY=Дозволити вихід за межі Y
|
||||
nei.debug.RecipeHandler.AllowOverflowX=Дозволити вихід за межі X
|
||||
nei.debug.RecipeHandler.Override=Перевизначити
|
||||
nei.debug.RecipeHandler.checkbox.on=Увімк.
|
||||
nei.debug.RecipeHandler.checkbox.off=Вимк.
|
||||
nei.debug.RecipeHandler.yes=Так
|
||||
nei.debug.RecipeHandler.no=Ні
|
||||
nei.debug.RecipeHandler.reset=Скинути
|
||||
|
||||
nei.recipe.page=Сторінка %s/%s
|
||||
nei.recipe.tooltip=Рецепти
|
||||
nei.recipe.tab.view_all.tooltip=Переглянути всі категорії
|
||||
nei.recipe.search.tooltip.name=Синтаксис фільтрів
|
||||
nei.recipe.search.tooltip.shift=§7Утримуйте §6Shift§7 для детальнішої інформації
|
||||
nei.recipe.search.tooltip.input=%s§fтекст§8 - §7пошук в інгредієнтах
|
||||
nei.recipe.search.tooltip.output=%s§fтекст§8 - §7пошук у результатах
|
||||
nei.recipe.search.tooltip.prefix=%sтекст§8 - §7%s
|
||||
|
||||
nei.recipe.search.tooltip.prefix.modName=пошук за модом
|
||||
nei.recipe.search.tooltip.prefix.tooltip=пошук за підказкою
|
||||
nei.recipe.search.tooltip.prefix.oreDict=пошук за OreDict
|
||||
nei.recipe.search.tooltip.prefix.identifier=пошук за ID ресурсу
|
||||
nei.recipe.search.tooltip.prefix.subsets=пошук за підгрупами
|
||||
nei.recipe.search.tooltip.prefix.chemicalFormula=пошук за хімічною формулою
|
||||
|
||||
nei.recipe.search.tooltip.exclude=%s§fтекст§8 - §7виключити предмети, що містять текст
|
||||
nei.recipe.search.tooltip.exclude_recipe=%s§fтекст§8 - §7виключити рецепти, що містять текст
|
||||
nei.recipe.search.tooltip.or=§fa%s§fb§8 - §7пошук «a» або «b»
|
||||
nei.recipe.search.tooltip.exact=%s§fтекст%s§8 - §7збіг із точною фразою
|
||||
|
||||
nei.recipe.shaped=Формований крафт
|
||||
nei.recipe.shapeless=Безформний крафт
|
||||
nei.recipe.furnace=Витоплення
|
||||
nei.recipe.fuel=Паливо
|
||||
nei.recipe.fuel.smeltCount=Витоплює: %s
|
||||
|
||||
nei.recipe.badge.nc=NC
|
||||
nei.recipe.badge.nc.tooltip=Не витрачається у процесі
|
||||
|
||||
nei.recipe.badge.ncp=NC(P)
|
||||
nei.recipe.badge.ncp.tooltip=Враховується у паралельних обчисленнях, але не витрачається
|
||||
|
||||
nei.recipe.badge.chance.consume=Шанс витрачання: %s
|
||||
nei.recipe.badge.chance.output=Шанс отримання: %s
|
||||
|
||||
# Застаріле
|
||||
nei.recipe.fuel.required=Потрібно %s
|
||||
# Застаріле
|
||||
nei.recipe.fuel.processed=Оброблено %s
|
||||
# Застаріле
|
||||
nei.recipe.fuel.produced=Вироблено %s
|
||||
nei.recipe.firework=Феєрверки
|
||||
nei.recipe.firework.tooltip0=Барвники надають зарядам кольору
|
||||
nei.recipe.firework.tooltip1=Повторне фарбування додає заряду ефект згасання кольорів
|
||||
nei.recipe.firework.tooltip2=З одного феєрверку можна випустити кілька зарядів
|
||||
nei.recipe.repair=Ремонт
|
||||
nei.recipe.brewing=Зіллєваріння
|
||||
nei.recipe.profiler.crafting=Профілювання крафту
|
||||
nei.recipe.profiler.usage=Профілювання використання
|
||||
nei.recipe.concurrent.usage=Паралельне використання — Всього
|
||||
nei.recipe.concurrent.crafting=Паралельний крафт — Всього
|
||||
nei.recipe.accepts=Приймає наступне
|
||||
nei.recipe.accepts.scroll=Змінити предмет
|
||||
|
||||
nei.recipe.overlay=Накладання рецепта
|
||||
nei.recipe.overlay.missing=Відсутнє наступне
|
||||
nei.recipe.overlay.mismatch=Невідповідність сітці крафту
|
||||
nei.recipe.overlay.overlayRecipe=Накласти рецепт
|
||||
nei.recipe.overlay.fillCraftingGrid=Заповнити сітку крафту
|
||||
nei.recipe.overlay.bookmarkRecipe=Зберегти з рецептом
|
||||
nei.recipe.overlay.bookmarkRecipeAndCount=Зберегти з рецептом і кількістю
|
||||
nei.recipe.overlay.sendRecipeToChat=Надіслати рецепт у чат
|
||||
|
||||
nei.recipe.favorite=Обране
|
||||
nei.recipe.favorite.bookmark_recipe=Зберегти дерево рецептів
|
||||
nei.recipe.favorite.change_result_index=Змінити результат
|
||||
nei.recipe.favorite.toggle=Перемикнути обране
|
||||
|
||||
nei.recipe.information=Інформація
|
||||
|
||||
nei.itemsort.minecraft=Minecraft
|
||||
nei.itemsort.minecraft.tip=Спочатку сортує предмети з ванільного Minecraft
|
||||
nei.itemsort.mod=Мод
|
||||
nei.itemsort.mod.tip=Групує предмети з одного моду, сортуючи за назвою моду
|
||||
nei.itemsort.id=ID предмета
|
||||
nei.itemsort.default=За замовчуванням
|
||||
nei.itemsort.default.tip=Залишає початковий порядок кожного предмета без змін
|
||||
nei.itemsort.damage=Пошкодження предмета
|
||||
nei.itemsort.name=Відображувана назва
|
||||
|
||||
nei.subsets.item.cheat=Видати предмет
|
||||
nei.subsets.item.search=Пошук за предметом
|
||||
nei.subsets.item.show=Показати предмет
|
||||
nei.subsets.item.hide=Приховати предмет
|
||||
nei.subsets.tag.search=Пошук за підгрупою
|
||||
nei.subsets.tag.onlythis=Показати лише цю підгрупу
|
||||
nei.subsets.tag.onlythis.key=Подвійне натискання ЛКМ
|
||||
nei.subsets.tag.show=Показати підгрупу
|
||||
nei.subsets.tag.hide=Приховати підгрупу
|
||||
|
||||
nei.subsets.Blocks=Блоки
|
||||
nei.subsets.Blocks.MobSpawners=Спавнери мобів
|
||||
nei.subsets.CreativeTabs=Вкладки творчості
|
||||
nei.subsets.Items=Предмети
|
||||
nei.subsets.Items.Armor=Обладунки
|
||||
nei.subsets.Items.Armor.Boots=Чоботи
|
||||
nei.subsets.Items.Armor.Chestplates=Нагрудники
|
||||
nei.subsets.Items.Armor.Helmets=Шоломи
|
||||
nei.subsets.Items.Armor.Leggings=Наголінники
|
||||
nei.subsets.Items.Food=Їжа
|
||||
nei.subsets.Items.Potions=Зілля
|
||||
nei.subsets.Items.Potions.Ingredients=Інгредієнти
|
||||
nei.subsets.Items.Potions.Negative=Негативні
|
||||
nei.subsets.Items.Potions.Neutral=Нейтральні
|
||||
nei.subsets.Items.Potions.Positive=Позитивні
|
||||
nei.subsets.Items.Potions.Splash=Вибухові
|
||||
nei.subsets.Items.Tools=Інструменти
|
||||
nei.subsets.Items.Tools.Axes=Сокири
|
||||
nei.subsets.Items.Tools.Hoes=Мотики
|
||||
nei.subsets.Items.Tools.Other=Інші
|
||||
nei.subsets.Items.Tools.Pickaxes=Кайла
|
||||
nei.subsets.Items.Tools.Shovels=Лопати
|
||||
nei.subsets.Items.Weapons=Зброя
|
||||
nei.subsets.Items.Weapons.Ranged=Дальнього бою
|
||||
nei.subsets.Items.Weapons.Swords=Мечі
|
||||
nei.subsets.Untranslated=Оригінальні
|
||||
nei.subsets.Favorites=Обрані
|
||||
nei.subsets.Favorites.Manual=Додані вручну
|
||||
nei.subsets.Favorites.Generated=Автоматично
|
||||
nei.subsets.Mod=Мод
|
||||
|
||||
nei.presets.new=Новий пресет
|
||||
nei.presets.toggle=Перемикнути пресети
|
||||
nei.presets.create=Створити пресет
|
||||
nei.presets.update=Оновити пресет
|
||||
nei.presets.enabled=Увімкнено
|
||||
nei.presets.filter=F
|
||||
nei.presets.filter.tip=Приховати предмети з інших активних пресетів
|
||||
nei.presets.name=Назва пресета
|
||||
nei.presets.mode=Режим
|
||||
nei.presets.mode.hide=Приховати
|
||||
nei.presets.mode.hide.char=H
|
||||
nei.presets.mode.hide.tip=Приховати предмети на панелі
|
||||
nei.presets.mode.subset=Підгрупа
|
||||
nei.presets.mode.subset.char=S
|
||||
nei.presets.mode.subset.tip=Створити власні підгрупи
|
||||
nei.presets.mode.remove=Видалити
|
||||
nei.presets.mode.remove.tip=Приховати предмети на панелі та їхні рецепти
|
||||
nei.presets.mode.remove.char=R
|
||||
nei.presets.mode.group=Група
|
||||
nei.presets.mode.group.tip=Створити власну групу предметів, що згортаються
|
||||
nei.presets.mode.group.char=G
|
||||
|
||||
nei.itemzoom.toggle=Використовуйте %s для перемикання наближення предметів
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.3 KiB |
Reference in new issue
Block a user