<commit_before>package com.laytonsmith.core.events;

import com.laytonsmith.abstraction.enums.MCVersion;
import com.laytonsmith.core.Static;

/**
 * This class is an enum class that represents all the types of events that CH is aware of. The
 * reason an enum is required, is because events can more easily be sorted and found this way.
 *
 */
public enum Driver {

	/**
	 * Block events
	 */
	PISTON_EXTEND,
	PISTON_RETRACT,
	BLOCK_BREAK,
	BLOCK_BURN,
	BLOCK_DISPENSE,
	BLOCK_GROW,
	BLOCK_IGNITE,
	BLOCK_PLACE,
	BLOCK_FROM_TO,
	SIGN_CHANGED,
	REDSTONE_CHANGED,
	NOTE_PLAY,

	/**
	 * Entity events
	 */
	CREATURE_SPAWN,
	ENTITY_CHANGE_BLOCK,
	ENTITY_DAMAGE,
	ENTITY_DAMAGE_PLAYER,
	ENTITY_DEATH,
	ENTITY_ENTER_PORTAL,
	ENTITY_EXPLODE,
	ENTITY_INTERACT,
	HANGING_BREAK,
	ITEM_DROP,
	ITEM_PICKUP,
	ITEM_DESPAWN,
	ITEM_SPAWN,
	POTION_SPLASH,
	PROJECTILE_HIT,
	PROJECTILE_LAUNCH,
	TARGET_ENTITY,
	ENTITY_TOGGLE_GLIDE(MCVersion.MC1_9),
	FIREWORK_EXPLODE,

	/**
	 * Inventory events
	 */
	INVENTORY_CLICK,
	INVENTORY_CLOSE,
	INVENTORY_DRAG,
	INVENTORY_OPEN,
	ITEM_ENCHANT,
	ITEM_HELD,
	ITEM_SWAP(MCVersion.MC1_9),
	ITEM_PRE_CRAFT,
	ITEM_PRE_ENCHANT,

	/**
	 * Player events
	 */
	BOOK_EDITED,
	EXP_CHANGE,
	GAMEMODE_CHANGE,
	PLAYER_BED_EVENT,
	PLAYER_CHAT,
	PLAYER_COMMAND,
	PLAYER_CONSUME,
	PLAYER_DEATH,
	PLAYER_FISH,
	PLAYER_INTERACT,<commit_msg>Do not attempt to register FireworkExplodeEvent prior to 1.8.8<commit_after>package com.laytonsmith.core.events;

import com.laytonsmith.abstraction.enums.MCVersion;
import com.laytonsmith.core.Static;

/**
 * This class is an enum class that represents all the types of events that CH is aware of. The
 * reason an enum is required, is because events can more easily be sorted and found this way.
 *
 */
public enum Driver {

	/**
	 * Block events
	 */
	PISTON_EXTEND,
	PISTON_RETRACT,
	BLOCK_BREAK,
	BLOCK_BURN,
	BLOCK_DISPENSE,
	BLOCK_GROW,
	BLOCK_IGNITE,
	BLOCK_PLACE,
	BLOCK_FROM_TO,
	SIGN_CHANGED,
	REDSTONE_CHANGED,
	NOTE_PLAY,

	/**
	 * Entity events
	 */
	CREATURE_SPAWN,
	ENTITY_CHANGE_BLOCK,
	ENTITY_DAMAGE,
	ENTITY_DAMAGE_PLAYER,
	ENTITY_DEATH,
	ENTITY_ENTER_PORTAL,
	ENTITY_EXPLODE,
	ENTITY_INTERACT,
	HANGING_BREAK,
	ITEM_DROP,
	ITEM_PICKUP,
	ITEM_DESPAWN,
	ITEM_SPAWN,
	POTION_SPLASH,
	PROJECTILE_HIT,
	PROJECTILE_LAUNCH,
	TARGET_ENTITY,
	ENTITY_TOGGLE_GLIDE(MCVersion.MC1_9),
	FIREWORK_EXPLODE(MCVersion.MC1_8_X),

	/**
	 * Inventory events
	 */
	INVENTORY_CLICK,
	INVENTORY_CLOSE,
	INVENTORY_DRAG,
	INVENTORY_OPEN,
	ITEM_ENCHANT,
	ITEM_HELD,
	ITEM_SWAP(MCVersion.MC1_9),
	ITEM_PRE_CRAFT,
	ITEM_PRE_ENCHANT,

	/**
	 * Player events
	 */
	BOOK_EDITED,
	EXP_CHANGE,
	GAMEMODE_CHANGE,
	PLAYER_BED_EVENT,
	PLAYER_CHAT,
	PLAYER_COMMAND,
	PLAYER_CONSUME,
	PLAYER_DEATH,
	PLAYER_FISH,
	PLAYER_INTERACT,
{'fraction_non_alphanumeric': 0.08024691358024691, 'fraction_numerical': 0.004720406681190995, 'mean_word_length': 4.989130434782608, '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': '251323', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1198, 'n_words': 213}