Remove deprecated copy methods

This commit is contained in:
Matt Worzala 2021-04-01 11:32:09 -04:00
parent 9a8b6e2a11
commit 481494d572
No known key found for this signature in database
GPG Key ID: 439DBBE092854841
4 changed files with 0 additions and 38 deletions

View File

@ -665,15 +665,6 @@ public class ItemStack implements DataContainer, PublicCloneable<ItemStack>, Hov
!canPlaceOn.isEmpty();
}
/**
* @deprecated use {@link #clone()}
*/
@Deprecated
@NotNull
public synchronized ItemStack copy() {
return clone();
}
/**
* Clones this item stack.
* <p>

View File

@ -212,18 +212,6 @@ public class BlockPosition implements PublicCloneable<BlockPosition> {
MathUtils.square(getZ() - blockPosition.getZ());
}
/**
* Copies this block position.
*
* @return the cloned block position
* @deprecated use {@link #clone()}
*/
@Deprecated
@NotNull
public BlockPosition copy() {
return clone();
}
@NotNull
@Override
public BlockPosition clone() {

View File

@ -212,14 +212,6 @@ public class Position implements PublicCloneable<Position> {
}
}
/**
* @deprecated Please use {@link #clone()}
*/
@Deprecated
public Position copy() {
return clone();
}
/**
* Gets if the two objects are position and have the same values.
*

View File

@ -476,15 +476,6 @@ public class Vector implements PublicCloneable<Vector> {
'}';
}
/**
* @deprecated use {@link #clone()}
*/
@Deprecated
@NotNull
public Vector copy() {
return clone();
}
@NotNull
@Override
public Vector clone() {