Don't sync data over network

This commit is contained in:
Draycia committed 2021-05-07 04:02:53 -07:00
1 parent d7b3b01c2b
commit 4131f811b7
14 files changed
+55 -298

No files matched your search

@@ -25,11 +25,11 @@ public interface ChatChannel extends Audience {
@NonNull TextColor channelColor(@NonNull CarbonUser user);
@NonNull
Map<CarbonUser, Component> parseMessage(@NonNull PlayerUser user, @NonNull String message, boolean fromRemote);
Map<CarbonUser, Component> parseMessage(@NonNull PlayerUser user, @NonNull String message);
@NonNull
Map<CarbonUser, Component> parseMessage(@NonNull PlayerUser user, @NonNull Collection<@NonNull PlayerUser> recipients,
@NonNull String message, boolean fromRemote);
@NonNull String message);
boolean canPlayerUse(@NonNull PlayerUser user);
@@ -106,12 +106,12 @@ public class EmptyTextChannel implements TextChannel {
}
@Override
public @NonNull Map<CarbonUser, Component> parseMessage(final @NonNull PlayerUser user, final @NonNull String message, final boolean fromRemote) {
public @NonNull Map<CarbonUser, Component> parseMessage(final @NonNull PlayerUser user, final @NonNull String message) {
return Collections.emptyMap();
}
@Override
public @NonNull Map<CarbonUser, Component> parseMessage(final @NonNull PlayerUser user, final @NonNull Collection<@NonNull PlayerUser> recipients, final @NonNull String message, final boolean fromRemote) {
public @NonNull Map<CarbonUser, Component> parseMessage(final @NonNull PlayerUser user, final @NonNull Collection<@NonNull PlayerUser> recipients, final @NonNull String message) {
return Collections.emptyMap();
}
@@ -19,11 +19,7 @@ public interface PlayerUser extends CarbonUser {
@NonNull String nickname();
default void nickname(final @Nullable String nickname) {
this.nickname(nickname, false);
}
void nickname(@Nullable String nickname, boolean fromRemote);
void nickname(@Nullable String nickname);
@NonNull String displayName();
@@ -33,7 +29,7 @@ public interface PlayerUser extends CarbonUser {
@Nullable TextColor customChatColor();
void customChatColor(@Nullable TextColor customChatColor, boolean fromRemote);
void customChatColor(@Nullable TextColor customChatColor);
@NonNull String parsePlaceholders(@NonNull String input);
@@ -43,70 +39,38 @@ public interface PlayerUser extends CarbonUser {
boolean spyingWhispers();
default void spyingWhispers(final boolean spyingWhispers) {
this.spyingWhispers(spyingWhispers, false);
}
void spyingWhispers(boolean spyingWhispers, boolean fromRemote);
void spyingWhispers(boolean spyingWhispers);
boolean muted();
default void muted(final boolean muted) {
this.muted(muted, false);
}
void muted(boolean muted, boolean fromRemote);
void muted(boolean muted);
boolean shadowMuted();
default void shadowMuted(final boolean shadowMuted) {
this.shadowMuted(shadowMuted, false);
}
void shadowMuted(boolean shadowMuted, boolean fromRemote);
void shadowMuted(boolean shadowMuted);
@Nullable UUID replyTarget();
default void replyTarget(final @Nullable UUID target) {
this.replyTarget(target, false);
}
default void replyTarget(final @Nullable PlayerUser user) {
if (user == null) {
this.replyTarget((UUID) null, false);
this.replyTarget((UUID) null);
} else {
this.replyTarget(user.uuid(), false);
this.replyTarget(user.uuid());
}
}
void replyTarget(@Nullable UUID target, boolean fromRemote);
default void replyTarget(final @Nullable PlayerUser user, final boolean fromRemote) {
if (user == null) {
this.replyTarget((UUID) null, fromRemote);
} else {
this.replyTarget(user.uuid(), fromRemote);
}
}
void replyTarget(@Nullable UUID target);
boolean ignoringUser(@NonNull UUID uuid);
void ignoringUser(@NonNull UUID uuid, boolean ignoring, boolean fromRemote);
default void ignoringUser(final @NonNull UUID uuid, final boolean ignoring) {
this.ignoringUser(uuid, ignoring, false);
}
void ignoringUser(@NonNull UUID uuid, boolean ignoring);
default boolean ignoringUser(final @NonNull PlayerUser user) {
return this.ignoringUser(user.uuid());
}
default void ignoringUser(final @NonNull PlayerUser user, final boolean ignoring, final boolean fromRemote) {
this.ignoringUser(user.uuid(), ignoring, fromRemote);
}
default void ignoringUser(final @NonNull PlayerUser user, final boolean ignoring) {
this.ignoringUser(user.uuid(), ignoring, false);
default void ignoringUser(final @NonNull PlayerUser user, boolean ignoring) {
this.ignoringUser(user.uuid(), ignoring);
}
@NonNull Iterable<CarbonUser> ignoredChatUsers();
@@ -125,11 +89,7 @@ public interface PlayerUser extends CarbonUser {
@Nullable ChatChannel selectedChannel();
default void selectedChannel(final @NonNull ChatChannel channel) {
this.selectedChannel(channel, false);
}
void selectedChannel(@NonNull ChatChannel channel, boolean fromRemote);
void selectedChannel(@NonNull ChatChannel channel);
void clearSelectedChannel();
@@ -7,27 +7,15 @@ public interface UserChannelSettings {
boolean spying();
default void spying(final boolean spying) {
this.spying(spying, false);
}
void spying(boolean spying, boolean fromRemote);
void spying(boolean spying);
boolean ignored();
void ignoring(boolean ignored, boolean fromRemote);
default void ignoring(final boolean ignored) {
this.ignoring(ignored, false);
}
void ignoring(boolean ignored);
@Nullable
TextColor color();
default void color(final @Nullable TextColor color) {
this.color(color, false);
}
void color(@Nullable TextColor color, boolean fromRemote);
void color(@Nullable TextColor color);
}