forked from RepoMirrors/baritone
baritoe
This commit is contained in:
parent
c578d5c1a3
commit
07c406aa16
|
@ -24,6 +24,7 @@ import net.minecraft.util.text.TextComponentString;
|
||||||
import net.minecraft.util.text.TextFormatting;
|
import net.minecraft.util.text.TextFormatting;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Calendar;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -47,7 +48,9 @@ public interface Helper {
|
||||||
|
|
||||||
static ITextComponent getPrefix() {
|
static ITextComponent getPrefix() {
|
||||||
// Inner text component
|
// Inner text component
|
||||||
ITextComponent baritone = new TextComponentString(BaritoneAPI.getSettings().shortBaritonePrefix.value ? "B" : "Baritone");
|
final Calendar now = Calendar.getInstance();
|
||||||
|
final boolean xd = now.get(Calendar.MONTH) == Calendar.APRIL && now.get(Calendar.DAY_OF_MONTH) == 1;
|
||||||
|
ITextComponent baritone = new TextComponentString(BaritoneAPI.getSettings().shortBaritonePrefix.value ? "B" : (xd ? "Baritoe" : "Baritone"));
|
||||||
baritone.getStyle().setColor(TextFormatting.LIGHT_PURPLE);
|
baritone.getStyle().setColor(TextFormatting.LIGHT_PURPLE);
|
||||||
|
|
||||||
// Outer brackets
|
// Outer brackets
|
||||||
|
|
Loading…
Reference in New Issue