Package ac.boar.geyser
Record Class GeyserBoarPlatform
java.lang.Object
java.lang.Record
ac.boar.geyser.GeyserBoarPlatform
- All Implemented Interfaces:
ac.boar.anticheat.BoarPlatform
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserBoarPlatform(Path dataFolder, ac.boar.anticheat.BoarLogger logger, ac.boar.anticheat.player.BoarPlayerManager<org.geysermc.geyser.session.GeyserSession> playerManager) Creates an instance of aGeyserBoarPlatformrecord class. -
Method Summary
Modifier and TypeMethodDescriptionac.boar.anticheat.data.block.BlockStateFactoryReturns the value of thedataFolderrecord component.ac.boar.anticheat.data.effect.EffectProviderac.boar.anticheat.data.enchantment.EnchantmentProviderfinal booleanIndicates whether some other object is "equal to" this one.voidfinalizeBlockMappings(ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.block.Block> populator) voidfinalizeEntityMappings(ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.entity.EntityType> typePopulator, ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.entity.EntityDefinition> definitionPopulator) voidfinalizeItemMappings(ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.item.Item> populator) final inthashCode()Returns a hash code value for this object.ac.boar.anticheat.data.inventory.ItemStackProviderac.boar.mappings.block.BlockMappingsac.boar.mappings.item.ItemMappingsac.boar.anticheat.BoarLoggerlogger()Returns the value of theloggerrecord component.ac.boar.anticheat.player.BoarPlayerManager<org.geysermc.geyser.session.GeyserSession> Returns the value of theplayerManagerrecord component.ac.boar.mappings.block.PropertyProviderfinal StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ac.boar.anticheat.BoarPlatform
consoleMovementTraces
-
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 aGeyserBoarPlatformrecord class.- Parameters:
dataFolder- the value for thedataFolderrecord componentlogger- the value for theloggerrecord componentplayerManager- the value for theplayerManagerrecord component
-
-
Method Details
-
loadBlockMappings
public ac.boar.mappings.block.BlockMappings loadBlockMappings()- Specified by:
loadBlockMappingsin interfaceac.boar.anticheat.BoarPlatform
-
blockStateFactory
public ac.boar.anticheat.data.block.BlockStateFactory blockStateFactory()- Specified by:
blockStateFactoryin interfaceac.boar.anticheat.BoarPlatform
-
loadItemMappings
public ac.boar.mappings.item.ItemMappings loadItemMappings()- Specified by:
loadItemMappingsin interfaceac.boar.anticheat.BoarPlatform
-
enchantmentProvider
public ac.boar.anticheat.data.enchantment.EnchantmentProvider enchantmentProvider()- Specified by:
enchantmentProviderin interfaceac.boar.anticheat.BoarPlatform
-
effectProvider
public ac.boar.anticheat.data.effect.EffectProvider effectProvider()- Specified by:
effectProviderin interfaceac.boar.anticheat.BoarPlatform
-
itemStackProvider
public ac.boar.anticheat.data.inventory.ItemStackProvider itemStackProvider()- Specified by:
itemStackProviderin interfaceac.boar.anticheat.BoarPlatform
-
propertyProvider
public ac.boar.mappings.block.PropertyProvider propertyProvider()- Specified by:
propertyProviderin interfaceac.boar.anticheat.BoarPlatform
-
finalizeBlockMappings
public void finalizeBlockMappings(ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.block.Block> populator) - Specified by:
finalizeBlockMappingsin interfaceac.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:
finalizeEntityMappingsin interfaceac.boar.anticheat.BoarPlatform
-
finalizeItemMappings
public void finalizeItemMappings(ac.boar.anticheat.util.ReferencePopulator<ac.boar.mappings.item.Item> populator) - Specified by:
finalizeItemMappingsin interfaceac.boar.anticheat.BoarPlatform
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
dataFolder
Returns the value of thedataFolderrecord component.- Specified by:
dataFolderin interfaceac.boar.anticheat.BoarPlatform- Returns:
- the value of the
dataFolderrecord component
-
logger
public ac.boar.anticheat.BoarLogger logger()Returns the value of theloggerrecord component.- Specified by:
loggerin interfaceac.boar.anticheat.BoarPlatform- Returns:
- the value of the
loggerrecord component
-
playerManager
public ac.boar.anticheat.player.BoarPlayerManager<org.geysermc.geyser.session.GeyserSession> playerManager()Returns the value of theplayerManagerrecord component.- Specified by:
playerManagerin interfaceac.boar.anticheat.BoarPlatform- Returns:
- the value of the
playerManagerrecord component
-