Skip to content

Commit 42269e2

Browse files
committed
Cleanup warnings
1 parent d4a1105 commit 42269e2

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/main/java/org/spongepowered/api/entity/display/DisplayEntity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public interface DisplayEntity extends Entity {
4141
*
4242
* @return the transform
4343
*/
44+
@Override
4445
default Transform transform() {
4546
return this.require(Keys.TRANSFORM);
4647
}

src/main/java/org/spongepowered/api/event/cause/entity/damage/DamageType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public interface DamageType extends DefaultedRegistryValue, Nameable, Taggable<D
6060
* @param tag The tag to check.
6161
* @return true if this damage type matches the damage type tag.
6262
*/
63+
@Override
6364
boolean is(Tag<DamageType> tag);
6465

6566
/**

src/main/java/org/spongepowered/api/registry/RegistryTypes.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,6 @@ public final class RegistryTypes {
506506

507507
// @formatter:on
508508

509-
private static <V> RegistryType<V> minecraftKey(final String key) {
510-
return RegistryType.of(RegistryRoots.MINECRAFT, ResourceKey.minecraft(Objects.requireNonNull(key, "key")));
511-
}
512-
513509
private static <V> DefaultedRegistryType<V> minecraftKeyInGame(final String key) {
514510
return RegistryType.of(RegistryRoots.MINECRAFT, ResourceKey.minecraft(Objects.requireNonNull(key, "key"))).asDefaultedType(Sponge::game);
515511
}

0 commit comments

Comments
 (0)