同步文件结构
This commit is contained in:
parent
44125e8626
commit
4898257cd9
31 changed files with 31 additions and 37 deletions
|
@ -1,6 +1,5 @@
|
||||||
package com.atsuishio.superbwarfare.client;
|
package com.atsuishio.superbwarfare.client.renderer;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.renderer.ModRenderTypes;
|
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
import com.mojang.blaze3d.vertex.VertexConsumer;
|
import com.mojang.blaze3d.vertex.VertexConsumer;
|
||||||
import net.minecraft.client.renderer.MultiBufferSource;
|
import net.minecraft.client.renderer.MultiBufferSource;
|
||||||
|
@ -62,10 +61,6 @@ public class CustomGunRenderer<T extends Item & GeoAnimatable> extends GeoItemRe
|
||||||
poseStack.pushPose();
|
poseStack.pushPose();
|
||||||
|
|
||||||
Color renderColor = getRenderColor(animatable, partialTick, packedLight);
|
Color renderColor = getRenderColor(animatable, partialTick, packedLight);
|
||||||
float red = renderColor.getRedFloat();
|
|
||||||
float green = renderColor.getGreenFloat();
|
|
||||||
float blue = renderColor.getBlueFloat();
|
|
||||||
float alpha = renderColor.getAlphaFloat();
|
|
||||||
int packedOverlay = getPackedOverlay(animatable, 0, partialTick);
|
int packedOverlay = getPackedOverlay(animatable, 0, partialTick);
|
||||||
BakedGeoModel model = getGeoModel().getBakedModel(getGeoModel().getModelResource(animatable));
|
BakedGeoModel model = getGeoModel().getBakedModel(getGeoModel().getModelResource(animatable));
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.BocekItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.BocekItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.client.renderer.ModRenderTypes;
|
import com.atsuishio.superbwarfare.client.renderer.ModRenderTypes;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.Glock17ItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.Glock17ItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.handgun.Glock17Item;
|
import com.atsuishio.superbwarfare.item.gun.handgun.Glock17Item;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.Glock18ItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.Glock18ItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.handgun.Glock18Item;
|
import com.atsuishio.superbwarfare.item.gun.handgun.Glock18Item;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
||||||
import com.atsuishio.superbwarfare.client.model.item.Hk416ItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.Hk416ItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
||||||
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.HomemadeShotgunItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.HomemadeShotgunItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.shotgun.HomemadeShotgunItem;
|
import com.atsuishio.superbwarfare.item.gun.shotgun.HomemadeShotgunItem;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.HuntingRifleItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.HuntingRifleItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.sniper.HuntingRifleItem;
|
import com.atsuishio.superbwarfare.item.gun.sniper.HuntingRifleItem;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.InsidiousItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.InsidiousItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.rifle.InsidiousItem;
|
import com.atsuishio.superbwarfare.item.gun.rifle.InsidiousItem;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.JavelinItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.JavelinItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.launcher.JavelinItem;
|
import com.atsuishio.superbwarfare.item.gun.launcher.JavelinItem;
|
||||||
|
|
||||||
public class JavelinItemRenderer extends CustomGunRenderer<JavelinItem> {
|
public class JavelinItemRenderer extends CustomGunRenderer<JavelinItem> {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.K98ItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.K98ItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.sniper.K98Item;
|
import com.atsuishio.superbwarfare.item.gun.sniper.K98Item;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
||||||
import com.atsuishio.superbwarfare.client.model.item.M4ItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.M4ItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
||||||
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.M60ItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.M60ItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.machinegun.M60Item;
|
import com.atsuishio.superbwarfare.item.gun.machinegun.M60Item;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.M79ItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.M79ItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.launcher.M79Item;
|
import com.atsuishio.superbwarfare.item.gun.launcher.M79Item;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.M870ItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.M870ItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.shotgun.M870Item;
|
import com.atsuishio.superbwarfare.item.gun.shotgun.M870Item;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.M98bItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.M98bItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.sniper.M98bItem;
|
import com.atsuishio.superbwarfare.item.gun.sniper.M98bItem;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.MarlinItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.MarlinItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.rifle.MarlinItem;
|
import com.atsuishio.superbwarfare.item.gun.rifle.MarlinItem;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.MinigunItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.MinigunItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.machinegun.MinigunItem;
|
import com.atsuishio.superbwarfare.item.gun.machinegun.MinigunItem;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
||||||
import com.atsuishio.superbwarfare.client.model.item.Mk14ItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.Mk14ItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
||||||
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.MosinNagantItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.MosinNagantItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.sniper.MosinNagantItem;
|
import com.atsuishio.superbwarfare.item.gun.sniper.MosinNagantItem;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.Mp443ItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.Mp443ItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.handgun.Mp443Item;
|
import com.atsuishio.superbwarfare.item.gun.handgun.Mp443Item;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
||||||
import com.atsuishio.superbwarfare.client.model.item.Ntw20Model;
|
import com.atsuishio.superbwarfare.client.model.item.Ntw20Model;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
||||||
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
||||||
import com.atsuishio.superbwarfare.client.model.item.Qbz95ItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.Qbz95ItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
||||||
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.RpgItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.RpgItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.launcher.RpgItem;
|
import com.atsuishio.superbwarfare.item.gun.launcher.RpgItem;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
||||||
import com.atsuishio.superbwarfare.client.model.item.RpkItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.RpkItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
||||||
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.SecondaryCataclysmModel;
|
import com.atsuishio.superbwarfare.client.model.item.SecondaryCataclysmModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.launcher.SecondaryCataclysm;
|
import com.atsuishio.superbwarfare.item.gun.launcher.SecondaryCataclysm;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.SentinelItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.SentinelItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.sniper.SentinelItem;
|
import com.atsuishio.superbwarfare.item.gun.sniper.SentinelItem;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.SksItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.SksItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.rifle.SksItem;
|
import com.atsuishio.superbwarfare.item.gun.rifle.SksItem;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
||||||
import com.atsuishio.superbwarfare.client.model.item.SvdItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.SvdItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
||||||
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.model.item.TaserItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.TaserItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
import com.atsuishio.superbwarfare.item.gun.special.TaserItem;
|
import com.atsuishio.superbwarfare.item.gun.special.TaserItem;
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
||||||
import com.atsuishio.superbwarfare.client.model.item.TracheliumItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.TracheliumItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
||||||
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
import com.atsuishio.superbwarfare.event.ClientEventHandler;
|
||||||
|
@ -38,7 +38,6 @@ public class TracheliumItemRenderer extends CustomGunRenderer<Trachelium> {
|
||||||
if (player == null) return;
|
if (player == null) return;
|
||||||
ItemStack itemStack = player.getMainHandItem();
|
ItemStack itemStack = player.getMainHandItem();
|
||||||
if (!(itemStack.getItem() instanceof GunItem)) return;
|
if (!(itemStack.getItem() instanceof GunItem)) return;
|
||||||
var data = GunData.from(itemStack);
|
|
||||||
|
|
||||||
if (name.equals("humu")) {
|
if (name.equals("humu")) {
|
||||||
bone.setHidden(GunData.from(itemStack).attachment.get(AttachmentType.SCOPE) == 0 && GunData.from(itemStack).attachment.get(AttachmentType.GRIP) == 0);
|
bone.setHidden(GunData.from(itemStack).attachment.get(AttachmentType.SCOPE) == 0 && GunData.from(itemStack).attachment.get(AttachmentType.GRIP) == 0);
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package com.atsuishio.superbwarfare.client.renderer.gun;
|
package com.atsuishio.superbwarfare.client.renderer.gun;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
import com.atsuishio.superbwarfare.client.AnimationHelper;
|
||||||
import com.atsuishio.superbwarfare.client.CustomGunRenderer;
|
|
||||||
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
import com.atsuishio.superbwarfare.client.ItemModelHelper;
|
||||||
import com.atsuishio.superbwarfare.client.model.item.VectorItemModel;
|
import com.atsuishio.superbwarfare.client.model.item.VectorItemModel;
|
||||||
|
import com.atsuishio.superbwarfare.client.renderer.CustomGunRenderer;
|
||||||
import com.atsuishio.superbwarfare.data.gun.GunData;
|
import com.atsuishio.superbwarfare.data.gun.GunData;
|
||||||
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
import com.atsuishio.superbwarfare.data.gun.value.AttachmentType;
|
||||||
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
import com.atsuishio.superbwarfare.item.gun.GunItem;
|
||||||
|
|
Loading…
Add table
Reference in a new issue