<commit_before>package test;

import info.u_team.u_team_core.tileentity.UTileEntityAsyncUpdate;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.items.*;

public class TileEntityAsyncTest extends UTileEntityAsyncUpdate {
	
	@Override
	public void updateAsync() {
		if (world.isRemote)
			return;
		System.out.println("hello me getting updated async");
		TileEntity tile = world.getTileEntity(pos.add(0, 1, 0));
		if (tile != null) {
			IItemHandler handler = tile.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, EnumFacing.DOWN);
			if (handler != null) {
				handler.insertItem(0, new ItemStack(Blocks.STONE), false);
			}
		}
	}
	
	@Override
	public void update() {
		// System.out.println("sync");
	}
	
	@Override
	public int getUpdateRate() {
		return 1000;<commit_msg>Only some testing with async ticking and world interaction<commit_after>package test;

import info.u_team.u_team_core.tileentity.UTileEntityAsyncUpdate;
import info.u_team.u_team_core.util.MathUtil;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.items.*;

public class TileEntityAsyncTest extends UTileEntityAsyncUpdate {
	
	private BlockPos loc;
	
	@Override
	public void updateAsync() {
		if (world.isRemote)
			return;
		System.out.println("hello me getting updated async");
		
		if (loc == null) {
			loc = pos.add(0, 3, 0);
		}
		
		world.setBlockState(loc, Blocks.STAINED_GLASS.getStateFromMeta(5));
		loc = loc.add(MathUtil.getRandomNumberInRange(-1, 1), MathUtil.getRandomNumberInRange(0, 1), MathUtil.getRandomNumberInRange(-1, 1));
		
		TileEntity tile = world.getTileEntity(pos.add(0, 1, 0));
		if (tile != null) {
			IItemHandler handler = tile.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, EnumFacing.DOWN);
			if (handler != null) {
				handler.insertItem(0, new ItemStack(Blocks.STONE), false);
			}
		}
	}
	
	@Override
	public void update() {
		// System.out.println("sync");
	}
	
	@Override
	public int getUpdateRate() {
		return 250;
{'fraction_non_alphanumeric': 0.11638853230637569, 'fraction_numerical': 0.01069747539580659, 'mean_word_length': 4.904040404040404, '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': '528', 'n_tokens_mistral': 840, 'n_tokens_neox': 768, 'n_words': 156}