Use lombok for Team packet
This commit is contained in:
parent
508c2f7ac3
commit
22aa6f5faf
@ -6,7 +6,9 @@ import java.util.Map;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import net.md_5.bungee.api.chat.BaseComponent;
|
||||
import net.md_5.bungee.protocol.AbstractPacketHandler;
|
||||
import net.md_5.bungee.protocol.DefinedPacket;
|
||||
@ -146,6 +148,8 @@ public class Team extends DefinedPacket
|
||||
handler.handle( this );
|
||||
}
|
||||
|
||||
@Getter
|
||||
@RequiredArgsConstructor
|
||||
public enum NameTagVisibility
|
||||
{
|
||||
|
||||
@ -170,18 +174,10 @@ public class Team extends DefinedPacket
|
||||
|
||||
BY_NAME = builder.build();
|
||||
}
|
||||
|
||||
private NameTagVisibility(String name)
|
||||
{
|
||||
this.key = name;
|
||||
}
|
||||
|
||||
public String getKey()
|
||||
{
|
||||
return this.key;
|
||||
}
|
||||
}
|
||||
|
||||
@Getter
|
||||
@RequiredArgsConstructor
|
||||
public enum CollisionRule
|
||||
{
|
||||
|
||||
@ -206,15 +202,5 @@ public class Team extends DefinedPacket
|
||||
|
||||
BY_NAME = builder.build();
|
||||
}
|
||||
|
||||
private CollisionRule(String name)
|
||||
{
|
||||
this.key = name;
|
||||
}
|
||||
|
||||
public String getKey()
|
||||
{
|
||||
return this.key;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user