Skip to content

Commit

Permalink
Make the event non-breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticdrew committed May 21, 2024
1 parent d0ec530 commit d7d9ef6
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import net.minecraftforge.fml.LogicalSide;
import org.jetbrains.annotations.ApiStatus;

import java.util.ArrayList;
import java.util.List;

/**
Expand Down Expand Up @@ -150,7 +151,17 @@ public DebugText(Window window, GuiGraphics guiGraphics, float partialTick, List
*/
public List<String> getText()
{
return text;
return this.text;
}

@Deprecated(forRemoval = true, since = "1.20.6")
public List<String> getLeft() {
return Side.Left.equals(this.side) ? this.text : new ArrayList<>();
}

@Deprecated(forRemoval = true, since = "1.20.6")
public List<String> getRight() {
return Side.Right.equals(this.side) ? this.text : new ArrayList<>();
}

/**
Expand Down

0 comments on commit d7d9ef6

Please sign in to comment.