Skip to content

Commit

Permalink
Lombok I guess
Browse files Browse the repository at this point in the history
  • Loading branch information
SamB440 committed Aug 10, 2024
1 parent a469cdd commit 018197c
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/main/java/ac/grim/grimac/utils/team/EntityTeam.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import ac.grim.grimac.player.GrimPlayer;
import com.github.retrooper.packetevents.protocol.player.UserProfile;
import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerTeams;
import lombok.Getter;

import java.util.HashSet;
import java.util.Objects;
Expand All @@ -11,27 +12,15 @@
public final class EntityTeam {

private final GrimPlayer player;
private final String name;
private final Set<String> entries = new HashSet<>();
private WrapperPlayServerTeams.CollisionRule collisionRule;
@Getter private final String name;
@Getter private final Set<String> entries = new HashSet<>();
@Getter private WrapperPlayServerTeams.CollisionRule collisionRule;

public EntityTeam(GrimPlayer player, String name) {
this.player = player;
this.name = name;
}

public String getName() {
return name;
}

public Set<String> getEntries() {
return entries;
}

public WrapperPlayServerTeams.CollisionRule getCollisionRule() {
return collisionRule;
}

public void update(WrapperPlayServerTeams teams) {
teams.getTeamInfo().ifPresent(info -> this.collisionRule = info.getCollisionRule());

Expand Down

0 comments on commit 018197c

Please sign in to comment.