2011-03-19 22:39:51 +00:00
|
|
|
package com.earth2me.essentials;
|
|
|
|
|
2011-10-20 23:23:35 +00:00
|
|
|
import lombok.Delegate;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import org.bukkit.configuration.serialization.ConfigurationSerializable;
|
|
|
|
import org.bukkit.entity.Entity;
|
|
|
|
import org.bukkit.entity.HumanEntity;
|
|
|
|
import org.bukkit.entity.LivingEntity;
|
2011-06-01 10:40:12 +00:00
|
|
|
import org.bukkit.entity.Player;
|
2011-10-20 23:23:35 +00:00
|
|
|
import org.bukkit.permissions.Permissible;
|
|
|
|
import org.bukkit.permissions.ServerOperator;
|
2011-03-19 22:39:51 +00:00
|
|
|
|
|
|
|
|
2013-07-07 11:11:57 +00:00
|
|
|
public class PlayerExtension
|
2011-03-19 22:39:51 +00:00
|
|
|
{
|
2011-10-20 23:23:35 +00:00
|
|
|
@Delegate(types =
|
|
|
|
{
|
2011-11-22 02:02:08 +00:00
|
|
|
Player.class, Entity.class, CommandSender.class, ServerOperator.class,
|
2011-10-20 23:23:35 +00:00
|
|
|
HumanEntity.class, ConfigurationSerializable.class, LivingEntity.class,
|
|
|
|
Permissible.class
|
|
|
|
})
|
|
|
|
protected Player base;
|
2011-11-22 02:02:08 +00:00
|
|
|
|
|
|
|
public PlayerExtension(final Player base)
|
2011-03-19 22:39:51 +00:00
|
|
|
{
|
2011-10-20 23:23:35 +00:00
|
|
|
this.base = base;
|
2011-03-19 22:39:51 +00:00
|
|
|
}
|
2011-11-22 02:02:08 +00:00
|
|
|
|
2011-10-20 23:23:35 +00:00
|
|
|
public final Player getBase()
|
|
|
|
{
|
|
|
|
return base;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final Player setBase(final Player base)
|
|
|
|
{
|
|
|
|
return this.base = base;
|
|
|
|
}
|
2011-03-19 22:39:51 +00:00
|
|
|
}
|