Configurable entrance rift wthit stuff

This commit is contained in:
SD 2021-03-25 19:26:11 +05:30
parent 3d481dbeb9
commit 192ea1dcf1

View file

@ -15,12 +15,18 @@ import net.minecraft.text.MutableText;
import net.minecraft.text.Text;
import net.minecraft.text.TextColor;
import net.minecraft.text.TranslatableText;
import net.minecraft.util.Identifier;
public enum EntranceRiftProvider implements IComponentProvider {
INSTANCE;
private static final Identifier ID = new Identifier("dimdoors", "entrance_rift_provider");
@Override
public void appendBody(List<Text> tooltip, IDataAccessor accessor, IPluginConfig config) {
if (!config.get(ID, true)) {
return;
}
EntranceRiftBlockEntity blockEntity = ((EntranceRiftBlockEntity) accessor.getBlockEntity());
VirtualTarget destination = Objects.requireNonNull(blockEntity).getDestination();
if (destination != null) {