#758: Item - add getters/setters for owner/thrower

By: Shane Bee <shanebolenback@me.com>
This commit is contained in:
CraftBukkit/Spigot 2020-10-14 19:56:14 +11:00
parent f265542e4f
commit a3cf5aea1a

View file

@ -1,5 +1,6 @@
package org.bukkit.craftbukkit.entity;
import java.util.UUID;
import net.minecraft.server.Entity;
import net.minecraft.server.EntityItem;
import org.bukkit.craftbukkit.CraftServer;
@ -48,6 +49,26 @@ public class CraftItem extends CraftEntity implements Item {
item.age = value;
}
@Override
public void setOwner(UUID uuid) {
item.setOwner(uuid);
}
@Override
public UUID getOwner() {
return item.getOwner();
}
@Override
public void setThrower(UUID uuid) {
item.setThrower(uuid);
}
@Override
public UUID getThrower() {
return item.getThrower();
}
@Override
public String toString() {
return "CraftItem";