添加物品模型图标
|
@ -125,8 +125,8 @@ public class AmmoBarOverlay {
|
||||||
event.getGuiGraphics().drawString(
|
event.getGuiGraphics().drawString(
|
||||||
Minecraft.getInstance().font,
|
Minecraft.getInstance().font,
|
||||||
centerString(gunItem.getGunDisplayName(), 20),
|
centerString(gunItem.getGunDisplayName(), 20),
|
||||||
w / 2 + 140,
|
w / 2 + 138,
|
||||||
h - 38,
|
h - 34,
|
||||||
0xFFFFFF,
|
0xFFFFFF,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
@ -135,8 +135,8 @@ public class AmmoBarOverlay {
|
||||||
event.getGuiGraphics().drawString(
|
event.getGuiGraphics().drawString(
|
||||||
Minecraft.getInstance().font,
|
Minecraft.getInstance().font,
|
||||||
centerString(getGunAmmoType(stack), 20),
|
centerString(getGunAmmoType(stack), 20),
|
||||||
w / 2 + 140,
|
w / 2 + 138,
|
||||||
h - 30,
|
h - 26,
|
||||||
0xC8A679,
|
0xC8A679,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
|
@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
|
||||||
import net.minecraft.client.player.LocalPlayer;
|
import net.minecraft.client.player.LocalPlayer;
|
||||||
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
|
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.sounds.SoundEvent;
|
import net.minecraft.sounds.SoundEvent;
|
||||||
import net.minecraft.world.InteractionHand;
|
import net.minecraft.world.InteractionHand;
|
||||||
import net.minecraft.world.entity.Entity;
|
import net.minecraft.world.entity.Entity;
|
||||||
|
@ -186,4 +187,14 @@ public class AK47Item extends GunItem implements GeoItem, AnimatedItem {
|
||||||
public void setAnimationProcedure(String procedure) {
|
public void setAnimationProcedure(String procedure) {
|
||||||
this.animationProcedure = procedure;
|
this.animationProcedure = procedure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ResourceLocation getGunIcon() {
|
||||||
|
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/ak_47_icon.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getGunDisplayName() {
|
||||||
|
return "AK-47";
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -195,7 +195,7 @@ public class Aa12Item extends GunItem implements GeoItem, AnimatedItem {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ResourceLocation getGunIcon() {
|
public ResourceLocation getGunIcon() {
|
||||||
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/aa_12.png");
|
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/aa_12_icon.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
|
||||||
import net.minecraft.client.player.LocalPlayer;
|
import net.minecraft.client.player.LocalPlayer;
|
||||||
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
|
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.sounds.SoundEvent;
|
import net.minecraft.sounds.SoundEvent;
|
||||||
import net.minecraft.world.InteractionHand;
|
import net.minecraft.world.InteractionHand;
|
||||||
import net.minecraft.world.entity.Entity;
|
import net.minecraft.world.entity.Entity;
|
||||||
|
@ -177,4 +178,14 @@ public class Abekiri extends GunItem implements GeoItem, AnimatedItem {
|
||||||
public void setAnimationProcedure(String procedure) {
|
public void setAnimationProcedure(String procedure) {
|
||||||
this.animationProcedure = procedure;
|
this.animationProcedure = procedure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ResourceLocation getGunIcon() {
|
||||||
|
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/abekiri_icon.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getGunDisplayName() {
|
||||||
|
return "Abekiri";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ package net.mcreator.target.item.gun;
|
||||||
|
|
||||||
import com.google.common.collect.HashMultimap;
|
import com.google.common.collect.HashMultimap;
|
||||||
import com.google.common.collect.Multimap;
|
import com.google.common.collect.Multimap;
|
||||||
|
import net.mcreator.target.TargetMod;
|
||||||
import net.mcreator.target.client.renderer.item.BocekItemRenderer;
|
import net.mcreator.target.client.renderer.item.BocekItemRenderer;
|
||||||
import net.mcreator.target.init.TargetModItems;
|
import net.mcreator.target.init.TargetModItems;
|
||||||
import net.mcreator.target.item.AnimatedItem;
|
import net.mcreator.target.item.AnimatedItem;
|
||||||
|
@ -14,6 +15,7 @@ import net.minecraft.client.player.LocalPlayer;
|
||||||
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
|
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
|
||||||
import net.minecraft.nbt.CompoundTag;
|
import net.minecraft.nbt.CompoundTag;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.world.InteractionHand;
|
import net.minecraft.world.InteractionHand;
|
||||||
import net.minecraft.world.entity.Entity;
|
import net.minecraft.world.entity.Entity;
|
||||||
import net.minecraft.world.entity.EquipmentSlot;
|
import net.minecraft.world.entity.EquipmentSlot;
|
||||||
|
@ -180,4 +182,14 @@ public class BocekItem extends GunItem implements GeoItem, AnimatedItem {
|
||||||
public void setAnimationProcedure(String procedure) {
|
public void setAnimationProcedure(String procedure) {
|
||||||
this.animationProcedure = procedure;
|
this.animationProcedure = procedure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ResourceLocation getGunIcon() {
|
||||||
|
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/bocek_icon.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getGunDisplayName() {
|
||||||
|
return "Bocek";
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -18,6 +18,7 @@ import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
|
||||||
import net.minecraft.commands.CommandSource;
|
import net.minecraft.commands.CommandSource;
|
||||||
import net.minecraft.commands.CommandSourceStack;
|
import net.minecraft.commands.CommandSourceStack;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.server.level.ServerLevel;
|
import net.minecraft.server.level.ServerLevel;
|
||||||
import net.minecraft.sounds.SoundEvent;
|
import net.minecraft.sounds.SoundEvent;
|
||||||
import net.minecraft.world.InteractionHand;
|
import net.minecraft.world.InteractionHand;
|
||||||
|
@ -234,4 +235,14 @@ public class Devotion extends GunItem implements GeoItem, AnimatedItem {
|
||||||
public void setAnimationProcedure(String procedure) {
|
public void setAnimationProcedure(String procedure) {
|
||||||
this.animationProcedure = procedure;
|
this.animationProcedure = procedure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ResourceLocation getGunIcon() {
|
||||||
|
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/devotion_icon.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getGunDisplayName() {
|
||||||
|
return "Devotion";
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -96,7 +96,7 @@ public abstract class GunItem extends Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResourceLocation getGunIcon() {
|
public ResourceLocation getGunIcon() {
|
||||||
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/default.png");
|
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/default_icon.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getGunDisplayName() {
|
public String getGunDisplayName() {
|
||||||
|
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 4 KiB |
After Width: | Height: | Size: 9.8 KiB |
After Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 7 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 10 KiB |
BIN
src/main/resources/assets/target/textures/gun_icon/m4_icon.png
Normal file
After Width: | Height: | Size: 7 KiB |
BIN
src/main/resources/assets/target/textures/gun_icon/m60_icon.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
src/main/resources/assets/target/textures/gun_icon/m79_icon.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
src/main/resources/assets/target/textures/gun_icon/m870_icon.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
src/main/resources/assets/target/textures/gun_icon/m98b_icon.png
Normal file
After Width: | Height: | Size: 7 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 9.4 KiB |
BIN
src/main/resources/assets/target/textures/gun_icon/rpg_icon.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
src/main/resources/assets/target/textures/gun_icon/rpk_icon.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 9 KiB |
BIN
src/main/resources/assets/target/textures/gun_icon/sks_icon.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
src/main/resources/assets/target/textures/gun_icon/svd_icon.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 6.1 KiB |