Class AttributeCrafter
java.lang.Object
mindustry.ctype.Content
mindustry.ctype.MappableContent
mindustry.ctype.UnlockableContent
mindustry.world.Block
mindustry.world.blocks.production.GenericCrafter
mindustry.world.blocks.production.AttributeCrafter
- All Implemented Interfaces:
Comparable<Content>,Senseable
A crafter that gains efficiency from attribute tiles.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class mindustry.world.blocks.production.GenericCrafter
GenericCrafter.GenericCrafterBuildNested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatBase efficiency of the crafter.floatScaled efficiency (speed) multiplier, scales with attribute.booleanWhether to show this bar in the UI.booleanWhether to show this bar in the UI.floatMaximum efficiency/output boost from attributes.floatMinimum efficiency required to place this block.floatScaled output (yield) multiplier, scales with attribute.booleanWhether liquid consumption scales with efficiency.Fields inherited from class mindustry.world.blocks.production.GenericCrafter
craftEffect, craftTime, drawer, dumpExtraLiquid, ignoreLiquidFullness, legacyReadWarmup, liquidOutputDirections, outputItem, outputItems, outputLiquid, outputLiquids, updateEffect, updateEffectChance, updateEffectSpread, warmupSpeedFields inherited from class mindustry.world.Block
absorbLasers, acceptsItems, acceptsPayload, acceptsUnitPayloads, albedo, allowConfigInventory, allowDerelictRepair, allowDiagonal, allowedInPayloads, allowRectanglePlacement, allowResupply, alwaysAllowDeposit, alwaysReplace, alwaysUpdateInUnits, ambientSound, ambientSoundVolume, armor, attacks, attributes, autoResetEnabled, barMap, baseExplosiveness, baseShake, breakable, breakEffect, breakPitchChange, breakSound, buildCostMultiplier, buildingCacheLayer, 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, diagonalConfigInventory, displayFlow, drawArrow, drawCached, drawCracks, drawDisabled, drawDynamic, 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, maxConsecutive, 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
Methods inherited from class mindustry.world.blocks.production.GenericCrafter
afterPatch, drawOverlay, drawPlanRegion, getRegionsToOutline, icons, init, load, outputsItems, rotatedOutputMethods inherited from class mindustry.world.Block
addBar, addLiquidBar, addLiquidBar, asFloor, beforePlaceBegan, blockChanged, bounds, buildEditorConfig, canBeBuilt, canBreak, canReplace, changePlacementPath, changePlacementPath, checkContentArrayCapacity, checkForceDark, config, configClear, configSenseable, consume, consumeCoolant, consumeCoolant, consumeItem, consumeItem, consumeItems, consumeLiquid, consumeLiquids, consumePower, consumePowerBuffered, consumePowerCond, consumePowerDynamic, consumePowerDynamic, consumesItem, consumesLiquid, createIcons, displayShadow, drawBase, drawBaseCached, drawDefaultPlanRegion, drawEnvironmentLight, drawOtherPlayerPlan, 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, isOverPlacementLimit, isPlaceable, isStatic, isVisible, iterateTaken, listBars, logicVisible, makeIconRegions, minimapColor, nearbySide, newBuilding, nextConfig, onNewPlan, onPicked, percentSolid, placeBegan, placeBegan, placeEnded, planConfigClipSize, planRotation, pointConfig, postInit, reinitializeConsumers, 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, computeStats, displayDescription, displayExtra, emoji, emojiChar, getLogicId, hasEmoji, isOnPlanet, loadIcon, locked, makeOutline, 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, isPatchContent, isVanilla, removeContent
-
Field Details
-
attribute
-
baseEfficiency
public float baseEfficiencyBase efficiency of the crafter. -
maxBoost
public float maxBoostMaximum efficiency/output boost from attributes. -
minEfficiency
public float minEfficiencyMinimum efficiency required to place this block. -
displayEfficiency
public boolean displayEfficiencyWhether to show this bar in the UI. -
displayScaledOutput
public boolean displayScaledOutputWhether to show this bar in the UI. -
scaleLiquidConsumption
public boolean scaleLiquidConsumptionWhether liquid consumption scales with efficiency. -
outputScale
public float outputScaleScaled output (yield) multiplier, scales with attribute. <=0 to disable. -
boostScale
public float boostScaleScaled efficiency (speed) multiplier, scales with attribute. <=0 to disable.
-
-
Constructor Details
-
AttributeCrafter
-
-
Method Details
-
drawPlace
public void drawPlace(int x, int y, int rotation, boolean valid) Description copied from class:BlockDrawn when you are placing a block. -
setBars
public void setBars()- Overrides:
setBarsin classGenericCrafter
-
canPlaceOn
- Overrides:
canPlaceOnin classBlock- Returns:
- whether this block can be placed on the specified tile.
-
setStats
public void setStats()Description copied from class:UnlockableContentInitializes stats on demand. Called every time the block stats are shown.- Overrides:
setStatsin classGenericCrafter
-