content: package me.earth.earthhack.impl.event.events.render;
  
  import me.earth.earthhack.api.event.events.Event;
  import me.earth.earthhack.impl.core.ducks.gui.IChatHud;
  import net.minecraft.text.MutableText;
  
  public abstract class ChatEvent extends Event
  {
      public ChatEvent() {}
  
      public abstract void invoke();
  
      public static class Clear extends ChatEvent
      {
          private boolean sent;
  
          public Clear(boolean sent)
          {
              super();
          }
  
          @Override
          public void invoke() { }
  
          public boolean clearsSent()
          {
              return sent;
          }
  
          public void setSent(boolean sent)
          {
              this.sent = sent;
          }
      }
  
      public static class Log extends ChatEvent
      {
          private final String message;
  
          public Log(String message)
          {
              super();
              this.message = message;
          }
  
          @Override
          public void invoke() { }
  
          public String getMessage(){
              return message;
          }
      }
  
      public static class Send extends ChatEvent
      {
          private MutableText chatComponent;
          private int chatLineId;
          private int updateCounter;
          private boolean displayOnly;
  
          public Send(IChatHud gui,
                      MutableText chatComponent,
                      int chatLineId,
                      int updateCounter,
                      boolean displayOnly)
          {
              super();
              this.chatComponent = chatComponent;
              this.chatLineId    = chatLineId;
              this.updateCounter = updateCounter;
              this.displayOnly   = displayOnly;
          }
  
          @Override
          public void invoke() { }
  
          public MutableText getChatComponent()
          {
              return chatComponent;
          }
  
          public void setChatComponent(MutableText chatComponent)
          {
              this.chatComponent = chatComponent;
          }
  
          public int getChatLineId()
          {
              return chatLineId;
          }
  
          public void setChatLineId(int chatLineId)
          {
              this.chatLineId = chatLineId;
          }
  
          public int getUpdateCounter()
          {
              return updateCounter;
          }
  
          public void setUpdateCounter(int updateCounter)
          {
              this.updateCounter = updateCounter;
          }
  
          public boolean isDisplayOnly()
          {
              return displayOnly;
          }
  
          public void setDisplayOnly(boolean displayOnly)
          {
              this.displayOnly = displayOnly;
          }
      }
  
  }
  