Remove string methods from HoverEvent. TextComponents will become strings if formatting isn't used

This commit is contained in:
Thinkofdeath 2013-12-07 15:10:08 +00:00
parent 0040955204
commit c17fa03ccd

View File

@ -1,40 +1,18 @@
package net.md_5.bungee.api.chat; package net.md_5.bungee.api.chat;
import lombok.AllArgsConstructor;
import lombok.Getter; import lombok.Getter;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.Setter; import lombok.Setter;
@NoArgsConstructor @NoArgsConstructor
@Getter
@Setter
@AllArgsConstructor
public class HoverEvent public class HoverEvent
{ {
@Getter
@Setter
private Action action; private Action action;
private BaseComponent value;
@Getter
private Object value;
public HoverEvent(Action action, String value)
{
setAction( action );
setValue( value );
}
public HoverEvent(Action action, BaseComponent value)
{
setAction( action );
setValue( value );
}
public void setValue(String value)
{
this.value = value;
}
public void setValue(BaseComponent value)
{
this.value = value;
}
public enum Action public enum Action
{ {