package net.mcreator.azertymod.procedures;

import net.minecraft.world.World;
import net.minecraft.util.text.StringTextComponent;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.Entity;

import net.mcreator.azertymod.AzertymodElements;

@AzertymodElements.ModElement.Tag
public class InfosAzertyumblockProcedure extends AzertymodElements.ModElement {
	public InfosAzertyumblockProcedure(AzertymodElements instance) {
		super(instance, 29);
	}

	public static void executeProcedure(java.util.HashMap<String, Object> dependencies) {
		if (dependencies.get("entity") == null) {
			System.err.println("Failed to load dependency entity for procedure InfosAzertyumblock!");
			return;
		}
		if (dependencies.get("world") == null) {
			System.err.println("Failed to load dependency world for procedure InfosAzertyumblock!");
			return;
		}
		Entity entity = (Entity) dependencies.get("entity");
		World world = (World) dependencies.get("world");
		if (entity instanceof PlayerEntity && !world.isRemote) {
			((PlayerEntity) entity).sendStatusMessage(new StringTextComponent(
					"ce bloc, quand shift+clic droit ou activ\u00E9 par la redstone, permet de: - enlever la pluie, -mettre le jour sans changer le point de spawn"),
					(false));
		}
	}
}
