-
Notifications
You must be signed in to change notification settings - Fork 4
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 #4 from koiNoCirculation/add-allow-missing-mode
添加缺失合成功能
- Loading branch information
Showing
3 changed files
with
59 additions
and
19 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
21 changes: 21 additions & 0 deletions
21
src/main/java/dev/youtiao/aemobile/web/util/FakePlayerGetCraftFailure.java
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,21 @@ | ||
package dev.youtiao.aemobile.web.util; | ||
|
||
import com.mojang.authlib.GameProfile; | ||
import net.minecraft.util.IChatComponent; | ||
import net.minecraft.world.WorldServer; | ||
import net.minecraftforge.common.util.FakePlayer; | ||
|
||
public class FakePlayerGetCraftFailure extends FakePlayer { | ||
private String errorMessage = null; | ||
|
||
public FakePlayerGetCraftFailure(WorldServer world, GameProfile name) { | ||
super(world, name); | ||
} | ||
public String getErrorMessage() { | ||
return errorMessage; | ||
} | ||
@Override | ||
public void addChatMessage(IChatComponent p_145747_1_) { | ||
errorMessage = p_145747_1_.getFormattedText(); | ||
} | ||
} |