添加剩余图标和名字

This commit is contained in:
Atsuihsio 2024-05-18 20:55:53 +08:00
parent d4281b2ef5
commit 26f388659c
17 changed files with 184 additions and 0 deletions

View file

@ -16,6 +16,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -190,4 +191,14 @@ public class Kraber extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/kraber_icon.png");
}
@Override
public String getGunDisplayName() {
return "KRABER";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -186,4 +187,14 @@ public class M4Item extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/m4_icon.png");
}
@Override
public String getGunDisplayName() {
return "M4A1";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -190,4 +191,14 @@ public class M60Item extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/m60_icon.png");
}
@Override
public String getGunDisplayName() {
return "M60";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -191,4 +192,14 @@ public class M79Item extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/m79_icon.png");
}
@Override
public String getGunDisplayName() {
return "M79 LAUNCHER";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -195,4 +196,14 @@ public class M870Item extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/m870_icon.png");
}
@Override
public String getGunDisplayName() {
return "M870 MCS";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -186,4 +187,14 @@ public class M98bItem extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/m98b_icon.png");
}
@Override
public String getGunDisplayName() {
return "M98-B";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -202,4 +203,14 @@ public class MarlinItem extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/marlin_icon.png");
}
@Override
public String getGunDisplayName() {
return "MARLIN 1895";
}
}

View file

@ -16,6 +16,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EquipmentSlot;
@ -195,4 +196,14 @@ public class Minigun extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/minigun_icon.png");
}
@Override
public String getGunDisplayName() {
return "M134 MINIGUN";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -186,4 +187,14 @@ public class Mk14Item extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/mk14ebr_icon.png");
}
@Override
public String getGunDisplayName() {
return "MK-14EBR";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -193,4 +194,14 @@ public class RpgItem extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/rpg_icon.png");
}
@Override
public String getGunDisplayName() {
return "RPG-7";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -186,4 +187,14 @@ public class RpkItem extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/rpk_icon.png");
}
@Override
public String getGunDisplayName() {
return "RPK";
}
}

View file

@ -17,6 +17,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -220,4 +221,13 @@ public class SentinelItem extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/sentinel_icon.png");
}
@Override
public String getGunDisplayName() {
return "SENTINEL";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -178,4 +179,14 @@ public class SksItem extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/sks_icon.png");
}
@Override
public String getGunDisplayName() {
return "SKS";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -179,4 +180,14 @@ public class SvdItem extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/svd_icon.png");
}
@Override
public String getGunDisplayName() {
return "SVD";
}
}

View file

@ -15,6 +15,7 @@ import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.entity.Entity;
@ -192,4 +193,14 @@ public class Taser extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/taser_icon.png");
}
@Override
public String getGunDisplayName() {
return "TASER";
}
}

View file

@ -17,6 +17,7 @@ import net.minecraft.commands.CommandSource;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.Style;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.InteractionHand;
@ -217,4 +218,14 @@ public class Trachelium extends GunItem implements GeoItem, AnimatedItem {
public void setAnimationProcedure(String procedure) {
this.animationProcedure = procedure;
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/trachelium_icon.png");
}
@Override
public String getGunDisplayName() {
return "TRACHELIUM";
}
}

View file

@ -289,4 +289,13 @@ public class VectorItem extends GunItem implements GeoItem, AnimatedItem {
}
}
}
@Override
public ResourceLocation getGunIcon() {
return new ResourceLocation(TargetMod.MODID, "textures/gun_icon/vector_icon.png");
}
@Override
public String getGunDisplayName() {
return "VECTOR";
}
}