<commit_before>package info.u_team.u_team_core.block;

import info.u_team.u_team_core.api.registry.IUBlock;
import net.minecraft.block.Block;
import net.minecraft.item.*;

public class UBlock extends Block implements IUBlock {
	
	protected final String name;
	
	protected final ItemBlock itemblock;
	
	public UBlock(String name, Properties properties) {
		this(name, null, properties);
	}
	
	public UBlock(String name, ItemGroup group, Properties properties) {
		super(properties);
		this.name = name;
		itemblock = createItemBlock(group);
	}
	
	protected ItemBlock createItemBlock(ItemGroup group) {
		return new ItemBlock(this, group == null ? new Item.Properties() : new Item.Properties().group(group));
	}
	
	@Override
	public String getEntryName() {
		return name;
	}<commit_msg>Subclasses of Ublock can now decide if they wanna create an itemblock. (itemblock field is now not final anymore)<commit_after>package info.u_team.u_team_core.block;

import info.u_team.u_team_core.api.registry.IUBlock;
import net.minecraft.block.Block;
import net.minecraft.item.*;

public class UBlock extends Block implements IUBlock {
	
	protected final String name;
	
	protected ItemBlock itemblock;
	
	public UBlock(String name, Properties properties) {
		this(name, properties, true);
	}
	
	public UBlock(String name, Properties properties, boolean shouldCreateItemBlock) {
		this(name, null, properties, shouldCreateItemBlock);
	}
	
	public UBlock(String name, ItemGroup group, Properties properties) {
		this(name, group, properties, true);
	}
	
	public UBlock(String name, ItemGroup group, Properties properties, boolean shouldCreateItemBlock) {
		super(properties);
		this.name = name;
		if (shouldCreateItemBlock) {
			itemblock = createItemBlock(group);
		}
	}
	
	protected ItemBlock createItemBlock(ItemGroup group) {
		return new ItemBlock(this, group == null ? new Item.Properties() : new Item.Properties().group(group));
	}
	
	@Override
	public String getEntryName() {
		return name;
	}
{'fraction_non_alphanumeric': 0.09461499748364369, 'fraction_numerical': 0.0, 'mean_word_length': 5.060975609756097, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '976713', 'n_tokens_mistral': 618, 'n_tokens_neox': 568, 'n_words': 168}