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<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
ConstructorsConstructorDescriptionCommonConfig(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<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 aCommonConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean>Returns the value of theallowInfiniteAmmoOnAllTiersrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of theblunderbussFireInaccuracyrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of theblunderbussFireVelocityrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean>Returns the value of thebulletsBreakGlassrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer>Returns the value of thecelestialTowerSpawnCheckingRadiusrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of thecelestialTowerWaveSizeModifierrecord component.static CommonConfigcreate(net.minecraftforge.common.ForgeConfigSpec.Builder builder) net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer>Returns the value of thecursedSightStaffMaxUseRangerecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer>Returns the value of thediscoveryAdvancementRangerecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of theflintlockPistolFireInaccuracyrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of theflintlockPistolFireVelocityrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer>Returns the value of theforceSmokeGrenadeParticlesrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of thegunCritChancerecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of thehandCannonFireInaccuracyrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of thehandCannonFireVelocityrecord component.final inthashCode()Returns a hash code value for this object.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of themaxArmorProtectionrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean>Returns the value of themeteorStaffExplosionBreakBlocksrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of themeteorStaffExplosionRadiusrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer>Returns the value of themeteorStaffMaxUseRangerecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of themusketFireInaccuracyrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>Returns the value of themusketFireVelocityrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Object>Returns the value of theskygazerEnchantCapsrecord component.net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean>Returns the value of thetiltrosEnabledrecord component.final StringtoString()Returns a string representation of this record class.
-
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<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 aCommonConfigrecord class.- Parameters:
bulletsBreakGlass- the value for thebulletsBreakGlassrecord componenttiltrosEnabled- the value for thetiltrosEnabledrecord componentforceSmokeGrenadeParticles- the value for theforceSmokeGrenadeParticlesrecord componentmaxArmorProtection- the value for themaxArmorProtectionrecord componentdiscoveryAdvancementRange- the value for thediscoveryAdvancementRangerecord componentcelestialTowerSpawnCheckingRadius- the value for thecelestialTowerSpawnCheckingRadiusrecord componentcelestialTowerWaveSizeModifier- the value for thecelestialTowerWaveSizeModifierrecord componentskygazerEnchantCaps- the value for theskygazerEnchantCapsrecord componentgunCritChance- the value for thegunCritChancerecord componentallowInfiniteAmmoOnAllTiers- the value for theallowInfiniteAmmoOnAllTiersrecord componentflintlockPistolFireVelocity- the value for theflintlockPistolFireVelocityrecord componentflintlockPistolFireInaccuracy- the value for theflintlockPistolFireInaccuracyrecord componentblunderbussFireVelocity- the value for theblunderbussFireVelocityrecord componentblunderbussFireInaccuracy- the value for theblunderbussFireInaccuracyrecord componentmusketFireVelocity- the value for themusketFireVelocityrecord componentmusketFireInaccuracy- the value for themusketFireInaccuracyrecord componenthandCannonFireVelocity- the value for thehandCannonFireVelocityrecord componenthandCannonFireInaccuracy- the value for thehandCannonFireInaccuracyrecord componentmeteorStaffMaxUseRange- the value for themeteorStaffMaxUseRangerecord componentmeteorStaffExplosionRadius- the value for themeteorStaffExplosionRadiusrecord componentmeteorStaffExplosionBreakBlocks- the value for themeteorStaffExplosionBreakBlocksrecord componentcursedSightStaffMaxUseRange- the value for thecursedSightStaffMaxUseRangerecord component
-
-
Method Details
-
create
-
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). -
bulletsBreakGlass
Returns the value of thebulletsBreakGlassrecord component.- Returns:
- the value of the
bulletsBreakGlassrecord component
-
tiltrosEnabled
Returns the value of thetiltrosEnabledrecord component.- Returns:
- the value of the
tiltrosEnabledrecord component
-
forceSmokeGrenadeParticles
Returns the value of theforceSmokeGrenadeParticlesrecord component.- Returns:
- the value of the
forceSmokeGrenadeParticlesrecord component
-
maxArmorProtection
Returns the value of themaxArmorProtectionrecord component.- Returns:
- the value of the
maxArmorProtectionrecord component
-
discoveryAdvancementRange
Returns the value of thediscoveryAdvancementRangerecord component.- Returns:
- the value of the
discoveryAdvancementRangerecord component
-
celestialTowerSpawnCheckingRadius
public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Integer> celestialTowerSpawnCheckingRadius()Returns the value of thecelestialTowerSpawnCheckingRadiusrecord component.- Returns:
- the value of the
celestialTowerSpawnCheckingRadiusrecord component
-
celestialTowerWaveSizeModifier
public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> celestialTowerWaveSizeModifier()Returns the value of thecelestialTowerWaveSizeModifierrecord component.- Returns:
- the value of the
celestialTowerWaveSizeModifierrecord component
-
skygazerEnchantCaps
Returns the value of theskygazerEnchantCapsrecord component.- Returns:
- the value of the
skygazerEnchantCapsrecord component
-
gunCritChance
Returns the value of thegunCritChancerecord component.- Returns:
- the value of the
gunCritChancerecord component
-
allowInfiniteAmmoOnAllTiers
Returns the value of theallowInfiniteAmmoOnAllTiersrecord component.- Returns:
- the value of the
allowInfiniteAmmoOnAllTiersrecord component
-
flintlockPistolFireVelocity
Returns the value of theflintlockPistolFireVelocityrecord component.- Returns:
- the value of the
flintlockPistolFireVelocityrecord component
-
flintlockPistolFireInaccuracy
public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double> flintlockPistolFireInaccuracy()Returns the value of theflintlockPistolFireInaccuracyrecord component.- Returns:
- the value of the
flintlockPistolFireInaccuracyrecord component
-
blunderbussFireVelocity
Returns the value of theblunderbussFireVelocityrecord component.- Returns:
- the value of the
blunderbussFireVelocityrecord component
-
blunderbussFireInaccuracy
Returns the value of theblunderbussFireInaccuracyrecord component.- Returns:
- the value of the
blunderbussFireInaccuracyrecord component
-
musketFireVelocity
Returns the value of themusketFireVelocityrecord component.- Returns:
- the value of the
musketFireVelocityrecord component
-
musketFireInaccuracy
Returns the value of themusketFireInaccuracyrecord component.- Returns:
- the value of the
musketFireInaccuracyrecord component
-
handCannonFireVelocity
Returns the value of thehandCannonFireVelocityrecord component.- Returns:
- the value of the
handCannonFireVelocityrecord component
-
handCannonFireInaccuracy
Returns the value of thehandCannonFireInaccuracyrecord component.- Returns:
- the value of the
handCannonFireInaccuracyrecord component
-
meteorStaffMaxUseRange
Returns the value of themeteorStaffMaxUseRangerecord component.- Returns:
- the value of the
meteorStaffMaxUseRangerecord component
-
meteorStaffExplosionRadius
Returns the value of themeteorStaffExplosionRadiusrecord component.- Returns:
- the value of the
meteorStaffExplosionRadiusrecord component
-
meteorStaffExplosionBreakBlocks
public net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Boolean> meteorStaffExplosionBreakBlocks()Returns the value of themeteorStaffExplosionBreakBlocksrecord component.- Returns:
- the value of the
meteorStaffExplosionBreakBlocksrecord component
-
cursedSightStaffMaxUseRange
Returns the value of thecursedSightStaffMaxUseRangerecord component.- Returns:
- the value of the
cursedSightStaffMaxUseRangerecord component
-