This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Yes, the entire commit
- Loading branch information
Buj Itself
committed
Sep 7, 2022
1 parent
2eb4291
commit f5977fa
Showing
3 changed files
with
79 additions
and
28 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
client/inject/java/net/minecraft/src/buttons/RenderChunkNameButton.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,24 @@ | ||
package net.minecraft.src.buttons; | ||
|
||
import net.minecraft.src.GameSettings; | ||
import net.minecraft.src.GuiButton; | ||
import net.minecraft.src.GuiOptionsButton; | ||
import net.minecraft.src.GuiScreen; | ||
|
||
public class RenderChunkNameButton implements GuiOptionsButton { | ||
GameSettings settings; | ||
|
||
public RenderChunkNameButton(GameSettings settings) { | ||
this.settings = settings; | ||
} | ||
|
||
@Override | ||
public String getText() { | ||
return "Show chunk name: " + (settings.renderChunkName ? "Yes" : "No"); | ||
} | ||
|
||
@Override | ||
public void run(GuiButton button, GuiScreen parent) { | ||
settings.renderChunkName = !settings.renderChunkName; | ||
} | ||
} |
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