Class ColoredFloor
java.lang.Object
mindustry.ctype.Content
mindustry.ctype.MappableContent
mindustry.ctype.UnlockableContent
mindustry.world.Block
mindustry.world.blocks.environment.Floor
mindustry.world.blocks.environment.ColoredFloor
- All Implemented Interfaces:
Comparable<Content>,Senseable
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.world.blocks.environment.Floor
Floor.UpdateRenderStateNested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionarc.graphics.Colorprotected intstatic final intIf the alpha value of the color is set to this value, different colors are ignored and no border is drawn.static final intIf the alpha value of the color is set to this value, colors are interpolated across corners.Fields inherited from class mindustry.world.blocks.environment.Floor
allowCorePlacement, autotile, autotileMidRegions, autotileMidVariants, autotileRegions, autotileVariantRegions, autotileVariants, blended, blenders, blendGroup, blendId, canShadow, damageTaken, decoration, dirs, dragMultiplier, drawEdgeIn, drawEdgeOut, drownTime, drownUpdateEffect, edge, edgeRegion, edges, isLiquid, liquidDrop, liquidMultiplier, needsSurface, oreDefault, oreScale, oreThreshold, overlayAlpha, shallow, speedMultiplier, status, statusDuration, supportsOverlay, tilingRegions, tilingSize, tilingVariants, walkEffect, walkSound, walkSoundPitchMax, walkSoundPitchMin, walkSoundVolume, wall, wallOreFields inherited from class mindustry.world.Block
absorbLasers, acceptsItems, acceptsPayload, acceptsUnitPayloads, albedo, allowConfigInventory, allowDerelictRepair, allowDiagonal, allowRectanglePlacement, allowResupply, 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, 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 TypeMethodDescriptionvoidbuildEditorConfig(arc.scene.ui.layout.Table table) Called to set up configuration UI in the editor.booleancheckAutotileSame(Tile tile, Tile other) voidvoiddrawOverlay(Tile tile) voiddrawPlanRegion(BuildPlan plan, arc.util.Eachable<BuildPlan> list) voideditorPicked(Tile tile) Called when pick blocked in the editor.voidfloorChanged(Tile tile) Called when this floor is set on the specified tile.voidinit()Called after all blocks are created.intminimapColor(Tile tile) voidplaceEnded(Tile tile, mindustry.gen.Unit builder, int rotation, Object config) Called when building of this block ends.static voidshowColorEdit(arc.scene.ui.layout.Table t, Block block) Methods inherited from class mindustry.world.blocks.environment.Floor
createIcons, damages, doEdge, drawBlended, drawEdges, drawMain, drawNonLayer, edge, edges, getDisplayIcon, getDisplayName, hasSurface, icons, isDeep, load, realBlendId, renderUpdate, shouldIndex, updateRender, variant, variantMethods inherited from class mindustry.world.Block
addBar, addLiquidBar, addLiquidBar, asFloor, beforePlaceBegan, blockChanged, bounds, 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, displayShadow, drawDefaultPlanRegion, drawEnvironmentLight, drawOverlay, drawPlace, drawPlaceText, drawPlan, drawPlan, drawPlanConfig, drawPlanConfigCenter, drawPlanConfigCenter, drawPlanConfigTop, drawPotentialLinks, drawShadow, drawSideRegion, environmentBuildable, findConsumer, flipRotation, getContentType, getDependencies, getEdges, getGeneratedIcons, getInsideEdges, getPlanConfigs, getPlanRegion, getRegionsToOutline, getReplacement, handlePlacementLine, hasBuilding, hasConsumer, initBuilding, isAccessible, isAir, isBanned, isDarkened, isFloor, isHidden, isMultiblock, isOverlay, isPlaceable, isStatic, isVisible, iterateTaken, listBars, logicVisible, makeIconRegions, nearbySide, newBuilding, nextConfig, onNewPlan, onPicked, outputsItems, percentSolid, placeBegan, placeBegan, planRotation, pointConfig, postInit, removeBar, removeConsumer, removeConsumers, requirements, requirements, requirements, researchRequirements, resetGeneratedIcons, rotatedOutput, rotatedOutput, sense, sense, senseObject, setBars, setStats, 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
-
flagIgnoreDifferentColor
public static final int flagIgnoreDifferentColorIf the alpha value of the color is set to this value, different colors are ignored and no border is drawn.- See Also:
-
flagSmoothBlend
public static final int flagSmoothBlendIf the alpha value of the color is set to this value, colors are interpolated across corners. This is essentially linear filtering for the whole "image".- See Also:
-
defaultColor
public arc.graphics.Color defaultColor -
defaultColorRgba
protected int defaultColorRgba
-
-
Constructor Details
-
ColoredFloor
-
-
Method Details
-
init
public void init()Description copied from class:BlockCalled after all blocks are created. -
buildEditorConfig
public void buildEditorConfig(arc.scene.ui.layout.Table table) Description copied from class:BlockCalled to set up configuration UI in the editor.Block.editorConfigurablemust be true. Config value should be assigned to lastConfig.- Overrides:
buildEditorConfigin classBlock
-
showColorEdit
-
getConfig
-
drawBase
-
drawOverlay
- Overrides:
drawOverlayin classFloor
-
floorChanged
Description copied from class:FloorCalled when this floor is set on the specified tile.- Overrides:
floorChangedin classFloor
-
placeEnded
public void placeEnded(Tile tile, @Nullable mindustry.gen.Unit builder, int rotation, @Nullable Object config) Description copied from class:BlockCalled when building of this block ends.- Overrides:
placeEndedin classBlock
-
editorPicked
Description copied from class:BlockCalled when pick blocked in the editor.- Overrides:
editorPickedin classBlock
-
drawPlanRegion
- Overrides:
drawPlanRegionin classBlock
-
checkAutotileSame
- Overrides:
checkAutotileSamein classFloor
-
minimapColor
- Overrides:
minimapColorin classBlock- Returns:
- a custom minimap color for this or 0 to use default colors.
-