mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-12 18:31:41 +01:00
Remove deprecated copy methods
This commit is contained in:
parent
9a8b6e2a11
commit
481494d572
@ -665,15 +665,6 @@ public class ItemStack implements DataContainer, PublicCloneable<ItemStack>, Hov
|
|||||||
!canPlaceOn.isEmpty();
|
!canPlaceOn.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use {@link #clone()}
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
@NotNull
|
|
||||||
public synchronized ItemStack copy() {
|
|
||||||
return clone();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clones this item stack.
|
* Clones this item stack.
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -212,18 +212,6 @@ public class BlockPosition implements PublicCloneable<BlockPosition> {
|
|||||||
MathUtils.square(getZ() - blockPosition.getZ());
|
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
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public BlockPosition clone() {
|
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.
|
* 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
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public Vector clone() {
|
public Vector clone() {
|
||||||
|
Loading…
Reference in New Issue
Block a user