Record Class GeyserBoarPlatform

java.lang.Object
java.lang.Record
ac.boar.geyser.GeyserBoarPlatform
All Implemented Interfaces:
ac.boar.anticheat.BoarPlatform

public record GeyserBoarPlatform(Path dataFolder, ac.boar.anticheat.BoarLogger logger, ac.boar.anticheat.player.BoarPlayerManager<org.geysermc.geyser.session.GeyserSession> playerManager) extends Record implements ac.boar.anticheat.BoarPlatform
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeyserBoarPlatform(Path dataFolder, ac.boar.anticheat.BoarLogger logger, ac.boar.anticheat.player.BoarPlayerManager<org.geysermc.geyser.session.GeyserSession> playerManager)
    Creates an instance of a GeyserBoarPlatform record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    ac.boar.anticheat.data.block.BlockStateFactory
     
    boolean
     
    Returns the value of the dataFolder record component.
    ac.boar.anticheat.data.effect.EffectProvider
     
    ac.boar.anticheat.data.enchantment.EnchantmentProvider
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    void
    finalizeBlockMappings(ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.block.Block> populator)
     
    void
    finalizeEntityMappings(ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.entity.EntityType> typePopulator, ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.entity.EntityDefinition> definitionPopulator)
     
    void
    finalizeItemMappings(ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.item.Item> populator)
     
    final int
    Returns a hash code value for this object.
    ac.boar.anticheat.data.inventory.ItemStackProvider
     
    ac.boar.mappings.block.BlockMappings
     
    ac.boar.mappings.item.ItemMappings
     
    ac.boar.anticheat.BoarLogger
    Returns the value of the logger record component.
    ac.boar.anticheat.player.BoarPlayerManager<org.geysermc.geyser.session.GeyserSession>
    Returns the value of the playerManager record component.
    ac.boar.mappings.block.PropertyProvider
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • GeyserBoarPlatform

      public GeyserBoarPlatform(Path dataFolder, ac.boar.anticheat.BoarLogger logger, ac.boar.anticheat.player.BoarPlayerManager<org.geysermc.geyser.session.GeyserSession> playerManager)
      Creates an instance of a GeyserBoarPlatform record class.
      Parameters:
      dataFolder - the value for the dataFolder record component
      logger - the value for the logger record component
      playerManager - the value for the playerManager record component
  • Method Details

    • consoleMovementTraces

      public boolean consoleMovementTraces()
      Specified by:
      consoleMovementTraces in interface ac.boar.anticheat.BoarPlatform
    • loadBlockMappings

      public ac.boar.mappings.block.BlockMappings loadBlockMappings()
      Specified by:
      loadBlockMappings in interface ac.boar.anticheat.BoarPlatform
    • blockStateFactory

      public ac.boar.anticheat.data.block.BlockStateFactory blockStateFactory()
      Specified by:
      blockStateFactory in interface ac.boar.anticheat.BoarPlatform
    • loadItemMappings

      public ac.boar.mappings.item.ItemMappings loadItemMappings()
      Specified by:
      loadItemMappings in interface ac.boar.anticheat.BoarPlatform
    • enchantmentProvider

      public ac.boar.anticheat.data.enchantment.EnchantmentProvider enchantmentProvider()
      Specified by:
      enchantmentProvider in interface ac.boar.anticheat.BoarPlatform
    • effectProvider

      public ac.boar.anticheat.data.effect.EffectProvider effectProvider()
      Specified by:
      effectProvider in interface ac.boar.anticheat.BoarPlatform
    • itemStackProvider

      public ac.boar.anticheat.data.inventory.ItemStackProvider itemStackProvider()
      Specified by:
      itemStackProvider in interface ac.boar.anticheat.BoarPlatform
    • propertyProvider

      public ac.boar.mappings.block.PropertyProvider propertyProvider()
      Specified by:
      propertyProvider in interface ac.boar.anticheat.BoarPlatform
    • finalizeBlockMappings

      public void finalizeBlockMappings(ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.block.Block> populator)
      Specified by:
      finalizeBlockMappings in interface ac.boar.anticheat.BoarPlatform
    • finalizeEntityMappings

      public void finalizeEntityMappings(ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.entity.EntityType> typePopulator, ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.entity.EntityDefinition> definitionPopulator)
      Specified by:
      finalizeEntityMappings in interface ac.boar.anticheat.BoarPlatform
    • finalizeItemMappings

      public void finalizeItemMappings(ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.item.Item> populator)
      Specified by:
      finalizeItemMappings in interface ac.boar.anticheat.BoarPlatform
    • 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.
    • dataFolder

      public Path dataFolder()
      Returns the value of the dataFolder record component.
      Specified by:
      dataFolder in interface ac.boar.anticheat.BoarPlatform
      Returns:
      the value of the dataFolder record component
    • logger

      public ac.boar.anticheat.BoarLogger logger()
      Returns the value of the logger record component.
      Specified by:
      logger in interface ac.boar.anticheat.BoarPlatform
      Returns:
      the value of the logger record component
    • playerManager

      public ac.boar.anticheat.player.BoarPlayerManager<org.geysermc.geyser.session.GeyserSession> playerManager()
      Returns the value of the playerManager record component.
      Specified by:
      playerManager in interface ac.boar.anticheat.BoarPlatform
      Returns:
      the value of the playerManager record component