Record Class GeyserBoarLogger

java.lang.Object
java.lang.Record
ac.boar.geyser.GeyserBoarLogger
All Implemented Interfaces:
ac.boar.anticheat.BoarLogger

public record GeyserBoarLogger(org.geysermc.geyser.api.extension.ExtensionLogger logger) extends Record implements ac.boar.anticheat.BoarLogger
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeyserBoarLogger(org.geysermc.geyser.api.extension.ExtensionLogger logger)
    Creates an instance of a GeyserBoarLogger record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    void
    error(String message)
     
    void
    error(String message, Throwable t)
     
    final int
    Returns a hash code value for this object.
    void
    info(String message)
     
    org.geysermc.geyser.api.extension.ExtensionLogger
    Returns the value of the logger record component.
    final String
    Returns a string representation of this record class.
    void
    warn(String message)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GeyserBoarLogger

      public GeyserBoarLogger(org.geysermc.geyser.api.extension.ExtensionLogger logger)
      Creates an instance of a GeyserBoarLogger record class.
      Parameters:
      logger - the value for the logger record component
  • Method Details

    • info

      public void info(String message)
      Specified by:
      info in interface ac.boar.anticheat.BoarLogger
    • warn

      public void warn(String message)
      Specified by:
      warn in interface ac.boar.anticheat.BoarLogger
    • error

      public void error(String message)
      Specified by:
      error in interface ac.boar.anticheat.BoarLogger
    • error

      public void error(String message, Throwable t)
      Specified by:
      error in interface ac.boar.anticheat.BoarLogger
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • logger

      public org.geysermc.geyser.api.extension.ExtensionLogger logger()
      Returns the value of the logger record component.
      Returns:
      the value of the logger record component