Class JSONMessage

java.lang.Object
eu.endercentral.crazy_advancements.JSONMessage

public class JSONMessage extends Object
Represents a Message in JSON Format
Author:
Axel
  • Constructor Summary

    Constructors
    Constructor
    Description
    JSONMessage(net.md_5.bungee.api.chat.BaseComponent json)
    Constructor for creating a JSON Message
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.IChatBaseComponent
    Gets an NMS representation of an ingame Message
    net.md_5.bungee.api.chat.BaseComponent
    Gets the Message as a BaseComponent
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JSONMessage

      public JSONMessage(net.md_5.bungee.api.chat.BaseComponent json)
      Constructor for creating a JSON Message
      Parameters:
      json - A JSON representation of an ingame Message Read More
  • Method Details

    • getJson

      public net.md_5.bungee.api.chat.BaseComponent getJson()
      Gets the Message as a BaseComponent
      Returns:
      the BaseComponent of an ingame Message
    • getBaseComponent

      public net.minecraft.network.chat.IChatBaseComponent getBaseComponent()
      Gets an NMS representation of an ingame Message
      Returns:
      An IChatBaseComponent representation of an ingame Message
    • toString

      public String toString()
      Overrides:
      toString in class Object