mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 01:17:47 +01:00
hollow-cube/entity-get-instance-unknown-nullability
Signed-off-by: mworzala <mattheworzala@gmail.com>
Entity#getInstance to @UnknownNullability
(cherry picked from commit 35fc7a1127b2189515991bfdf0f7fd0dc92af09e)
(cherry picked from commit bc73a6cbf8
)
This commit is contained in:
parent
e2fdce0880
commit
0ccb26c7be
8
CHANGELOG.md
Normal file
8
CHANGELOG.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
## Changelog
|
||||||
|
Not a "proper" versioned changelog, just a list of the changes from Minestom master.
|
||||||
|
Some of these are pending, some deserve PRs, others are just minor tweaks
|
||||||
|
|
||||||
|
* Delete extensions (`mworzala/Minestom` @ `no_more_extensions`)
|
||||||
|
* Block face in digging events (`mworzala/Minestom` @ `block_break_face`)
|
||||||
|
* Add cursor position to block place and neighbor updates (`Moulberry/Minestom` @ `block_placement_rewrite_2`)
|
||||||
|
* Change `Entity#getInstance` to @UnknownNullability
|
@ -64,6 +64,7 @@ import net.minestom.server.utils.validate.Check;
|
|||||||
import org.jetbrains.annotations.ApiStatus;
|
import org.jetbrains.annotations.ApiStatus;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
import org.jetbrains.annotations.UnknownNullability;
|
||||||
import space.vectrix.flare.fastutil.Int2ObjectSyncMap;
|
import space.vectrix.flare.fastutil.Int2ObjectSyncMap;
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
@ -838,7 +839,7 @@ public class Entity implements Viewable, Tickable, Schedulable, Snapshotable, Ev
|
|||||||
*
|
*
|
||||||
* @return the entity instance, can be null if the entity doesn't have an instance yet
|
* @return the entity instance, can be null if the entity doesn't have an instance yet
|
||||||
*/
|
*/
|
||||||
public @Nullable Instance getInstance() {
|
public @UnknownNullability Instance getInstance() {
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user