mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:31:29 +01:00
#758: Item - add getters/setters for owner/thrower
By: Shane Bee <shanebolenback@me.com>
This commit is contained in:
parent
f265542e4f
commit
a3cf5aea1a
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user