aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-08-18 17:02:08 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-08-18 17:02:08 +0800
commitb6f36732c933c6d406d730e11cd3b7ed390b95ae (patch)
treeea7f7ee385a313c45ba2e5ef6371b4f2eaeea322 /src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java
parentb65de8ed7fe045df451130e3c790613c4f002e2c (diff)
downloadRoughlyEnoughItems-b6f36732c933c6d406d730e11cd3b7ed390b95ae.tar.gz
RoughlyEnoughItems-b6f36732c933c6d406d730e11cd3b7ed390b95ae.tar.bz2
RoughlyEnoughItems-b6f36732c933c6d406d730e11cd3b7ed390b95ae.zip
Speed Craft -> Auto Craft
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java')
-rw-r--r--src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java b/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java
index 42eaba8dd..9bbdf1ed1 100644
--- a/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java
+++ b/src/main/java/me/shedaniel/rei/impl/RecipeHelperImpl.java
@@ -195,14 +195,14 @@ public class RecipeHelperImpl implements RecipeHelper {
}
@Override
- public Optional<ButtonAreaSupplier> getSpeedCraftButtonArea(RecipeCategory category) {
+ public Optional<ButtonAreaSupplier> getAutoCraftButtonArea(RecipeCategory category) {
if (!speedCraftAreaSupplierMap.containsKey(category.getIdentifier()))
return Optional.ofNullable(bounds -> new Rectangle(bounds.getMaxX() - 16, bounds.getMaxY() - 16, 10, 10));
return Optional.ofNullable(speedCraftAreaSupplierMap.get(category.getIdentifier()));
}
@Override
- public void registerSpeedCraftButtonArea(Identifier category, ButtonAreaSupplier rectangle) {
+ public void registerAutoCraftButtonArea(Identifier category, ButtonAreaSupplier rectangle) {
if (rectangle == null) {
if (speedCraftAreaSupplierMap.containsKey(category))
speedCraftAreaSupplierMap.remove(category);
@@ -213,7 +213,7 @@ public class RecipeHelperImpl implements RecipeHelper {
@SuppressWarnings("deprecation")
@Override
public void registerDefaultSpeedCraftButtonArea(Identifier category) {
- registerSpeedCraftButtonArea(category, bounds -> new Rectangle(bounds.getMaxX() - 16, bounds.getMaxY() - 16, 10, 10));
+ registerAutoCraftButtonArea(category, bounds -> new Rectangle(bounds.getMaxX() - 16, bounds.getMaxY() - 16, 10, 10));
}
@SuppressWarnings("deprecation")