mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-26 10:11:32 +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;
|
package org.bukkit.craftbukkit.entity;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
import net.minecraft.server.Entity;
|
import net.minecraft.server.Entity;
|
||||||
import net.minecraft.server.EntityItem;
|
import net.minecraft.server.EntityItem;
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
@ -48,6 +49,26 @@ public class CraftItem extends CraftEntity implements Item {
|
|||||||
item.age = value;
|
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
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "CraftItem";
|
return "CraftItem";
|
||||||
|
Loading…
Reference in New Issue
Block a user