<commit_before>package com.teamacronymcoders.contenttweaker.modules.vanilla.items;

import com.teamacronymcoders.contenttweaker.api.IRepresentation;
import com.teamacronymcoders.contenttweaker.modules.vanilla.functions.IItemStackSupplier;
import crafttweaker.api.item.IIngredient;
import crafttweaker.api.item.IItemStack;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import stanhebben.zenscript.annotations.ZenClass;

import java.util.Optional;

public class CreativeTabRepresentation implements IRepresentation<CreativeTabs>, ICreativeTab {
    private String unlocalizedName;
    private IItemStackSupplier supplyItemStack;
    private CreativeTabContent creativeTabContent;

    private boolean hasSearch = false;
    private String backGroundImage = "";
    private boolean noScrollBar = true;
    private boolean noTitle = false;

    public String getUnlocalizedName() {
        return unlocalizedName;
    }

    public void setUnlocalizedName(String unlocalizedName) {
        this.unlocalizedName = unlocalizedName;
    }

    public IItemStack getIconStack() {
        return getSupplyItemStack().getItemStack();
    }

    public ItemStack getInternalIconStack() {
        return Optional.ofNullable(getSupplyItemStack().getItemStack())
                        .map(IIngredient::getInternal)
                        .map(iItemStack -> (ItemStack) iItemStack)
                        .orElse(ItemStack.EMPTY);
    }

    @Override<commit_msg>CreativeTab now defaults to 'items.png'<commit_after>package com.teamacronymcoders.contenttweaker.modules.vanilla.items;

import com.teamacronymcoders.contenttweaker.api.IRepresentation;
import com.teamacronymcoders.contenttweaker.modules.vanilla.functions.IItemStackSupplier;
import crafttweaker.api.item.IIngredient;
import crafttweaker.api.item.IItemStack;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import stanhebben.zenscript.annotations.ZenClass;

import java.util.Optional;

public class CreativeTabRepresentation implements IRepresentation<CreativeTabs>, ICreativeTab {
    private String unlocalizedName;
    private IItemStackSupplier supplyItemStack;
    private CreativeTabContent creativeTabContent;

    private boolean hasSearch = false;
    private String backGroundImage = "items.png";
    private boolean noScrollBar = true;
    private boolean noTitle = false;

    public String getUnlocalizedName() {
        return unlocalizedName;
    }

    public void setUnlocalizedName(String unlocalizedName) {
        this.unlocalizedName = unlocalizedName;
    }

    public IItemStack getIconStack() {
        return getSupplyItemStack().getItemStack();
    }

    public ItemStack getInternalIconStack() {
        return Optional.ofNullable(getSupplyItemStack().getItemStack())
                        .map(IIngredient::getInternal)
                        .map(iItemStack -> (ItemStack) iItemStack)
                        .orElse(ItemStack.EMPTY);
    }

    @Override
{'fraction_non_alphanumeric': 0.0762346702021876, 'fraction_numerical': 0.0, 'mean_word_length': 3.8443017656500804, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3756822', 'n_tokens_mistral': 867, 'n_tokens_neox': 860, 'n_words': 154}