aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2022-02-23 14:46:06 +0800
committershedaniel <daniel@shedaniel.me>2022-02-23 14:46:06 +0800
commitac2a724b0575438357810fdc71b4c2fa6590665c (patch)
treeeec15bf1eaad9918e2d3ae4d22918a5a7e50b455
parent792d6ee9325b0a14796de51e31c9f51876fcdf8f (diff)
parenta2309c47c447d217346147af5823e991feaf9dcd (diff)
downloadRoughlyEnoughItems-ac2a724b0575438357810fdc71b4c2fa6590665c.tar.gz
RoughlyEnoughItems-ac2a724b0575438357810fdc71b4c2fa6590665c.tar.bz2
RoughlyEnoughItems-ac2a724b0575438357810fdc71b4c2fa6590665c.zip
Merge remote-tracking branch 'origin/7.x-1.18' into 7.x-1.18.2
# Conflicts: # gradle.properties # runtime/src/main/java/me/shedaniel/rei/impl/client/gui/screen/AbstractDisplayViewingScreen.java
-rw-r--r--.github/ISSUE_TEMPLATE/bug-report.yaml4
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/config/ConfigObject.java12
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/favorites/CompoundFavoriteRenderer.java4
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/SimpleDisplayRenderer.java3
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/animator/ConventionValueAnimator.java67
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/animator/DoubleValueAnimatorImpl.java109
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/animator/MappingProgressValueAnimator.java68
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/animator/MappingValueAnimator.java62
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/animator/NumberAnimator.java116
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/animator/NumberAnimatorWrapped.java80
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/animator/RecordValueAnimator.java155
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/animator/RecordValueAnimatorArgs.java1487
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/animator/ValueAnimator.java192
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/animator/ValueAnimatorAsNumberAnimator.java70
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/animator/ValueProvider.java73
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/config/CheatingMode.java (renamed from api/src/main/java/me/shedaniel/rei/api/client/gui/animator/ProgressValueAnimator.java)35
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/config/FavoriteAddWidgetMode.java (renamed from api/src/main/java/me/shedaniel/rei/api/client/gui/animator/ConstantValueProvider.java)35
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/gui/widgets/Widgets.java22
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/client/view/Views.java7
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/common/entry/EntryIngredient.java6
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/common/entry/EntryStack.java3
-rw-r--r--default-plugin/src/main/java/me/shedaniel/rei/plugin/client/DefaultClientPlugin.java7
-rw-r--r--default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/DefaultInformationCategory.java4
-rw-r--r--default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/beacon/DefaultBeaconBaseCategory.java4
-rw-r--r--default-plugin/src/main/java/me/shedaniel/rei/plugin/client/categories/beacon/DefaultBeaconPaymentCategory.java4
-rw-r--r--default-plugin/src/main/java/me/shedaniel/rei/plugin/client/favorites/TimeFavoriteEntry.java313
-rw-r--r--fabric/src/main/java/me/shedaniel/rei/fabric/RoughlyEnoughItemsInitializerImpl.java16
-rw-r--r--fabric/src/main/resources/fabric.mod.json3
-rw-r--r--forge/build.gradle3
-rw-r--r--forge/src/main/java/me/shedaniel/rei/forge/RoughlyEnoughItemsForge.java3
-rw-r--r--forge/src/main/java/me/shedaniel/rei/forge/RoughlyEnoughItemsInitializerImpl.java4
-rw-r--r--forge/src/serverComponent/java/me/shedaniel/rei/forge/RoughlyEnoughItemsForgeServerComponent.java4
-rw-r--r--gradle.properties6
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsInitializer.java13
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/ClientHelperImpl.java13
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/REIRuntimeImpl.java7
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/config/ConfigManagerImpl.java18
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/config/ConfigObjectImpl.java47
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/config/entries/FilteringScreen.java28
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/favorites/FavoriteEntryTypeRegistryImpl.java13
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/ScreenOverlayImpl.java27
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/changelog/ChangelogLoader.java140
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/changelog/JParseDown.java1316
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/changelog/JParseDownToMinecraft.java93
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/credits/CreditsEntryListWidget.java11
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/credits/CreditsScreen.java20
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/dragging/CurrentDraggingStack.java4
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/error/ErrorsEntryListWidget.java500
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/error/ErrorsScreen.java119
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/modules/Menu.java6
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/modules/entries/EntryStackSubsetsMenuEntry.java2
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/modules/entries/GameModeMenuEntry.java92
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/modules/entries/WeatherMenuEntry.java93
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/screen/AbstractDisplayViewingScreen.java20
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/screen/CompositeDisplayViewingScreen.java6
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/screen/DefaultDisplayViewingScreen.java3
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/screen/UncertainDisplayViewingScreen.java4
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/BatchedEntryRendererManager.java25
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/CachedEntryListRender.java176
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/CatchingExceptionUtils.java59
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryListWidget.java99
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryStacksRegionWidget.java57
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryWidget.java4
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/FavoritesListWidget.java95
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/TabWidget.java4
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/basewidgets/ArrowWidget.java4
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/basewidgets/BurningFireWidget.java4
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/basewidgets/ButtonWidget.java2
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/basewidgets/LabelWidget.java4
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/basewidgets/PanelWidget.java4
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/region/RealRegionEntry.java4
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/region/RegionDraggableStack.java5
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/region/RegionListener.java2
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/search/OverlaySearchField.java4
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/util/CrashReportUtils.java5
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/view/ViewsImpl.java19
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java11
-rwxr-xr-xruntime/src/main/resources/assets/roughlyenoughitems/lang/en_us.json24
-rw-r--r--runtime/src/main/resources/assets/roughlyenoughitems/textures/gui/recipecontainer.pngbin2014 -> 5110 bytes
-rw-r--r--runtime/src/main/resources/roughlyenoughitems.changes.json3
-rw-r--r--runtime/src/main/resources/roughlyenoughitems/2022.1/2022-02-18_01-30.pngbin0 -> 33618 bytes
-rw-r--r--runtime/src/main/resources/roughlyenoughitems/2022.1/2022-02-18_01-32.pngbin0 -> 9532 bytes
-rw-r--r--runtime/src/main/resources/roughlyenoughitems/2022.1/2022-02-18_09-05.pngbin0 -> 70861 bytes
-rw-r--r--runtime/src/main/resources/roughlyenoughitems/2022.1/changelog.md44
84 files changed, 3342 insertions, 2892 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug-report.yaml b/.github/ISSUE_TEMPLATE/bug-report.yaml
index 9c2afe968..07cea7acf 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.yaml
+++ b/.github/ISSUE_TEMPLATE/bug-report.yaml
@@ -41,6 +41,8 @@ body:
description: Please copy and paste any relevant log output, this will be used to help diagnose the issue. Please do not use any paste services, as they may expire and be deleted.
placeholder: You can look into `.minecraft/logs` and find the `latest.log` and `rei.log`, you can paste them here.
render: shell
+ validations:
+ required: true
- type: textarea
attributes:
label: Anything else?
@@ -53,4 +55,4 @@ body:
value: |
Before submitting a bug report, please make sure that this issue has not already been reported. You can use the search feature to find existing issues.
- Thanks for taking the time to fill out this bug report! \ No newline at end of file
+ Thanks for taking the time to fill out this bug report!
diff --git a/api/src/main/java/me/shedaniel/rei/api/client/config/ConfigObject.java b/api/src/main/java/me/shedaniel/rei/api/client/config/ConfigObject.java
index aa90567ae..dfd8f08f6 100644
--- a/api/src/main/java/me/shedaniel/rei/api/client/config/ConfigObject.java
+++ b/api/src/main/java/me/shedaniel/rei/api/client/config/ConfigObject.java
@@ -50,6 +50,9 @@ public interface ConfigObject {
void setCheating(boolean cheating);
+ @ApiStatus.Experimental
+ CheatingMode getCheatingMode();
+
EntryPanelOrdering getItemListOrdering();
boolean isItemListAscending();
@@ -86,6 +89,8 @@ public interface ConfigObject {
String getWeatherCommand();
+ String getTimeCommand();
+
int getMaxRecipePerPage();
int getMaxRecipesPageHeight();
@@ -113,10 +118,14 @@ public interface ConfigObject {
boolean doesFastEntryRendering();
+ boolean doesCacheEntryRendering();
+
boolean doDebugRenderTimeRequired();
boolean doMergeDisplayUnderOne();
+ FavoriteAddWidgetMode getFavoriteAddWidgetMode();
+
ModifierKeyCode getFavoriteKeyCode();
ModifierKeyCode getRecipeKeybind();
@@ -188,6 +197,9 @@ public interface ConfigObject {
@ApiStatus.Experimental
SyntaxHighlightingMode getSyntaxHighlightingMode();
+ @ApiStatus.Experimental
+ boolean isFocusModeZoomed();
+
SearchMode getTooltipSearchMode();
SearchMode getTagSearchMode();
diff --git a/api/src/main/java/me/shedaniel/rei/api/client/favorites/CompoundFavoriteRenderer.java b/api/src/main/java/me/shedaniel/rei/api/client/favorites/CompoundFavoriteRenderer.java
index 62c89edd2..858d43aa5 100644
--- a/api/src/main/java/me/shedaniel/rei/api/client/favorites/CompoundFavoriteRenderer.java
+++ b/api/src/main/java/me/shedaniel/rei/api/client/favorites/CompoundFavoriteRenderer.java
@@ -26,11 +26,11 @@ package me.shedaniel.rei.api.client.favorites;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.math.Vector4f;
import me.shedaniel.clothconfig2.api.ScissorsHandler;
+import me.shedaniel.clothconfig2.api.animator.NumberAnimator;
+import me.shedaniel.clothconfig2.api.animator.ValueAnimator;
import me.shedaniel.math.Rectangle;
import me.shedaniel.rei.api.client.gui.AbstractRenderer;
import me.shedaniel.rei.api.client.gui.Renderer;
-import me.shedaniel.rei.api.client.gui.animator.NumberAnimator;
-import me.shedaniel.rei.api.client.gui.animator.ValueAnimator;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.Util;
diff --git a/api/src/main/java/me/shedaniel/rei/api/client/gui/SimpleDisplayRenderer.java b/api/src/main/java/me/shedaniel/rei/api/client/gui/SimpleDisplayRenderer.java
index fe116e744..b0ce0e735 100644
--- a/api/src/main/java/me/shedaniel/rei/api/client/gui/SimpleDisplayRenderer.java
+++ b/api/src/main/java/me/shedaniel/rei/api/client/gui/SimpleDisplayRenderer.java
@@ -127,6 +127,7 @@ public class SimpleDisplayRenderer extends DisplayRenderer implements WidgetHold
outputWidget.setZ(getZ() + 50);
outputWidget.getBounds().setLocation(xx, yy);
outputWidget.render(matrices, mouseX, mouseY, delta);
+ yy += 18;
}
}
@@ -146,7 +147,7 @@ public class SimpleDisplayRenderer extends DisplayRenderer implements WidgetHold
@Override
public int getHeight() {
- return 4 + getItemsHeight() * 18;
+ return Math.max(4 + getItemsHeight() * 18, 4 + outputWidgets.size() * 18);
}
public int getItemsHeight() {
diff --git a/api/src/main/java/me/shedaniel/rei/api/client/gui/animator/ConventionValueAnimator.java b/api/src/main/java/me/shedaniel/rei/api/client/gui/animator/ConventionValueAnimator.java
deleted file mode 100644
index 771fe6489..000000000
--- a/api/src/main/java/me/shedaniel/rei/api/client/gui/animator/ConventionValueAnimator.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * This file is licensed under the MIT License, part of Roughly Enough Items.
- * Copyright (c) 2018, 2019, 2020, 2021, 2022 shedaniel
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-package me.shedaniel.rei.api.client.gui.animator;
-
-import org.jetbrains.annotations.ApiStatus;
-
-import java.util.Objects;
-import java.util.function.Supplier;
-
-@ApiStatus.Internal
-final class ConventionValueAnimator<T> implements ValueAnimator<T> {
- private final ValueAnimator<T> parent;
- private final Supplier<T> convention;
- private final long duration;
-
- ConventionValueAnimator(ValueAnimator<T> parent, Supplier<T> convention, long duration) {
- this.parent = parent;
- this.convention = convention;
- this.duration = duration;
- setAs(convention.get());
- }
-
- @Override
- public ValueAnimator<T> setTo(T value, long duration) {
- return parent.setTo(value, duration);
- }
-
- @Override
-