mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 18:17:38 +01:00
Remove string methods from HoverEvent. TextComponents will become strings if formatting isn't used
This commit is contained in:
parent
0040955204
commit
c17fa03ccd
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user