Skip to content

Commit fb31dda

Browse files
committed
chore(code): add usage of the package-info file to the explosion package
1 parent 8eea888 commit fb31dda

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

common/src/main/java/net/theevilreaper/tamias/common/explosion/ExplosionCreator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import net.minestom.server.instance.ExplosionSupplier;
77
import net.minestom.server.instance.Instance;
88
import org.jetbrains.annotations.Contract;
9-
import org.jetbrains.annotations.NotNull;
9+
import org.jetbrains.annotations.Nullable;
1010

1111
import java.util.Collections;
1212
import java.util.List;
@@ -15,10 +15,10 @@ public final class ExplosionCreator implements ExplosionSupplier {
1515

1616
@Contract(value = "_, _, _, _, _ -> new", pure = true)
1717
@Override
18-
public Explosion createExplosion(float centerX, float centerY, float centerZ, float strength, CompoundBinaryTag additionalData) {
18+
public Explosion createExplosion(float centerX, float centerY, float centerZ, float strength, @Nullable CompoundBinaryTag additionalData) {
1919
return new Explosion(centerX, centerY, centerZ, strength) {
2020
@Override
21-
protected List<Point> prepare(@NotNull Instance instance) {
21+
protected List<Point> prepare(Instance instance) {
2222
return Collections.emptyList();
2323
}
2424
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@NotNullByDefault
2+
package net.theevilreaper.tamias.common.explosion;
3+
4+
import org.jetbrains.annotations.NotNullByDefault;

0 commit comments

Comments
 (0)