Package mindustry.entities.bullet
Class ShrapnelBulletType
java.lang.Object
mindustry.ctype.Content
mindustry.entities.bullet.BulletType
mindustry.entities.bullet.ShrapnelBulletType
- All Implemented Interfaces:
Cloneable,Comparable<Content>
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionarc.graphics.Colorbooleanfloatfloatfloatintfloatfloatfloatarc.graphics.ColorfloatFields inherited from class mindustry.entities.bullet.BulletType
absorbable, accel, ammoMultiplier, angleOffset, buildingDamageMultiplier, bulletInterval, cachedDps, chargeEffect, circleShooter, circleShooterRadius, circleShooterRadiusSmooth, circleShooterRotateSpeed, collideFloor, collides, collidesAir, collidesGround, collidesTeam, collidesTiles, collideTerrain, createChance, damage, delayFrags, despawnEffect, despawnHit, despawnShake, despawnSound, despawnUnit, despawnUnitChance, despawnUnitCount, despawnUnitRadius, displayAmmoMultiplier, drag, drawSize, extraRangeMargin, faceOutwards, followAimSpeed, fragAngle, fragBullet, fragBullets, fragLifeMax, fragLifeMin, fragOffsetMax, fragOffsetMin, fragOnAbsorb, fragOnHit, fragRandomSpread, fragSpread, fragVelocityMax, fragVelocityMin, healAmount, healColor, healEffect, healPercent, hitColor, hitEffect, hitShake, hitSize, hitSound, hitSoundPitch, hitSoundVolume, hittable, hitUnder, homingDelay, homingPower, homingRange, ignoreSpawnAngle, impact, inaccuracy, incendAmount, incendChance, incendSpread, instantDisappear, intervalAngle, intervalBullet, intervalBullets, intervalDelay, intervalRandomSpread, intervalSpread, keepVelocity, killShooter, knockback, laserAbsorb, layer, lifeScaleRandMax, lifeScaleRandMin, lifesteal, lifetime, lightColor, lightning, lightningAngle, lightningColor, lightningCone, lightningDamage, lightningLength, lightningLengthRand, lightningType, lightOpacity, lightRadius, makeFire, maxDamageFraction, maxRange, minRangeChange, optimalLifeFract, parts, pierce, pierceArmor, pierceBuilding, pierceCap, pierceDamageFactor, pierceFragCap, puddleAmount, puddleLiquid, puddleRange, puddles, randomAngleOffset, range, rangeChange, rangeOverride, recoil, reflectable, reloadMultiplier, removeAfterPierce, rotateSpeed, scaledSplashDamage, scaleLife, setDefaults, shieldDamageMultiplier, shootEffect, smokeEffect, spawnBulletRandomSpread, spawnBullets, spawnUnit, speed, splashDamage, splashDamagePierce, splashDamageRadius, statLiquidConsumed, status, statusDuration, sticky, stickyExtraLifetime, suppressColor, suppressionDuration, suppressionEffectChance, suppressionRange, targetBlocks, targetMissiles, trailChance, trailColor, trailEffect, trailInterp, trailInterval, trailLength, trailMinVelocity, trailParam, trailRotation, trailSinMag, trailSinScl, trailSpread, trailWidth, underwater, velocityScaleRandMax, velocityScaleRandMin, weaveMag, weaveRandom, weaveScale -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class mindustry.entities.bullet.BulletType
buildingDamage, continuousDamage, copy, create, create, create, create, create, create, create, create, create, create, create, create, create, createBullet, createFrags, createIncend, createNet, createPuddles, createSplashDamage, createUnits, damageMultiplier, despawned, drawLight, drawParts, drawTrail, estimateDPS, getContentType, handlePierce, heals, hit, hit, hitEntity, hitTile, load, removed, shieldDamage, testCollision, update, updateBulletInterval, updateHoming, updateTrail, updateTrailEffects, updateWeavingMethods inherited from class mindustry.ctype.Content
afterPatch, compareTo, hasErrored, isModded, isVanilla, loadIcon, postInit, toString
-
Field Details
-
length
public float length -
width
public float width -
fromColor
public arc.graphics.Color fromColor -
toColor
public arc.graphics.Color toColor -
hitLarge
public boolean hitLarge -
serrations
public int serrations -
serrationLenScl
public float serrationLenScl -
serrationWidth
public float serrationWidth -
serrationSpacing
public float serrationSpacing -
serrationSpaceOffset
public float serrationSpaceOffset -
serrationFadeOffset
public float serrationFadeOffset
-
-
Constructor Details
-
ShrapnelBulletType
public ShrapnelBulletType()
-
-
Method Details
-
init
public void init(mindustry.gen.Bullet b) - Overrides:
initin classBulletType
-
init
public void init()Description copied from class:ContentCalled after all content and modules are created. Do not use to load regions or texture data!- Overrides:
initin classBulletType
-
calculateRange
protected float calculateRange()- Overrides:
calculateRangein classBulletType- Returns:
- maximum distance the bullet this bullet type has can travel.
-
draw
public void draw(mindustry.gen.Bullet b) - Overrides:
drawin classBulletType
-