Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public short shortValue() {
return this.value;
}

@Override
public @NotNull Number numberValue() {
return this.value;
}

@Override
public boolean equals(final @Nullable Object other) {
if (this == other) return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public short shortValue() {
return (short) (ShadyPines.floor(this.value) & 0xffff);
}

@Override
public @NotNull Number numberValue() {
return this.value;
}

@Override
public boolean equals(final @Nullable Object other) {
if (this == other) return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public short shortValue() {
return (short) (ShadyPines.floor(this.value) & 0xffff);
}

@Override
public @NotNull Number numberValue() {
return this.value;
}

@Override
public boolean equals(final @Nullable Object other) {
if (this == other) return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public short shortValue() {
return (short) (this.value & 0xffff);
}

@Override
public @NotNull Number numberValue() {
return this.value;
}

@Override
public boolean equals(final @Nullable Object other) {
if (this == other) return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public short shortValue() {
return (short) (this.value & 0xffff);
}

@Override
public @NotNull Number numberValue() {
return this.value;
}

@Override
public boolean equals(final @Nullable Object other) {
if (this == other) return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,12 @@ public interface NumberBinaryTag extends BinaryTag {
* @since 4.0.0
*/
short shortValue();

/**
* Gets the value as a {@link Number}.
*
* @return the value as a {@link Number}
* @since 4.21.0
*/
@NotNull Number numberValue();
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public short shortValue() {
return this.value;
}

@Override
public @NotNull Number numberValue() {
return this.value;
}

@Override
public boolean equals(final @Nullable Object other) {
if (this == other) return true;
Expand Down