Class SupremeMobTechResolver
java.lang.Object
com.github.relativobr.supreme.util.SupremeMobTechResolver
- All Implemented Interfaces:
io.github.thebusybiscuit.slimefun5.core.services.localization.ItemTextResolver
public final class SupremeMobTechResolver
extends Object
implements io.github.thebusybiscuit.slimefun5.core.services.localization.ItemTextResolver
Resolves the runtime-generated mob-tech tier items (
SUPREME_<type>_<creature>_<tier>) for
Slimefun's per-viewer packet translation. These can't live in a static items.yml: each tier
has its own colour and Roman-numeral suffix (buildNameTier) plus tier/type-dependent lore.
The display is derived entirely from the id, so this is an id-keyed resolver (item unused).
Rather than duplicate the composition, it re-runs ItemUtil.buildItemFromMobTechDTO(com.github.relativobr.supreme.machine.tech.MobTechGeneric, java.lang.Integer) - the same
builder that produced the item at registration - and reads back the exact name+lore. English baseline
for now; localization of the tier/type strings is a later content pass.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SupremeMobTechResolver
public SupremeMobTechResolver()
-
-
Method Details
-
resolve
@Nullable public io.github.thebusybiscuit.slimefun5.core.services.localization.ItemTranslationService.RenderedDisplay resolve(@Nullable org.bukkit.inventory.ItemStack item, String itemId, @Nullable String languageId) - Specified by:
resolvein interfaceio.github.thebusybiscuit.slimefun5.core.services.localization.ItemTextResolver
-