mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
62 lines
1.7 KiB
Java
62 lines
1.7 KiB
Java
package com.hbm.handler;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import com.hbm.items.ModItems;
|
|
|
|
public class GunConfigFactory {
|
|
|
|
public static GunConfiguration getRevolverConfig() {
|
|
|
|
GunConfiguration config = new GunConfiguration();
|
|
|
|
config.rateOfFire = 10;
|
|
config.gunMode = GunConfiguration.MODE_NORMAL;
|
|
config.firingMode = GunConfiguration.FIRE_MANUAL;
|
|
config.hasReloadAnim = false;
|
|
config.hasFiringAnim = false;
|
|
config.hasSpinup = false;
|
|
config.hasSpindown = false;
|
|
config.reloadDuration = 10;
|
|
config.firingDuration = 0;
|
|
config.ammoCap = 6;
|
|
config.reloadType = GunConfiguration.RELOAD_FULL;
|
|
config.allowsInfinity = true;
|
|
|
|
config.config = new ArrayList<Integer>();
|
|
config.config.add(BulletConfigSyncingUtil.STEEL_REVOLVER);
|
|
config.config.add(BulletConfigSyncingUtil.IRON_REVOLVER);
|
|
config.config.add(BulletConfigSyncingUtil.G20_NORMAL);
|
|
|
|
return config;
|
|
}
|
|
|
|
public static GunConfiguration getMareConfig() {
|
|
|
|
GunConfiguration config = new GunConfiguration();
|
|
|
|
config.rateOfFire = 10;
|
|
config.gunMode = GunConfiguration.MODE_NORMAL;
|
|
config.firingMode = GunConfiguration.FIRE_MANUAL;
|
|
config.hasReloadAnim = false;
|
|
config.hasFiringAnim = false;
|
|
config.hasSpinup = false;
|
|
config.hasSpindown = false;
|
|
config.reloadDuration = 10;
|
|
config.firingDuration = 0;
|
|
config.ammoCap = 6;
|
|
config.reloadType = GunConfiguration.RELOAD_SINGLE;
|
|
config.allowsInfinity = true;
|
|
|
|
config.config = new ArrayList<Integer>();
|
|
config.config.add(BulletConfigSyncingUtil.G20_NORMAL);
|
|
config.config.add(BulletConfigSyncingUtil.G20_SLUG);
|
|
config.config.add(BulletConfigSyncingUtil.G20_FLECHETTE);
|
|
config.config.add(BulletConfigSyncingUtil.G20_FIRE);
|
|
config.config.add(BulletConfigSyncingUtil.G20_EXPLOSIVE);
|
|
|
|
return config;
|
|
}
|
|
|
|
}
|