修复夕雾花没有图标的问题
This commit is contained in:
parent
65a3ae5d1c
commit
2fc8343b9c
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
package com.atsuishio.superbwarfare.item.gun.handgun;
|
package com.atsuishio.superbwarfare.item.gun.handgun;
|
||||||
|
|
||||||
|
import com.atsuishio.superbwarfare.Mod;
|
||||||
import com.atsuishio.superbwarfare.client.ClickHandler;
|
import com.atsuishio.superbwarfare.client.ClickHandler;
|
||||||
import com.atsuishio.superbwarfare.client.TooltipTool;
|
import com.atsuishio.superbwarfare.client.TooltipTool;
|
||||||
import com.atsuishio.superbwarfare.client.renderer.gun.TracheliumItemRenderer;
|
import com.atsuishio.superbwarfare.client.renderer.gun.TracheliumItemRenderer;
|
||||||
|
@ -14,6 +15,7 @@ import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.player.LocalPlayer;
|
import net.minecraft.client.player.LocalPlayer;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.chat.Style;
|
import net.minecraft.network.chat.Style;
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.sounds.SoundEvent;
|
import net.minecraft.sounds.SoundEvent;
|
||||||
import net.minecraft.world.entity.Entity;
|
import net.minecraft.world.entity.Entity;
|
||||||
import net.minecraft.world.item.*;
|
import net.minecraft.world.item.*;
|
||||||
|
@ -310,4 +312,9 @@ public class Trachelium extends GunItem {
|
||||||
public boolean hasCustomStock(ItemStack stack) {
|
public boolean hasCustomStock(ItemStack stack) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ResourceLocation getGunIcon() {
|
||||||
|
return Mod.loc("textures/gun_icon/trachelium_icon.png");
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue