mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-19 23:19:17 +00:00
Hide tooltip for 1.20.5+
This commit is contained in:
@@ -523,16 +523,18 @@ public class BukkitConfigManager extends ConfigManager {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, 10_050, "nbt");
|
}, 10_050, "nbt");
|
||||||
this.registerItemParser(arg -> {
|
if (VersionHelper.isVersionNewerThan1_20_5()) {
|
||||||
Section section = (Section) arg;
|
this.registerItemParser(arg -> {
|
||||||
ArrayList<ItemEditor> editors = new ArrayList<>();
|
Section section = (Section) arg;
|
||||||
ItemStackUtils.sectionToComponentEditor(section, editors);
|
ArrayList<ItemEditor> editors = new ArrayList<>();
|
||||||
return (item, context) -> {
|
ItemStackUtils.sectionToComponentEditor(section, editors);
|
||||||
for (ItemEditor editor : editors) {
|
return (item, context) -> {
|
||||||
editor.apply(((AbstractItem<RtagItem, ItemStack>) item).getRTagItem(), context);
|
for (ItemEditor editor : editors) {
|
||||||
}
|
editor.apply(((AbstractItem<RtagItem, ItemStack>) item).getRTagItem(), context);
|
||||||
};
|
}
|
||||||
}, 10_075, "components");
|
};
|
||||||
|
}, 10_075, "components");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerBuiltInEffectModifierParser() {
|
private void registerBuiltInEffectModifierParser() {
|
||||||
|
|||||||
@@ -352,6 +352,8 @@ mechanics:
|
|||||||
material: BLACK_STAINED_GLASS_PANE
|
material: BLACK_STAINED_GLASS_PANE
|
||||||
display:
|
display:
|
||||||
name: ' '
|
name: ' '
|
||||||
|
components:
|
||||||
|
minecraft:hide_tooltip: true
|
||||||
# This section would take effect if you set "override-vanilla" to true
|
# This section would take effect if you set "override-vanilla" to true
|
||||||
# That also means vanilla mechanics for example lure enchantment
|
# That also means vanilla mechanics for example lure enchantment
|
||||||
# would no longer take effect, so you have to configure its effect in CustomFishing
|
# would no longer take effect, so you have to configure its effect in CustomFishing
|
||||||
|
|||||||
Reference in New Issue
Block a user