Make it server proof

This commit is contained in:
simibubi 2022-12-06 11:16:23 +01:00
parent ce03a91983
commit 4022baa53f
2 changed files with 6 additions and 0 deletions

View File

@ -8,7 +8,10 @@ import net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer;
import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
public interface CustomRenderedArmorItem {
@OnlyIn(Dist.CLIENT)
void renderArmorPiece(HumanoidArmorLayer<?, ?, ?> layer, PoseStack poseStack, MultiBufferSource bufferSource, LivingEntity entity, EquipmentSlot slot, int light, HumanoidModel<?> originalModel, ItemStack stack);
}

View File

@ -13,8 +13,11 @@ import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.item.ArmorItem;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
public interface LayeredArmorItem extends CustomRenderedArmorItem {
@OnlyIn(Dist.CLIENT)
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
default void renderArmorPiece(HumanoidArmorLayer<?, ?, ?> layer, PoseStack poseStack,