Record Class CommonConfig

java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.config.CommonConfig

public record CommonConfig(net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> bulletsBreakGlass, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> tiltrosEnabled, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> forceSmokeGrenadeParticles, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> panicAlarmRange, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> maxArmorProtection, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> discoveryAdvancementRange, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> celestialTowerSpawnCheckingRadius, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> celestialTowerWaveSizeModifier, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Object> skygazerEnchantCaps, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> gunCritChance, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> allowInfiniteAmmoOnAllTiers, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> flintlockPistolFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> flintlockPistolFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> blunderbussFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> blunderbussFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> musketFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> musketFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> handCannonFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> handCannonFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> meteorStaffMaxUseRange, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> meteorStaffExplosionRadius, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> meteorStaffExplosionBreakBlocks, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> cursedSightStaffMaxUseRange) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommonConfig(net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> bulletsBreakGlass, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> tiltrosEnabled, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> forceSmokeGrenadeParticles, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> panicAlarmRange, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> maxArmorProtection, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> discoveryAdvancementRange, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> celestialTowerSpawnCheckingRadius, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> celestialTowerWaveSizeModifier, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Object> skygazerEnchantCaps, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> gunCritChance, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> allowInfiniteAmmoOnAllTiers, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> flintlockPistolFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> flintlockPistolFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> blunderbussFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> blunderbussFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> musketFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> musketFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> handCannonFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> handCannonFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> meteorStaffMaxUseRange, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> meteorStaffExplosionRadius, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> meteorStaffExplosionBreakBlocks, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> cursedSightStaffMaxUseRange)
    Creates an instance of a CommonConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean>
    Returns the value of the allowInfiniteAmmoOnAllTiers record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the blunderbussFireInaccuracy record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the blunderbussFireVelocity record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean>
    Returns the value of the bulletsBreakGlass record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer>
    Returns the value of the celestialTowerSpawnCheckingRadius record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the celestialTowerWaveSizeModifier record component.
    create(net.minecraftforge.common.ForgeConfigSpec.Builder builder)
     
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer>
    Returns the value of the cursedSightStaffMaxUseRange record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer>
    Returns the value of the discoveryAdvancementRange record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the flintlockPistolFireInaccuracy record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the flintlockPistolFireVelocity record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer>
    Returns the value of the forceSmokeGrenadeParticles record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the gunCritChance record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the handCannonFireInaccuracy record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the handCannonFireVelocity record component.
    final int
    Returns a hash code value for this object.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the maxArmorProtection record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean>
    Returns the value of the meteorStaffExplosionBreakBlocks record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the meteorStaffExplosionRadius record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer>
    Returns the value of the meteorStaffMaxUseRange record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the musketFireInaccuracy record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>
    Returns the value of the musketFireVelocity record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer>
    Returns the value of the panicAlarmRange record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Object>
    Returns the value of the skygazerEnchantCaps record component.
    net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean>
    Returns the value of the tiltrosEnabled record component.
    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

    • CommonConfig

      public CommonConfig(net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> bulletsBreakGlass, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> tiltrosEnabled, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> forceSmokeGrenadeParticles, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> panicAlarmRange, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> maxArmorProtection, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> discoveryAdvancementRange, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> celestialTowerSpawnCheckingRadius, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> celestialTowerWaveSizeModifier, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Object> skygazerEnchantCaps, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> gunCritChance, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> allowInfiniteAmmoOnAllTiers, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> flintlockPistolFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> flintlockPistolFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> blunderbussFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> blunderbussFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> musketFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> musketFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> handCannonFireVelocity, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> handCannonFireInaccuracy, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> meteorStaffMaxUseRange, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> meteorStaffExplosionRadius, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> meteorStaffExplosionBreakBlocks, net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> cursedSightStaffMaxUseRange)
      Creates an instance of a CommonConfig record class.
      Parameters:
      bulletsBreakGlass - the value for the bulletsBreakGlass record component
      tiltrosEnabled - the value for the tiltrosEnabled record component
      forceSmokeGrenadeParticles - the value for the forceSmokeGrenadeParticles record component
      panicAlarmRange - the value for the panicAlarmRange record component
      maxArmorProtection - the value for the maxArmorProtection record component
      discoveryAdvancementRange - the value for the discoveryAdvancementRange record component
      celestialTowerSpawnCheckingRadius - the value for the celestialTowerSpawnCheckingRadius record component
      celestialTowerWaveSizeModifier - the value for the celestialTowerWaveSizeModifier record component
      skygazerEnchantCaps - the value for the skygazerEnchantCaps record component
      gunCritChance - the value for the gunCritChance record component
      allowInfiniteAmmoOnAllTiers - the value for the allowInfiniteAmmoOnAllTiers record component
      flintlockPistolFireVelocity - the value for the flintlockPistolFireVelocity record component
      flintlockPistolFireInaccuracy - the value for the flintlockPistolFireInaccuracy record component
      blunderbussFireVelocity - the value for the blunderbussFireVelocity record component
      blunderbussFireInaccuracy - the value for the blunderbussFireInaccuracy record component
      musketFireVelocity - the value for the musketFireVelocity record component
      musketFireInaccuracy - the value for the musketFireInaccuracy record component
      handCannonFireVelocity - the value for the handCannonFireVelocity record component
      handCannonFireInaccuracy - the value for the handCannonFireInaccuracy record component
      meteorStaffMaxUseRange - the value for the meteorStaffMaxUseRange record component
      meteorStaffExplosionRadius - the value for the meteorStaffExplosionRadius record component
      meteorStaffExplosionBreakBlocks - the value for the meteorStaffExplosionBreakBlocks record component
      cursedSightStaffMaxUseRange - the value for the cursedSightStaffMaxUseRange record component
  • Method Details

    • create

      public static CommonConfig create(net.minecraftforge.common.ForgeConfigSpec.Builder builder)
    • 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.
    • bulletsBreakGlass

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> bulletsBreakGlass()
      Returns the value of the bulletsBreakGlass record component.
      Returns:
      the value of the bulletsBreakGlass record component
    • tiltrosEnabled

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> tiltrosEnabled()
      Returns the value of the tiltrosEnabled record component.
      Returns:
      the value of the tiltrosEnabled record component
    • forceSmokeGrenadeParticles

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> forceSmokeGrenadeParticles()
      Returns the value of the forceSmokeGrenadeParticles record component.
      Returns:
      the value of the forceSmokeGrenadeParticles record component
    • panicAlarmRange

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> panicAlarmRange()
      Returns the value of the panicAlarmRange record component.
      Returns:
      the value of the panicAlarmRange record component
    • maxArmorProtection

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> maxArmorProtection()
      Returns the value of the maxArmorProtection record component.
      Returns:
      the value of the maxArmorProtection record component
    • discoveryAdvancementRange

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> discoveryAdvancementRange()
      Returns the value of the discoveryAdvancementRange record component.
      Returns:
      the value of the discoveryAdvancementRange record component
    • celestialTowerSpawnCheckingRadius

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> celestialTowerSpawnCheckingRadius()
      Returns the value of the celestialTowerSpawnCheckingRadius record component.
      Returns:
      the value of the celestialTowerSpawnCheckingRadius record component
    • celestialTowerWaveSizeModifier

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> celestialTowerWaveSizeModifier()
      Returns the value of the celestialTowerWaveSizeModifier record component.
      Returns:
      the value of the celestialTowerWaveSizeModifier record component
    • skygazerEnchantCaps

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Object> skygazerEnchantCaps()
      Returns the value of the skygazerEnchantCaps record component.
      Returns:
      the value of the skygazerEnchantCaps record component
    • gunCritChance

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> gunCritChance()
      Returns the value of the gunCritChance record component.
      Returns:
      the value of the gunCritChance record component
    • allowInfiniteAmmoOnAllTiers

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> allowInfiniteAmmoOnAllTiers()
      Returns the value of the allowInfiniteAmmoOnAllTiers record component.
      Returns:
      the value of the allowInfiniteAmmoOnAllTiers record component
    • flintlockPistolFireVelocity

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> flintlockPistolFireVelocity()
      Returns the value of the flintlockPistolFireVelocity record component.
      Returns:
      the value of the flintlockPistolFireVelocity record component
    • flintlockPistolFireInaccuracy

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> flintlockPistolFireInaccuracy()
      Returns the value of the flintlockPistolFireInaccuracy record component.
      Returns:
      the value of the flintlockPistolFireInaccuracy record component
    • blunderbussFireVelocity

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> blunderbussFireVelocity()
      Returns the value of the blunderbussFireVelocity record component.
      Returns:
      the value of the blunderbussFireVelocity record component
    • blunderbussFireInaccuracy

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> blunderbussFireInaccuracy()
      Returns the value of the blunderbussFireInaccuracy record component.
      Returns:
      the value of the blunderbussFireInaccuracy record component
    • musketFireVelocity

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> musketFireVelocity()
      Returns the value of the musketFireVelocity record component.
      Returns:
      the value of the musketFireVelocity record component
    • musketFireInaccuracy

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> musketFireInaccuracy()
      Returns the value of the musketFireInaccuracy record component.
      Returns:
      the value of the musketFireInaccuracy record component
    • handCannonFireVelocity

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> handCannonFireVelocity()
      Returns the value of the handCannonFireVelocity record component.
      Returns:
      the value of the handCannonFireVelocity record component
    • handCannonFireInaccuracy

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> handCannonFireInaccuracy()
      Returns the value of the handCannonFireInaccuracy record component.
      Returns:
      the value of the handCannonFireInaccuracy record component
    • meteorStaffMaxUseRange

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> meteorStaffMaxUseRange()
      Returns the value of the meteorStaffMaxUseRange record component.
      Returns:
      the value of the meteorStaffMaxUseRange record component
    • meteorStaffExplosionRadius

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> meteorStaffExplosionRadius()
      Returns the value of the meteorStaffExplosionRadius record component.
      Returns:
      the value of the meteorStaffExplosionRadius record component
    • meteorStaffExplosionBreakBlocks

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> meteorStaffExplosionBreakBlocks()
      Returns the value of the meteorStaffExplosionBreakBlocks record component.
      Returns:
      the value of the meteorStaffExplosionBreakBlocks record component
    • cursedSightStaffMaxUseRange

      public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> cursedSightStaffMaxUseRange()
      Returns the value of the cursedSightStaffMaxUseRange record component.
      Returns:
      the value of the cursedSightStaffMaxUseRange record component