Skip to content

Commit ac01eef

Browse files
committed
Add @deprecated links to newly @deprecated methods
1 parent 0dbf7c0 commit ac01eef

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,6 +2313,7 @@ public List<Countable<BlockState>> getBlockDistribution(Region region, @Nullable
23132313
* @return number of blocks changed
23142314
* @throws ExpressionException if there is a problem with the expression
23152315
* @throws MaxChangedBlocksException if the maximum block change limit is exceeded
2316+
* @deprecated Use {@link EditSession#makeShape(Region, Transform, Pattern, String, boolean, int)}.
23162317
*/
23172318
@Deprecated
23182319
public int makeShape(final Region region, final Vector3 zero, final Vector3 unit,
@@ -2334,6 +2335,7 @@ public int makeShape(final Region region, final Vector3 zero, final Vector3 unit
23342335
* @return number of blocks changed
23352336
* @throws ExpressionException if there is a problem with the expression
23362337
* @throws MaxChangedBlocksException if the maximum block change limit is exceeded
2338+
* @deprecated Use {@link EditSession#makeShape(Region, Transform, Pattern, String, boolean, int)}.
23372339
*/
23382340
@Deprecated
23392341
public int makeShape(final Region region, final Vector3 zero, final Vector3 unit,
@@ -2452,6 +2454,7 @@ protected BaseBlock getMaterial(int x, int y, int z, BaseBlock defaultMaterial)
24522454
*
24532455
* @throws ExpressionException thrown on invalid expression input
24542456
* @throws MaxChangedBlocksException thrown if too many blocks are changed
2457+
* @deprecated Use {@link EditSession#deformRegion(Region, Transform, String, int, InputExtent, Transform)}
24552458
*/
24562459
@Deprecated
24572460
public int deformRegion(final Region region, final Vector3 zero, final Vector3 unit, final String expressionString)
@@ -2474,6 +2477,7 @@ public int deformRegion(final Region region, final Vector3 zero, final Vector3 u
24742477
*
24752478
* @throws ExpressionException thrown on invalid expression input
24762479
* @throws MaxChangedBlocksException thrown if too many blocks are changed
2480+
* @deprecated Use {@link EditSession#deformRegion(Region, Transform, String, int, InputExtent, Transform)}
24772481
*/
24782482
@Deprecated
24792483
public int deformRegion(final Region region, final Vector3 zero, final Vector3 unit, final String expressionString,
@@ -2516,6 +2520,7 @@ public int deformRegion(final Region region, final Transform targetTransform, fi
25162520
* @return number of blocks changed
25172521
* @throws ExpressionException thrown on invalid expression input
25182522
* @throws MaxChangedBlocksException thrown if too many blocks are changed
2523+
* @deprecated Use {@link EditSession#deformRegion(Region, Transform, String, int, InputExtent, Transform)}
25192524
*/
25202525
@Deprecated
25212526
public int deformRegion(final Region region, final Transform transform, final String expressionString,
@@ -2865,12 +2870,18 @@ private void recurseHollow(Region region, BlockVector3 origin, Set<BlockVector3>
28652870
}
28662871
}
28672872

2873+
/**
2874+
* @deprecated Use {@link EditSession#makeBiomeShape(Region, Transform, BiomeType, String, boolean, int)}.
2875+
*/
28682876
@Deprecated
28692877
public int makeBiomeShape(final Region region, final Vector3 zero, final Vector3 unit, final BiomeType biomeType,
28702878
final String expressionString, final boolean hollow) throws ExpressionException {
28712879
return makeBiomeShape(region, zero, unit, biomeType, expressionString, hollow, WorldEdit.getInstance().getConfiguration().calculationTimeout);
28722880
}
28732881

2882+
/**
2883+
* @deprecated Use {@link EditSession#makeBiomeShape(Region, Transform, BiomeType, String, boolean, int)}.
2884+
*/
28742885
@Deprecated
28752886
public int makeBiomeShape(final Region region, final Vector3 zero, final Vector3 unit, final BiomeType biomeType,
28762887
final String expressionString, final boolean hollow, final int timeout) throws ExpressionException {

worldedit-core/src/main/java/com/sk89q/worldedit/regions/shape/WorldEditExpressionEnvironment.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ public class WorldEditExpressionEnvironment implements ExpressionEnvironment {
3333
private Vector3 current = Vector3.ZERO;
3434
private final Extent extent;
3535

36+
/**
37+
* @deprecated Use {@link EditSession#makeBiomeShape(Region, Transform, BiomeType, String, boolean, int)}.
38+
*/
3639
@Deprecated
3740
public WorldEditExpressionEnvironment(Extent extent, Vector3 unit, Vector3 zero) {
3841
this(extent, new ScaleAndTranslateTransform(zero, unit));

0 commit comments

Comments
 (0)