Class ItemTurret
- All Implemented Interfaces:
Comparable<Content>,Senseable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class mindustry.world.blocks.defense.turrets.Turret
Turret.AmmoEntry, Turret.BulletEntry, Turret.TurretBuildNested classes/interfaces inherited from class mindustry.world.blocks.defense.turrets.ReloadTurret
ReloadTurret.ReloadTurretBuildNested classes/interfaces inherited from class mindustry.world.blocks.defense.turrets.BaseTurret
BaseTurret.BaseTurretBuildNested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo -
Field Summary
FieldsFields inherited from class mindustry.world.blocks.defense.turrets.Turret
accurateDelay, alwaysShooting, ammoEjectBack, ammoPerShot, ammoUseEffect, buildingFilter, chargeSound, consumeAmmoOnce, cooldownTime, displayAmmoMultiplier, drawer, drawMinRange, elevation, heatColor, heatRequirement, inaccuracy, linearWarmup, logicControlCooldown, loopSound, loopSoundVolume, maxAmmo, maxHeatEfficiency, minRange, minWarmup, moveWhileCharging, newTargetInterval, playerControllable, predictTarget, recoil, recoilPow, recoils, recoilTime, reloadWhileCharging, scaleLifetimeOffset, shake, shoot, shootCone, shootEffect, shootSound, shootSoundVolume, shootWarmupSpeed, shootX, shootY, smokeEffect, soundPitchMax, soundPitchMin, targetAir, targetBlocks, targetGround, targetHealing, targetInterval, targetUnderBlocks, timerTarget, trackingRange, unitFilter, unitSort, velocityRnd, warmupMaintainTime, xRandFields inherited from class mindustry.world.blocks.defense.turrets.ReloadTurret
reloadFields inherited from class mindustry.world.blocks.defense.turrets.BaseTurret
activationTime, coolant, coolantMultiplier, coolEffect, disableOverlapCheck, fogRadiusMultiplier, placeOverlapMargin, range, rotateSpeedFields inherited from class mindustry.world.Block
absorbLasers, acceptsItems, acceptsPayload, acceptsUnitPayloads, albedo, allowConfigInventory, allowDerelictRepair, allowDiagonal, allowRectanglePlacement, allowResupply, alwaysAllowDeposit, alwaysReplace, alwaysUpdateInUnits, ambientSound, ambientSoundVolume, armor, attacks, attributes, autoResetEnabled, barMap, baseExplosiveness, baseShake, breakable, breakEffect, breakPitchChange, breakSound, buildCostMultiplier, buildTime, buildType, buildVisibility, cacheLayer, canOverdrive, canPickup, category, clearOnDoubleTap, clipSize, commandable, conductivePower, configurable, configurations, configureSound, connectedPower, consPower, consumeBuilder, consumers, consumesPower, consumesTap, conveyorPlacement, copyConfig, createRubble, crushDamageMultiplier, crushFragile, customShadow, customShadowRegion, deconstructDropAllLiquid, deconstructThreshold, delayLandingConfig, depositCooldown, destroyBullet, destroyBulletSameTeam, destroyEffect, destroyPitchMax, destroyPitchMin, destroySound, destroySoundVolume, destructible, displayFlow, drawArrow, drawCracks, drawDisabled, drawLiquidLight, drawTeamOverlay, dumpTime, editorConfigurable, emitLight, enableDrawStatus, envDisabled, envEnabled, envRequired, explosivenessScale, fillsTile, flags, flammabilityScale, floating, fogRadius, forceDark, forceTeam, generatedIcons, group, hasColor, hasConsumers, hasItems, hasLiquids, hasPower, hasShadow, health, ignoreBuildDarkness, ignoreLineRotation, ignoreResizeConfig, inEditor, instantBuild, instantDeconstruct, instantTransfer, insulated, invertFlip, isDuct, itemCapacity, itemDrop, itemFilter, lastConfig, lightClipSize, lightColor, lightLiquid, lightRadius, liquidCapacity, liquidFilter, liquidPressure, lockRotation, logicConfigurable, mapColor, nonOptionalConsumers, noSideBlend, noUpdateDisabled, obstructsLight, offset, optionalConsumers, outlineColor, outlinedIcon, outlineIcon, outlineRadius, outputFacing, outputsLiquid, outputsPayload, outputsPower, placeableLiquid, placeableOn, placeablePlayer, placeEffect, placeOverlapRange, placePitchChange, placeSound, playerUnmineable, priority, privileged, quickRotate, rebuildable, region, regionRotated1, regionRotated2, replaceable, requirements, requiresWater, researchCost, researchCostMultiplier, researchCostMultipliers, rotate, rotateDraw, rotateDrawEditor, saveConfig, saveData, scaledHealth, schematicPriority, selectionColumns, selectionRows, selectScroll, separateItemCapacity, size, sizeOffset, solid, solidifes, squareSprite, subclass, suppressable, swapDiagonalPlacement, sync, targetable, teamPassable, teamRegion, teamRegions, tempBuilds, tempTiles, timerDump, timers, underBullets, unitCapModifier, unitMoveBreakable, unloadable, update, updateConsumers, updateInUnits, useColor, variantRegions, variants, variantShadowRegions, visualRotationOffsetFields inherited from class mindustry.ctype.UnlockableContent
allDatabaseTabs, alwaysUnlocked, credit, databaseCategory, databaseTabs, databaseTag, description, details, fullIcon, fullOverride, generateIcons, hideDatabase, hideDetails, inlineDescription, localizedName, selectionSize, shownPlanets, stats, techNode, techNodes, uiIcon, unlockedFields inherited from class mindustry.ctype.MappableContent
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes accepted ammo map.voidinit()Called after all blocks are created.voidLimits bullet range to this turret's range value.voidlimitRange(float margin) Limits bullet range to this turret's range value.voidsetBars()voidsetStats()Initializes stats on demand.Methods inherited from class mindustry.world.blocks.defense.turrets.Turret
drawPlace, drawPlanRegion, getRegionsToOutline, icons, limitRange, load, outputsItems, placeEnded, rotatedOutputMethods inherited from class mindustry.world.blocks.defense.turrets.BaseTurret
reinitializeConsumersMethods inherited from class mindustry.world.Block
addBar, addLiquidBar, addLiquidBar, afterPatch, asFloor, beforePlaceBegan, blockChanged, bounds, buildEditorConfig, canBeBuilt, canBreak, canPlaceOn, canReplace, changePlacementPath, changePlacementPath, checkForceDark, config, configClear, configSenseable, consume, consumeCoolant, consumeCoolant, consumeItem, consumeItem, consumeItems, consumeLiquid, consumeLiquids, consumePower, consumePowerBuffered, consumePowerCond, consumePowerDynamic, consumePowerDynamic, consumesItem, consumesLiquid, createIcons, displayShadow, drawBase, drawDefaultPlanRegion, drawEnvironmentLight, drawOtherPlayerPlan, drawOverlay, drawPlaceText, drawPlaceText, drawPlan, drawPlan, drawPlanConfig, drawPlanConfigCenter, drawPlanConfigCenter, drawPlanConfigTop, drawPotentialLinks, drawShadow, drawSideRegion, editorPicked, environmentBuildable, findConsumer, findPlan, findPlan, flipRotation, getColor, getConfig, getContentType, getDependencies, getDisplayIcon, getDisplayName, getEdges, getGeneratedIcons, getInsideEdges, getPlanConfigs, getPlanRegion, getReplacement, handlePlacementLine, hasBuilding, hasConsumer, initBuilding, isAccessible, isAir, isBanned, isDarkened, isFloor, isHidden, isMultiblock, isOverlay, isPlaceable, isStatic, isVisible, iterateTaken, listBars, logicVisible, makeIconRegions, minimapColor, nearbySide, newBuilding, nextConfig, onNewPlan, onPicked, percentSolid, placeBegan, placeBegan, planConfigClipSize, planRotation, pointConfig, postInit, removeBar, removeConsumer, removeConsumers, requirements, requirements, requirements, researchRequirements, resetGeneratedIcons, rotatedOutput, sense, sense, senseObject, setupRequirements, setupRequirements, sumAttribute, supportsEnv, synthetic, updateClipRadius, variantRegionsMethods inherited from class mindustry.ctype.UnlockableContent
checkStats, clearUnlock, displayDescription, displayExtra, emoji, emojiChar, getLogicId, hasEmoji, isOnPlanet, loadIcon, locked, makeOutline, makeOutline, makeOutline, onUnlock, quietUnlock, showUnlock, unlock, unlocked, unlockedHost, unlockedNow, unlockedNowHostMethods inherited from class mindustry.ctype.MappableContent
toStringMethods inherited from class mindustry.ctype.Content
compareTo, hasErrored, isModded, isVanilla
-
Field Details
-
ammoTypes
-
-
Constructor Details
-
ItemTurret
-
-
Method Details
-
ammo
Initializes accepted ammo map. Format: [item1, bullet1, item2, bullet2...] -
limitRange
public void limitRange()Limits bullet range to this turret's range value. -
limitRange
public void limitRange(float margin) Limits bullet range to this turret's range value. -
setStats
public void setStats()Description copied from class:UnlockableContentInitializes stats on demand. Should only be called once. Only called before something is displayed. -
setBars
public void setBars() -
init
public void init()Description copied from class:BlockCalled after all blocks are created.
-