Skip to content
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

Open
wants to merge 7 commits into
base: staging
Choose a base branch
from
Open

some basic packet/hologram classes #25

wants to merge 7 commits into from

Conversation

tahmid-23
Copy link
Contributor

No description provided.

@tahmid-23
Copy link
Contributor Author

@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 {
Copy link

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

Copy link

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<>();
Copy link

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

Copy link

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) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

message is unused

Copy link

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 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty else statement

Copy link

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 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aaaaaaaa

Copy link

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 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AAAAAAAA

Copy link

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<>();
Copy link

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

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants