<commit_before>package com.hea3ven.buildingbricks.core;

import net.minecraft.client.Minecraft;
import net.minecraft.item.ItemStack;

import net.minecraftforge.client.event.MouseEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

import com.hea3ven.buildingbricks.ModBuildingBricks;
import com.hea3ven.buildingbricks.core.network.TrowelRotateBlockTypeMessage;

public class KeyInputEventHandler {

	@SubscribeEvent
	public void onKeyInput(MouseEvent e) {
		if (e.dwheel != 0 && Minecraft.getMinecraft().gameSettings.keyBindSneak.isKeyDown()) {
			ItemStack stack = Minecraft.getMinecraft().thePlayer.getCurrentEquippedItem();
			if (stack != null && stack.getItem() == ModBuildingBricks.trowel) {
				TrowelRotateBlockTypeMessage.send(e.dwheel > 0);
				e.setCanceled(true);
			}<commit_msg>Revese the trowel scroll direction<commit_after>package com.hea3ven.buildingbricks.core;

import net.minecraft.client.Minecraft;
import net.minecraft.item.ItemStack;

import net.minecraftforge.client.event.MouseEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

import com.hea3ven.buildingbricks.ModBuildingBricks;
import com.hea3ven.buildingbricks.core.network.TrowelRotateBlockTypeMessage;

public class KeyInputEventHandler {

	@SubscribeEvent
	public void onKeyInput(MouseEvent e) {
		if (e.dwheel != 0 && Minecraft.getMinecraft().gameSettings.keyBindSneak.isKeyDown()) {
			ItemStack stack = Minecraft.getMinecraft().thePlayer.getCurrentEquippedItem();
			if (stack != null && stack.getItem() == ModBuildingBricks.trowel) {
				TrowelRotateBlockTypeMessage.send(e.dwheel < 0);
				e.setCanceled(true);
			}
{'fraction_non_alphanumeric': 0.1092896174863388, 'fraction_numerical': 0.006071645415907711, 'mean_word_length': 6.134199134199134, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5013700', 'n_tokens_mistral': 578, 'n_tokens_neox': 538, 'n_words': 78}