All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.magistuarmory.item.armor.JoustingItem Maven / Gradle / Ivy

There is a newer version: 8.10
Show newest version
package com.magistuarmory.item.armor;

import me.shedaniel.cloth.clothconfig.shadowed.blue.endless.jankson.annotation.Nullable;
import net.minecraft.class_124;
import net.minecraft.class_1293;
import net.minecraft.class_1294;
import net.minecraft.class_1297;
import net.minecraft.class_1309;
import net.minecraft.class_1741;
import net.minecraft.class_1799;
import net.minecraft.class_1836;
import net.minecraft.class_1937;
import net.minecraft.class_2561;
import java.util.List;

public class JoustingItem extends MedievalArmorItem implements ISurcoat
{
	public JoustingItem(class_1741 material, class_8051 type, class_1793 properties)
	{
		super(material, type, properties);
	}
	
	@Override
	public void method_7888(class_1799 stack, class_1937 level, class_1297 entity, int i, boolean selected)
	{
		if (entity instanceof class_1309 livingentity && livingentity.method_6118(this.method_48398().method_48399()) == stack)
			livingentity.method_6092(new class_1293(class_1294.field_5909, 40, 1, false, false, false));
		
		super.method_7888(stack, level, entity, i, selected);
	}

	@Override
	public void method_7851(class_1799 stack, @Nullable class_1937 level, List tooltip, class_1836 flag)
	{
		tooltip.add((class_2561.method_43471("slowmovementspeed")).method_27692(class_124.field_1061));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy