Class Drill
java.lang.Object
mindustry.ctype.Content
mindustry.ctype.MappableContent
mindustry.ctype.UnlockableContent
mindustry.world.Block
mindustry.world.blocks.production.Drill
- All Implemented Interfaces:
Comparable<Content>,Senseable
- Direct Known Subclasses:
BurstDrill
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionSpecial exemption item that this drill can't mine.arc.struct.Seq<Item>Special exemption items that this drill can't mine.booleanWhether to draw the item this drill is mining.booleanbooleanEffect played when an item is produced.floatChance of displaying the effect.floatDrill effect randomness.arc.struct.ObjectFloatMap<Item>Multipliers of drill speed for each item.floatBase time to drill one ore, in frames.floatarc.graphics.Colorprotected final arc.struct.Seq<Item>arc.graphics.g2d.TextureRegionfloatHow many times faster the drill will progress when boosted by liquid.protected final arc.struct.ObjectIntMap<Item>protected intprotected Itemarc.graphics.g2d.TextureRegionfloatSpeed the drill bit rotates at.arc.graphics.g2d.TextureRegionintMaximum tier of blocks this drill can mine.arc.graphics.g2d.TextureRegionEffect randomly played while drilling.floatChance the update effect will appear.floatSpeed at which the drill speeds up.Fields 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, connectedPower, consPower, consumeBuilder, consumers, consumesPower, consumesTap, conveyorPlacement, copyConfig, createRubble, crushDamageMultiplier, customShadow, customShadowRegion, deconstructDropAllLiquid, deconstructThreshold, destroyBullet, destroyBulletSameTeam, destroyEffect, destroyPitchMax, destroyPitchMin, destroySound, 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, 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, databaseTabs, 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 TypeMethodDescriptionbooleanbooleancanPlaceOn(Tile tile, Team team, int rotation) protected voidvoiddrawPlace(int x, int y, int rotation, boolean valid) Drawn when you are placing a block.voiddrawPlanConfigTop(BuildPlan plan, arc.util.Eachable<BuildPlan> list) floatgetDrillTime(Item item) arc.graphics.g2d.TextureRegion[]icons()voidinit()Called after all blocks are created.voidsetBars()voidsetStats()Initializes stats on demand.Methods inherited from class mindustry.world.Block
addBar, addLiquidBar, addLiquidBar, afterPatch, asFloor, beforePlaceBegan, blockChanged, bounds, buildEditorConfig, canBeBuilt, canBreak, 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, drawOverlay, drawPlaceText, drawPlan, drawPlan, drawPlanConfig, drawPlanConfigCenter, drawPlanConfigCenter, drawPlanRegion, drawPotentialLinks, drawShadow, drawSideRegion, editorPicked, environmentBuildable, findConsumer, flipRotation, getConfig, getContentType, getDependencies, getDisplayIcon, getDisplayName, getEdges, getGeneratedIcons, getInsideEdges, getPlanConfigs, getPlanRegion, getRegionsToOutline, getReplacement, handlePlacementLine, hasBuilding, hasConsumer, initBuilding, isAccessible, isAir, isBanned, isDarkened, isFloor, isHidden, isMultiblock, isOverlay, isPlaceable, isStatic, isVisible, iterateTaken, listBars, load, logicVisible, makeIconRegions, minimapColor, nearbySide, newBuilding, nextConfig, onNewPlan, onPicked, outputsItems, percentSolid, placeBegan, placeBegan, placeEnded, planRotation, pointConfig, postInit, reinitializeConsumers, removeBar, removeConsumer, removeConsumers, requirements, requirements, requirements, researchRequirements, resetGeneratedIcons, rotatedOutput, 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
-
hardnessDrillMultiplier
public float hardnessDrillMultiplier -
oreCount
-
itemArray
-
tier
public int tierMaximum tier of blocks this drill can mine. -
drillTime
public float drillTimeBase time to drill one ore, in frames. -
liquidBoostIntensity
public float liquidBoostIntensityHow many times faster the drill will progress when boosted by liquid. -
warmupSpeed
public float warmupSpeedSpeed at which the drill speeds up. -
blockedItem
Special exemption item that this drill can't mine. -
blockedItems
Special exemption items that this drill can't mine. -
returnItem
-
returnCount
protected int returnCount -
drawMineItem
public boolean drawMineItemWhether to draw the item this drill is mining. -
drillEffect
Effect played when an item is produced. This is colored. -
drillEffectRnd
public float drillEffectRndDrill effect randomness. Block size by default. -
drillEffectChance
public float drillEffectChanceChance of displaying the effect. Useful for extremely fast drills. -
rotateSpeed
public float rotateSpeedSpeed the drill bit rotates at. -
updateEffect
Effect randomly played while drilling. -
updateEffectChance
public float updateEffectChanceChance the update effect will appear. -
drillMultipliers
Multipliers of drill speed for each item. Defaults to 1. -
drawRim
public boolean drawRim -
drawSpinSprite
public boolean drawSpinSprite -
heatColor
public arc.graphics.Color heatColor -
rimRegion
public arc.graphics.g2d.TextureRegion rimRegion -
rotatorRegion
public arc.graphics.g2d.TextureRegion rotatorRegion -
topRegion
public arc.graphics.g2d.TextureRegion topRegion -
itemRegion
public arc.graphics.g2d.TextureRegion itemRegion
-
-
Constructor Details
-
Drill
-
-
Method Details
-
init
public void init()Description copied from class:BlockCalled after all blocks are created. -
drawPlanConfigTop
- Overrides:
drawPlanConfigTopin classBlock
-
setBars
public void setBars() -
getDrop
-
canPlaceOn
- Overrides:
canPlaceOnin classBlock- Returns:
- whether this block can be placed on the specified tile.
-
drawPlace
public void drawPlace(int x, int y, int rotation, boolean valid) Description copied from class:BlockDrawn when you are placing a block. -
getDrillTime
-
setStats
public void setStats()Description copied from class:UnlockableContentInitializes stats on demand. Should only be called once. Only called before something is displayed. -
icons
public arc.graphics.g2d.TextureRegion[] icons() -
countOre
-
canMine
-