mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-09 01:47:54 +01:00
Format FishingHookMeta + make owner not null
This commit is contained in:
parent
b1cfa3d9b2
commit
7a6fb4d601
@ -27,12 +27,13 @@ public class FishingHookMeta extends EntityMeta implements ObjectDataProvider {
|
|||||||
int entityID = value == null ? 0 : value.getEntityId() + 1;
|
int entityID = value == null ? 0 : value.getEntityId() + 1;
|
||||||
super.metadata.setIndex((byte) 7, Metadata.VarInt(entityID));
|
super.metadata.setIndex((byte) 7, Metadata.VarInt(entityID));
|
||||||
}
|
}
|
||||||
@Nullable
|
|
||||||
|
@NotNull
|
||||||
public Entity getOwnerEntity() {
|
public Entity getOwnerEntity() {
|
||||||
return owner;
|
return owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOwnerEntity(@Nullable Entity value) {
|
public void setOwnerEntity(@NotNull Entity value) {
|
||||||
this.owner = value;
|
this.owner = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user