Merge pull request #209 from Minestom/remove_copy_methods

Remove deprecated copy methods
This commit is contained in:
TheMode 2021-04-01 17:35:51 +02:00 committed by GitHub
commit a3b6b09015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() {