Package mindustry.entities.bullet
Class BasicBulletType
java.lang.Object
mindustry.ctype.Content
mindustry.entities.bullet.BulletType
mindustry.entities.bullet.BasicBulletType
- All Implemented Interfaces:
Cloneable
,Comparable<Content>
- Direct Known Subclasses:
ArtilleryBulletType
,BombBulletType
,EmpBulletType
,FlakBulletType
,LaserBoltBulletType
,MissileBulletType
An extended BulletType for most ammo-based bullets shot from turrets and units. Draws 1-2 sprites that can spin or shrink.
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo
-
Field Summary
Modifier and TypeFieldDescriptionfloat
float
float
float
float
float
Fields inherited from class mindustry.entities.bullet.BulletType
absorbable, ammoMultiplier, backMove, buildingDamageMultiplier, bulletInterval, chargeEffect, collideFloor, collides, collidesAir, collidesGround, collidesTeam, collidesTiles, collideTerrain, createChance, damage, despawnEffect, despawnHit, despawnShake, despawnSound, despawnUnit, despawnUnitChance, despawnUnitCount, despawnUnitRadius, displayAmmoMultiplier, drag, drawSize, faceOutwards, fragAngle, fragBullet, fragBullets, fragLifeMax, fragLifeMin, fragOnAbsorb, fragOnHit, fragRandomSpread, fragSpread, fragVelocityMax, fragVelocityMin, healAmount, healColor, healEffect, healPercent, hitColor, hitEffect, hitShake, hitSize, hitSound, hitSoundPitch, hitSoundVolume, hittable, homingDelay, homingPower, homingRange, ignoreSpawnAngle, impact, inaccuracy, incendAmount, incendChance, incendSpread, instantDisappear, intervalAngle, intervalBullet, intervalBullets, intervalDelay, intervalRandomSpread, intervalSpread, keepVelocity, killShooter, knockback, laserAbsorb, layer, lifetime, lightColor, lightning, lightningAngle, lightningColor, lightningCone, lightningDamage, lightningLength, lightningLengthRand, lightningType, lightOpacity, lightRadius, makeFire, maxRange, optimalLifeFract, parts, pierce, pierceArmor, pierceBuilding, pierceCap, pierceDamageFactor, puddleAmount, puddleLiquid, puddleRange, puddles, range, rangeChange, rangeOverride, recoil, reflectable, reloadMultiplier, removeAfterPierce, scaledSplashDamage, scaleLife, setDefaults, shootEffect, smokeEffect, spawnBullets, spawnUnit, speed, splashDamage, splashDamagePierce, splashDamageRadius, status, statusDuration, suppressionDuration, suppressionEffectChance, suppressionRange, trailChance, trailColor, trailEffect, trailInterp, trailInterval, trailLength, trailParam, trailRotation, trailSinMag, trailSinScl, trailWidth, weaveMag, weaveRandom, weaveScale
-
Constructor Summary
ConstructorDescriptionFor mods.BasicBulletType
(float speed, float damage) BasicBulletType
(float speed, float damage, String bulletSprite) -
Method Summary
Methods inherited from class mindustry.entities.bullet.BulletType
calculateRange, continuousDamage, copy, 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, init, init, removed, testCollision, update, updateBulletInterval, updateHoming, updateTrail, updateTrailEffects, updateWeaving
-
Field Details
-
backColor
-
frontColor
-
mixColorFrom
-
mixColorTo
-
width
public float width -
height
public float height -
shrinkX
public float shrinkX -
shrinkY
public float shrinkY -
shrinkInterp
-
spin
public float spin -
rotationOffset
public float rotationOffset -
sprite
-
backSprite
-
backRegion
-
frontRegion
-
-
Constructor Details
-
BasicBulletType
-
BasicBulletType
public BasicBulletType(float speed, float damage) -
BasicBulletType
public BasicBulletType()For mods.
-
-
Method Details
-
load
public void load()Description copied from class:Content
Called after all content is created, only on non-headless versions. Use for loading regions or other image data.- Overrides:
load
in classBulletType
-
draw
public void draw(mindustry.gen.Bullet b) - Overrides:
draw
in classBulletType
-