Skip to content

Comments

some basic packet/hologram classes#25

Open
tahmid-23 wants to merge 7 commits intostagingfrom
packet
Open

some basic packet/hologram classes#25
tahmid-23 wants to merge 7 commits intostagingfrom
packet

Conversation

@tahmid-23
Copy link
Contributor

No description provided.

@tahmid-23
Copy link
Contributor Author

@Steanky when are you reviewing the PR

import org.apache.commons.lang3.NotImplementedException;
import org.jetbrains.annotations.NotNull;

public class ArenaNMSBridge_v1_16_R3 implements ArenaNMSBridge {

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

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

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 {

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 {

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 {

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

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