mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-27 02:21:38 +01:00
Merge pull request #209 from Minestom/remove_copy_methods
Remove deprecated copy methods
This commit is contained in:
commit
a3b6b09015
@ -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>
|
||||
|
@ -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() {
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user