9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-06 15:52:03 +00:00

修改配置文件区域位置

This commit is contained in:
Xiao-MoMi
2025-09-19 03:19:11 +08:00
parent 13bcf6333c
commit a32e50c4b8
2 changed files with 67 additions and 63 deletions

View File

@@ -219,24 +219,7 @@ image:
chat: true chat: true
command: true command: true
sign: true sign: true
# Allow <image:...> and <shift:...> tags in third-party plugins via packet manipulation
# ⚠️ Disable unused handlers to reduce async thread workload
intercept-packets:
system-chat: true
tab-list: true # Tab list header and footer
player-info: true # Player list in tab
set-score: true
actionbar: true
title: true
bossbar: true
container: true # GUI
team: true # Team prefix, suffix and display name
scoreboard: true
entity-name: false
armor-stand: true # Legacy Holograms
text-display: true # Modern Holograms
item: true
advancement: true
# Defines Unicode characters used for <shift:xxx> positioning # Defines Unicode characters used for <shift:xxx> positioning
# - Must match the font defined in resource packs # - Must match the font defined in resource packs
# - Do NOT modify unless you understand text rendering mechanics # - Do NOT modify unless you understand text rendering mechanics
@@ -287,6 +270,26 @@ image:
128: '\uf844' 128: '\uf844'
256: '\uf845' 256: '\uf845'
network:
# Allow <image> <shift> <global> tags in third-party plugins via packet manipulation
# ⚠️ Disable unused handlers to reduce async thread workload
intercept-packets:
system-chat: true
tab-list: true # Tab list header and footer
player-info: true # Player list in tab
set-score: true
actionbar: true
title: true
bossbar: true
container: true # GUI
team: true # Team prefix, suffix and display name
scoreboard: true
entity-name: false
armor-stand: true # Legacy Holograms
text-display: true # Modern Holograms
item: true
advancement: true
recipe: recipe:
# Master switch for custom recipes # Master switch for custom recipes
# NOTE: When enabled, plugin recipes will OVERRIDE vanilla recipes # NOTE: When enabled, plugin recipes will OVERRIDE vanilla recipes

View File

@@ -134,21 +134,21 @@ public class Config {
protected boolean image$illegal_characters_filter$anvil; protected boolean image$illegal_characters_filter$anvil;
protected boolean image$illegal_characters_filter$sign; protected boolean image$illegal_characters_filter$sign;
protected boolean image$illegal_characters_filter$book; protected boolean image$illegal_characters_filter$book;
protected boolean image$intercept_packets$system_chat; protected boolean network$intercept_packets$system_chat;
protected boolean image$intercept_packets$tab_list; protected boolean network$intercept_packets$tab_list;
protected boolean image$intercept_packets$actionbar; protected boolean network$intercept_packets$actionbar;
protected boolean image$intercept_packets$title; protected boolean network$intercept_packets$title;
protected boolean image$intercept_packets$bossbar; protected boolean network$intercept_packets$bossbar;
protected boolean image$intercept_packets$container; protected boolean network$intercept_packets$container;
protected boolean image$intercept_packets$team; protected boolean network$intercept_packets$team;
protected boolean image$intercept_packets$scoreboard; protected boolean network$intercept_packets$scoreboard;
protected boolean image$intercept_packets$entity_name; protected boolean network$intercept_packets$entity_name;
protected boolean image$intercept_packets$text_display; protected boolean network$intercept_packets$text_display;
protected boolean image$intercept_packets$armor_stand; protected boolean network$intercept_packets$armor_stand;
protected boolean image$intercept_packets$player_info; protected boolean network$intercept_packets$player_info;
protected boolean image$intercept_packets$set_score; protected boolean network$intercept_packets$set_score;
protected boolean image$intercept_packets$item; protected boolean network$intercept_packets$item;
protected boolean image$intercept_packets$advancement; protected boolean network$intercept_packets$advancement;
protected boolean item$client_bound_model; protected boolean item$client_bound_model;
protected boolean item$non_italic_tag; protected boolean item$non_italic_tag;
@@ -405,21 +405,22 @@ public class Config {
image$illegal_characters_filter$chat = config.getBoolean("image.illegal-characters-filter.chat", true); image$illegal_characters_filter$chat = config.getBoolean("image.illegal-characters-filter.chat", true);
image$illegal_characters_filter$command = config.getBoolean("image.illegal-characters-filter.command", true); image$illegal_characters_filter$command = config.getBoolean("image.illegal-characters-filter.command", true);
image$illegal_characters_filter$sign = config.getBoolean("image.illegal-characters-filter.sign", true); image$illegal_characters_filter$sign = config.getBoolean("image.illegal-characters-filter.sign", true);
image$intercept_packets$system_chat = config.getBoolean("image.intercept-packets.system-chat", true);
image$intercept_packets$tab_list = config.getBoolean("image.intercept-packets.tab-list", true); network$intercept_packets$system_chat = config.getBoolean("network.intercept-packets.system-chat", true);
image$intercept_packets$actionbar = config.getBoolean("image.intercept-packets.actionbar", true); network$intercept_packets$tab_list = config.getBoolean("network.intercept-packets.tab-list", true);
image$intercept_packets$title = config.getBoolean("image.intercept-packets.title", true); network$intercept_packets$actionbar = config.getBoolean("network.intercept-packets.actionbar", true);
image$intercept_packets$bossbar = config.getBoolean("image.intercept-packets.bossbar", true); network$intercept_packets$title = config.getBoolean("network.intercept-packets.title", true);
image$intercept_packets$container = config.getBoolean("image.intercept-packets.container", true); network$intercept_packets$bossbar = config.getBoolean("network.intercept-packets.bossbar", true);
image$intercept_packets$team = config.getBoolean("image.intercept-packets.team", true); network$intercept_packets$container = config.getBoolean("network.intercept-packets.container", true);
image$intercept_packets$scoreboard = config.getBoolean("image.intercept-packets.scoreboard", true); network$intercept_packets$team = config.getBoolean("network.intercept-packets.team", true);
image$intercept_packets$entity_name = config.getBoolean("image.intercept-packets.entity-name", false); network$intercept_packets$scoreboard = config.getBoolean("network.intercept-packets.scoreboard", true);
image$intercept_packets$text_display = config.getBoolean("image.intercept-packets.text-display", true); network$intercept_packets$entity_name = config.getBoolean("network.intercept-packets.entity-name", false);
image$intercept_packets$armor_stand = config.getBoolean("image.intercept-packets.armor-stand", true); network$intercept_packets$text_display = config.getBoolean("network.intercept-packets.text-display", true);
image$intercept_packets$player_info = config.getBoolean("image.intercept-packets.player-info", true); network$intercept_packets$armor_stand = config.getBoolean("network.intercept-packets.armor-stand", true);
image$intercept_packets$set_score = config.getBoolean("image.intercept-packets.set-score", true); network$intercept_packets$player_info = config.getBoolean("network.intercept-packets.player-info", true);
image$intercept_packets$item = config.getBoolean("image.intercept-packets.item", true); network$intercept_packets$set_score = config.getBoolean("network.intercept-packets.set-score", true);
image$intercept_packets$advancement = config.getBoolean("image.intercept-packets.advancement", true); network$intercept_packets$item = config.getBoolean("network.intercept-packets.item", true);
network$intercept_packets$advancement = config.getBoolean("network.intercept-packets.advancement", true);
// emoji // emoji
emoji$contexts$chat = config.getBoolean("emoji.contexts.chat", true); emoji$contexts$chat = config.getBoolean("emoji.contexts.chat", true);
@@ -729,63 +730,63 @@ public class Config {
} }
public static boolean interceptSystemChat() { public static boolean interceptSystemChat() {
return instance.image$intercept_packets$system_chat; return instance.network$intercept_packets$system_chat;
} }
public static boolean interceptTabList() { public static boolean interceptTabList() {
return instance.image$intercept_packets$tab_list; return instance.network$intercept_packets$tab_list;
} }
public static boolean interceptActionBar() { public static boolean interceptActionBar() {
return instance.image$intercept_packets$actionbar; return instance.network$intercept_packets$actionbar;
} }
public static boolean interceptTitle() { public static boolean interceptTitle() {
return instance.image$intercept_packets$title; return instance.network$intercept_packets$title;
} }
public static boolean interceptBossBar() { public static boolean interceptBossBar() {
return instance.image$intercept_packets$bossbar; return instance.network$intercept_packets$bossbar;
} }
public static boolean interceptContainer() { public static boolean interceptContainer() {
return instance.image$intercept_packets$container; return instance.network$intercept_packets$container;
} }
public static boolean interceptTeam() { public static boolean interceptTeam() {
return instance.image$intercept_packets$team; return instance.network$intercept_packets$team;
} }
public static boolean interceptEntityName() { public static boolean interceptEntityName() {
return instance.image$intercept_packets$entity_name; return instance.network$intercept_packets$entity_name;
} }
public static boolean interceptScoreboard() { public static boolean interceptScoreboard() {
return instance.image$intercept_packets$scoreboard; return instance.network$intercept_packets$scoreboard;
} }
public static boolean interceptTextDisplay() { public static boolean interceptTextDisplay() {
return instance.image$intercept_packets$text_display; return instance.network$intercept_packets$text_display;
} }
public static boolean interceptArmorStand() { public static boolean interceptArmorStand() {
return instance.image$intercept_packets$armor_stand; return instance.network$intercept_packets$armor_stand;
} }
public static boolean interceptPlayerInfo() { public static boolean interceptPlayerInfo() {
return instance.image$intercept_packets$player_info; return instance.network$intercept_packets$player_info;
} }
public static boolean interceptSetScore() { public static boolean interceptSetScore() {
return instance.image$intercept_packets$set_score; return instance.network$intercept_packets$set_score;
} }
public static boolean interceptItem() { public static boolean interceptItem() {
return instance.image$intercept_packets$item; return instance.network$intercept_packets$item;
} }
public static boolean interceptAdvancement() { public static boolean interceptAdvancement() {
return instance.image$intercept_packets$advancement; return instance.network$intercept_packets$advancement;
} }
public static boolean predictBreaking() { public static boolean predictBreaking() {