public class ScaledDimension extends RODelegatingDimension<Tile>
Dimension.Anchor, Dimension.Border, Dimension.LayerAnchor, Dimension.Listener, Dimension.Role, Dimension.TileVisitationBuilder, Dimension.TileVisitor, Dimension.WallType
InstanceKeeper.InstantiationListener<T>
dimension, tileCache
POSSIBLE_AUTO_BIOMES
Constructor and Description |
---|
ScaledDimension(Dimension dimension,
float scale) |
Modifier and Type | Method and Description |
---|---|
protected Tile |
doGetTile(java.awt.Point coords) |
java.util.Map<Layer,ExporterSettings> |
getAllLayerSettings() |
boolean |
getBitLayerValueAt(Layer layer,
int x,
int y) |
float |
getDistanceToEdge(Layer layer,
int x,
int y,
float maxDistance)
Get the distance from the specified coordinate to the nearest pixel where
the specified layer is not set.
|
int |
getFloodedCount(int x,
int y,
int r,
boolean lava)
Count the number of blocks that are flooded in a square around a
particular location
|
int |
getHeight() |
float |
getHeightAt(int x,
int y)
Get the terrain height at the specified coordinates, if a tile exists in the specified location.
|
int |
getHighestX() |
int |
getHighestY() |
int |
getIntHeightAt(int x,
int y,
int defaultValue)
Get the terrain height at the specified coordinates, rounded to the nearest integer, if a tile exists in the
specified location.
|
ExporterSettings |
getLayerSettings(Layer layer) |
int |
getLayerValueAt(Layer layer,
int x,
int y) |
int |
getLowestX() |
int |
getLowestY() |
int |
getRawHeightAt(int x,
int y)
Get the raw height value.
|
float |
getSlope(int x,
int y) |
java.util.Set<java.awt.Point> |
getTileCoords() |
int |
getTileCount() |
int |
getWaterLevelAt(int x,
int y) |
int |
getWidth() |
boolean |
isBorderTile(int x,
int y)
Indicates whether the specified tile is a border tile.
|
addDimensionListener, addOverlay, addPropertyChangeListener, addPropertyChangeListener, addTile, allBitLayerDataChanged, allNonBitlayerDataChanged, applyTheme, applyTheme, armSavePoint, changed, clearLayerData, clearRedo, clearUndo, containsOneOf, getAllLayers, getAllTerrains, getAnchor, getBorder, getBorderLevel, getBorderSize, getChangeNo, getContourSeparation, getCustomBiomes, getGarden, getGridSize, getHeightAt, getIntHeightAt, getIntHeightAt, getLastViewPosition, getLayerValueAt, getMaxHeight, getMinecraftSeed, getMinimumLayers, getName, getOverlays, getRawHeightAt, getRoofType, getSeed, getSnapshot, getSubsurfaceMaterial, getTerrainAt, getTile, getTile, getTileFactory, getTiles, getTopLayerDepth, getTopLayerMinDepth, getTopLayerVariation, getWallType, getWaterLevelAt, getWorld, heightMapChanged, isBottomless, isContoursEnabled, isEventsInhibited, isGridEnabled, isOverlaysEnabled, isPopulate, isTilePresent, isUndoAvailable, layerDataChanged, registerUndoManager, removeDimensionListener, removeOverlay, removePropertyChangeListener, removePropertyChangeListener, removeTile, removeTile, removeTile, seedsChanged, setBitLayerValueAt, setBorder, setBorderLevel, setBorderSize, setBottomless, setContoursEnabled, setContourSeparation, setCustomBiomes, setEventsInhibited, setGridEnabled, setGridSize, setHeightAt, setHeightAt, setLastViewPosition, setLayerSettings, setLayerValueAt, setMaxHeight, setMinecraftSeed, setOverlaysEnabled, setPopulate, setRawHeightAt, setRawHeightAt, setRoofType, setSubsurfaceMaterial, setTerrainAt, setTerrainAt, setTopLayerMinDepth, setTopLayerVariation, setWallType, setWaterLevelAt, terrainChanged, transform, undoChanges, unregisterUndoManager, waterLevelChanged, wrapTile
clearLayerData, doGetDistanceToEdge, doGetFloodedCount, doGetSlope, getAttribute, getAutoBiome, getAutoBiome, getAutoBiome, getAutoBiome, getBitLayerCount, getCeilingHeight, getCustomLayers, getCustomLayers, getDistancesToEdge, getExportSettings, getExtent, getGenerator, getHeightRange, getHiddenPalettes, getHighestHeight, getHighestIntHeight, getHighestRawHeight, getId, getIntHeightRange, getLayersAt, getLowestHeight, getLowestIntHeight, getLowestRawHeight, getMinHeight, getMostPrevalentBiome, getRawHeightRange, getScale, getSoloedPalette, getSubsurfaceLayerAnchor, getTileForEditing, getTileForEditing, getTopLayerAnchor, getUndergroundBiome, isCoverSteepTerrain, isFixOverlayCoords, rememberChanges, save, setAttribute, setCeilingHeight, setCoverSteepTerrain, setCustomLayers, setExportSettings, setFixOverlayCoords, setGenerator, setHiddenPalettes, setMinHeight, setName, setScale, setSoloedPalette, setSubsurfaceLayerAnchor, setTopLayerAnchor, setUndergroundBiome, setWorld, visitTiles, visitTilesForEditing
setInstantiationListener
public ScaledDimension(Dimension dimension, float scale)
public int getTileCount()
getTileCount
in class RODelegatingDimension<Tile>
public int getIntHeightAt(int x, int y, int defaultValue)
Dimension
getIntHeightAt
in class RODelegatingDimension<Tile>
x
- The X coordinate to query.y
- The Y coordinate to query.defaultValue
- The value to return if there is no tile at the specified coordinates.defaultHeight
if there is no tile at the specified coordinates.public float getHeightAt(int x, int y)
Dimension
getHeightAt
in class RODelegatingDimension<Tile>
x
- The X coordinate to query.y
- The Y coordinate to query.-Float.MAX_VALUE
if there is
no tile at the specified coordinates.public int getRawHeightAt(int x, int y)
Dimension
minHeight
.getRawHeightAt
in class RODelegatingDimension<Tile>
public int getWaterLevelAt(int x, int y)
getWaterLevelAt
in class RODelegatingDimension<Tile>
public int getLayerValueAt(Layer layer, int x, int y)
getLayerValueAt
in class RODelegatingDimension<Tile>
public boolean getBitLayerValueAt(Layer layer, int x, int y)
getBitLayerValueAt
in class RODelegatingDimension<Tile>
public float getDistanceToEdge(Layer layer, int x, int y, float maxDistance)
Dimension
getDistanceToEdge
in class RODelegatingDimension<Tile>
layer
- The layer for which to find the distance to the nearest
edge.x
- The X coordinate of the location towards which to determine the distance.y
- The Y coordinate of the location towards which to determine the distance.maxDistance
- The maximum distance to return. If the actual distance is further, this value will be returned.public int getHeight()
getHeight
in class RODelegatingDimension<Tile>
public int getHighestX()
getHighestX
in class RODelegatingDimension<Tile>
public int getHighestY()
getHighestY
in class RODelegatingDimension<Tile>
public ExporterSettings getLayerSettings(Layer layer)
getLayerSettings
in class RODelegatingDimension<Tile>
public java.util.Map<Layer,ExporterSettings> getAllLayerSettings()
getAllLayerSettings
in class RODelegatingDimension<Tile>
public int getLowestX()
getLowestX
in class RODelegatingDimension<Tile>
public int getLowestY()
getLowestY
in class RODelegatingDimension<Tile>
public int getFloodedCount(int x, int y, int r, boolean lava)
Dimension
getFloodedCount
in class RODelegatingDimension<Tile>
x
- The global X coordinate of the location around which to count
flooded blocks.y
- The global Y coordinate of the location around which to count
flooded blocks.r
- The radius of the square.lava
- Whether to check for lava (when true
) or water
(when false
).public float getSlope(int x, int y)
getSlope
in class RODelegatingDimension<Tile>
public java.util.Set<java.awt.Point> getTileCoords()
getTileCoords
in class RODelegatingDimension<Tile>
public int getWidth()
getWidth
in class RODelegatingDimension<Tile>
public boolean isBorderTile(int x, int y)
Dimension
isBorderTile
in class Dimension
x
- The X coordinate of the tile for which to check whether it is a border tile.y
- The Y coordinate of the tile for which to check whether it is a border tile.true
if it is a border tile.protected Tile doGetTile(java.awt.Point coords)
doGetTile
in class RODelegatingDimension<Tile>