-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from diskree/new_blocked_actions
New blocked actions
- Loading branch information
Showing
14 changed files
with
685 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.diskree.achievetodo; | ||
|
||
import net.minecraft.text.Text; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class Utils { | ||
|
||
@Nullable | ||
public static Text translateOrNull(String key) { | ||
Text text = Text.translatable(key); | ||
return text.getString().equals(key) ? null : text; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
public enum BlockedActionCategory { | ||
ACTION, | ||
FOOD, | ||
ITEM, | ||
BLOCK, | ||
TOOL, | ||
EQUIPMENT, | ||
|
Oops, something went wrong.