mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-23 00:49:31 +00:00
30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: wangxyper <wangxyper@163.com>
|
|
Date: Wed, 18 Jan 2023 21:18:06 +0800
|
|
Subject: [PATCH] Hearse: Add NotNull annotation to EntityPositionCache
|
|
|
|
Original license: MIT
|
|
Original project: https://github.com/Era4FunMC/Hearse
|
|
|
|
diff --git a/src/main/java/co/earthme/hearse/util/EntityPositionCache.java b/src/main/java/co/earthme/hearse/util/EntityPositionCache.java
|
|
index b7ec86d5cb2bb8d62d1a54f5e7b394e992a2b870..6f34233901cf1943694224ab393dea5548cb8e5b 100644
|
|
--- a/src/main/java/co/earthme/hearse/util/EntityPositionCache.java
|
|
+++ b/src/main/java/co/earthme/hearse/util/EntityPositionCache.java
|
|
@@ -3,6 +3,7 @@ package co.earthme.hearse.util;
|
|
import net.minecraft.world.entity.Entity;
|
|
import net.minecraft.world.entity.LivingEntity;
|
|
import net.minecraft.world.phys.Vec3;
|
|
+import org.jetbrains.annotations.NotNull;
|
|
|
|
public class EntityPositionCache {
|
|
private final double x;
|
|
@@ -10,7 +11,7 @@ public class EntityPositionCache {
|
|
private final double z;
|
|
private final LivingEntity currentEntity;
|
|
|
|
- public EntityPositionCache(LivingEntity entity){
|
|
+ public EntityPositionCache(@NotNull LivingEntity entity){
|
|
this.x = entity.getX();
|
|
this.y = entity.getY();
|
|
this.z = entity.getZ();
|