Format FishingHookMeta + make owner not null

This commit is contained in:
KrystilizeNevaDies 2021-04-06 04:43:19 +10:00
parent b1cfa3d9b2
commit 7a6fb4d601

View File

@ -27,12 +27,13 @@ public class FishingHookMeta extends EntityMeta implements ObjectDataProvider {
int entityID = value == null ? 0 : value.getEntityId() + 1;
super.metadata.setIndex((byte) 7, Metadata.VarInt(entityID));
}
@Nullable
@NotNull
public Entity getOwnerEntity() {
return owner;
}
public void setOwnerEntity(@Nullable Entity value) {
public void setOwnerEntity(@NotNull Entity value) {
this.owner = value;
}