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 classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo
-
Field Summary
Modifier and TypeFieldDescriptionSpecial exemption item that this drill can't mine.boolean
Whether to draw the item this drill is mining.boolean
boolean
Effect played when an item is produced.float
Chance of displaying the effect.float
Drill effect randomness.Multipliers of drill speed for each item.float
Base time to drill one ore, in frames.float
float
How many times faster the drill will progress when boosted by liquid.protected final ObjectIntMap<Item>
protected int
protected Item
float
Speed the drill bit rotates at.int
Maximum tier of blocks this drill can mine.Effect randomly played while drilling.float
Chance the update effect will appear.float
Speed at which the drill speeds up.Fields inherited from class mindustry.world.Block
absorbLasers, acceptsItems, acceptsPayload, albedo, allowConfigInventory, allowDiagonal, allowResupply, alwaysReplace, alwaysUpdateInUnits, ambientSound, ambientSoundVolume, armor, attacks, attributes, autoResetEnabled, barMap, baseExplosiveness, breakable, breakEffect, breakPitchChange, breakSound, buildCost, buildCostMultiplier, buildType, buildVisibility, cacheLayer, canOverdrive, category, clearOnDoubleTap, clipSize, commandable, conductivePower, configurable, configurations, connectedPower, consPower, consumeBuilder, consumers, consumesPower, consumesTap, conveyorPlacement, copyConfig, createRubble, crushDamageMultiplier, customShadow, customShadowRegion, deconstructThreshold, destroyBullet, destroyBulletSameTeam, destroyEffect, destroySound, destructible, displayFlow, drawArrow, drawCracks, drawDisabled, drawLiquidLight, drawTeamOverlay, dumpTime, editorIcon, editorVariantRegions, emitLight, enableDrawStatus, envDisabled, envEnabled, envRequired, fillsTile, flags, floating, fogRadius, forceDark, generatedIcons, group, hasColor, hasConsumers, hasItems, hasLiquids, hasPower, hasShadow, health, inEditor, instantDeconstruct, instantTransfer, insulated, invertFlip, isDuct, itemCapacity, itemDrop, itemFilter, lastConfig, lightColor, lightLiquid, lightRadius, liquidCapacity, liquidFilter, liquidPressure, lockRotation, logicConfigurable, loopSound, loopSoundVolume, 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, 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, unloadable, update, updateConsumers, updateInUnits, useColor, variantRegions, variants, variantShadowRegions
Fields inherited from class mindustry.ctype.UnlockableContent
alwaysUnlocked, description, details, fullIcon, generateIcons, hideDetails, iconId, inlineDescription, localizedName, selectionSize, stats, techNode, techNodes, uiIcon, unlocked
Fields inherited from class mindustry.ctype.MappableContent
name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canPlaceOn
(Tile tile, Team team, int rotation) protected void
void
drawPlace
(int x, int y, int rotation, boolean valid) Drawn when you are placing a block.void
drawPlanConfigTop
(BuildPlan plan, Eachable<BuildPlan> list) float
getDrillTime
(Item item) icons()
void
init()
Called after all blocks are created.void
setBars()
void
setStats()
Initializes stats on demand.Methods inherited from class mindustry.world.Block
addBar, addLiquidBar, addLiquidBar, asFloor, beforePlaceBegan, bounds, canBeBuilt, canBreak, canReplace, changePlacementPath, changePlacementPath, checkForceDark, config, configClear, configSenseable, consume, consumeCoolant, consumeCoolant, consumeItem, consumeItem, consumeItems, consumeLiquid, consumeLiquids, consumePower, consumePowerBuffered, consumePowerCond, consumePowerDynamic, consumesItem, consumesLiquid, createIcons, drawBase, drawDefaultPlanRegion, drawEnvironmentLight, drawOverlay, drawPlaceText, drawPlan, drawPlan, drawPlanConfig, drawPlanConfigCenter, drawPlanConfigCenter, drawPlanRegion, drawPotentialLinks, drawShadow, editorIcon, editorVariantRegions, environmentBuildable, findConsumer, flipRotation, getContentType, getDependencies, getDisplayIcon, getDisplayName, getEdges, getGeneratedIcons, getInsideEdges, getPlanRegion, getRegionsToOutline, getReplacement, handlePlacementLine, hasBuilding, hasConsumer, initBuilding, isAccessible, isAir, isFloor, isHidden, isMultiblock, isOverlay, isPlaceable, isStatic, isVisible, isVisibleOn, iterateTaken, listBars, load, logicVisible, makeIconRegions, minimapColor, nearbySide, newBuilding, nextConfig, onNewPlan, outputsItems, percentSolid, placeBegan, placeBegan, planRotation, pointConfig, removeBar, removeConsumer, requirements, requirements, requirements, researchRequirements, resetGeneratedIcons, rotatedOutput, sense, sense, senseObject, setupRequirements, setupRequirements, sumAttribute, supportsEnv, synthetic, updateClipRadius, variantRegions
Methods inherited from class mindustry.ctype.UnlockableContent
checkStats, clearUnlock, displayDescription, displayExtra, emoji, getLogicId, hasEmoji, loadIcon, locked, makeOutline, makeOutline, makeOutline, onUnlock, quietUnlock, showUnlock, unlock, unlocked, unlockedNow, unlockedNowHost
Methods inherited from class mindustry.ctype.MappableContent
toString
Methods 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. -
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
-
rimRegion
-
rotatorRegion
-
topRegion
-
itemRegion
-
-
Constructor Details
-
Drill
-
-
Method Details
-
init
public void init()Description copied from class:Block
Called after all blocks are created. -
drawPlanConfigTop
- Overrides:
drawPlanConfigTop
in classBlock
-
setBars
public void setBars() -
getDrop
-
canPlaceOn
- Overrides:
canPlaceOn
in 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:Block
Drawn when you are placing a block. -
getDrillTime
-
setStats
public void setStats()Description copied from class:UnlockableContent
Initializes stats on demand. Should only be called once. Only called before something is displayed. -
icons
-
countOre
-
canMine
-