-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some basic packet/hologram classes #25
base: staging
Are you sure you want to change the base?
Conversation
…s of hologram lines
@Steanky when are you reviewing the PR |
import io.github.zap.arenaapi.nms.v1_16_R3.player.PlayerBridge_v1_16_R3; | ||
import io.github.zap.arenaapi.nms.v1_16_R3.world.WorldBridge_v1_16_R3; | ||
import org.apache.commons.lang3.NotImplementedException; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class ArenaNMSBridge_v1_16_R3 implements ArenaNMSBridge { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, disgusting NMS class naming schemes, how i have not missed needing to use you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finalmente
|
||
private final PacketBridge packetBridge; | ||
|
||
private final List<HologramLine<?>> hologramLines = new ArrayList<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default size array list initialized as part of the field instead of in the constructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ein jahr
hologramLines.add(textLine); | ||
} | ||
|
||
private @NotNull PacketLine<Component> createTextLine(@NotNull Location location, @NotNull Component message) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
message is unused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one year
for (Player player : rootLocation.getWorld().getPlayers()) { | ||
textLine.setVisualForPlayer(plugin, player, message); | ||
} | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty else statement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
un ano
HologramLine<?> hologramLine = hologramLines.get(index); | ||
if (hologramLine instanceof TextLine textLine) { | ||
textLine.setVisual(message); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aaaaaaaa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
endlich
HologramLine<?> hologramLine = hologramLines.get(index); | ||
if (hologramLine instanceof TextLine textLine) { | ||
textLine.setVisualForPlayer(plugin, player, message); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AAAAAAAA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finalmente
*/ | ||
public abstract class HologramLine<V> { | ||
|
||
private final Map<UUID, V> visualMap = new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default length HASHMAP initialized in a FIELD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finally
No description provided.