net.lenni0451.mcstructs_bedrock.text.components.TranslationBedrockComponent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of text Show documentation
Show all versions of text Show documentation
A minecraft bedrock data structure library with the goal of being compliant with the vanilla client
The newest version!
package net.lenni0451.mcstructs_bedrock.text.components;
import net.lenni0451.mcstructs_bedrock.text.ABedrockComponent;
import net.lenni0451.mcstructs_bedrock.text.utils.BedrockTranslator;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.function.Function;
public class TranslationBedrockComponent extends ABedrockComponent {
private static final Function PASSTHROUGH_TRANSLATOR = s -> s;
private final String key;
private final Object[] args;
private Function translator = PASSTHROUGH_TRANSLATOR;
public TranslationBedrockComponent(final String key, final List