1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Inline the Nonnull annotations

This commit is contained in:
JustAHuman-xD 2023-06-23 17:30:24 -05:00
parent 060b59dd0f
commit 90219fd92a

View File

@ -28,8 +28,7 @@ public class ArmorStandUtils {
*
* @return The spawned {@link ArmorStand}
*/
@Nonnull
public static ArmorStand spawnArmorStand(@Nonnull Location location, @Nonnull String customName) {
public static @Nonnull ArmorStand spawnArmorStand(@Nonnull Location location, @Nonnull String customName) {
ArmorStand armorStand = spawnArmorStand(location);
armorStand.setCustomName(customName);
armorStand.setCustomNameVisible(true);
@ -44,8 +43,7 @@ public class ArmorStandUtils {
*
* @return The spawned {@link ArmorStand}
*/
@Nonnull
public static ArmorStand spawnArmorStand(@Nonnull Location location) {
public static @Nonnull ArmorStand spawnArmorStand(@Nonnull Location location) {
return location.getWorld().spawn(location, ArmorStand.class, armorStand -> {
armorStand.setVisible(false);
armorStand.setSilent(true);