调整文件结构

This commit is contained in:
Atsuihsio 2024-12-04 16:20:34 +08:00
parent 7d6d2b6409
commit 6b3d5c007f
44 changed files with 85 additions and 84 deletions

View file

@ -1,9 +1,9 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.CannonShellEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.texture.OverlayTexture;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.GunGrenadeEntity;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.JavelinMissileEntity;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.config.server.CannonConfig;

View file

@ -1,18 +1,16 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.atsuishio.superbwarfare.entity.Mk42Entity;
import com.atsuishio.superbwarfare.ModUtils;
import software.bernie.geckolib.renderer.layer.GeoRenderLayer;
import software.bernie.geckolib.renderer.GeoRenderer;
import software.bernie.geckolib.cache.object.BakedGeoModel;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.client.renderer.texture.OverlayTexture;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.MultiBufferSource;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.atsuishio.superbwarfare.entity.Mk42Entity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.texture.OverlayTexture;
import net.minecraft.resources.ResourceLocation;
import software.bernie.geckolib.cache.object.BakedGeoModel;
import software.bernie.geckolib.renderer.GeoRenderer;
import software.bernie.geckolib.renderer.layer.GeoRenderLayer;
public class Mk42Layer extends GeoRenderLayer<Mk42Entity> {

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.config.server.CannonConfig;

View file

@ -1,9 +1,9 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.Mle1934Entity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.atsuishio.superbwarfare.ModUtils;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.texture.OverlayTexture;

View file

@ -1,9 +1,9 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.MortarEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.texture.OverlayTexture;

View file

@ -1,9 +1,9 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.ProjectileEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.atsuishio.superbwarfare.ModUtils;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.texture.OverlayTexture;

View file

@ -1,9 +1,9 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.ProjectileEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.atsuishio.superbwarfare.ModUtils;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.texture.OverlayTexture;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.RpgRocketEntity;

View file

@ -1,9 +1,9 @@
package com.atsuishio.superbwarfare.entity.layer;
package com.atsuishio.superbwarfare.client.layer;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.TargetEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.atsuishio.superbwarfare.ModUtils;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.texture.OverlayTexture;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.CannonShellEntity;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.ClaymoreEntity;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.DroneEntity;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.GunGrenadeEntity;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.HandGrenadeEntity;

View file

@ -1,7 +1,7 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.entity.projectile.JavelinMissileEntity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.JavelinMissileEntity;
import net.minecraft.resources.ResourceLocation;
import software.bernie.geckolib.model.GeoModel;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.Mk42Entity;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.Mle1934Entity;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.MortarEntity;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.MortarShellEntity;

View file

@ -1,7 +1,7 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.entity.projectile.ProjectileEntity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.ProjectileEntity;
import com.atsuishio.superbwarfare.event.ClientEventHandler;
import com.atsuishio.superbwarfare.init.ModItems;
import net.minecraft.client.Minecraft;
@ -42,6 +42,9 @@ public class ProjectileEntityModel extends GeoModel<ProjectileEntity> {
@Override
public void setCustomAnimations(ProjectileEntity animatable, long instanceId, AnimationState animationState) {
CoreGeoBone bone = getAnimationProcessor().getBone("bone");
bone.setHidden(animatable.tickCount <= 1);
Player player = Minecraft.getInstance().player;
if (player != null) {
bone.setHidden(animatable.position().distanceTo(player.position()) < 3);
}
}
}

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.RgoGrenadeEntity;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.RpgRocketEntity;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.SenpaiEntity;

View file

@ -1,7 +1,7 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.entity.TargetEntity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.TargetEntity;
import net.minecraft.resources.ResourceLocation;
import software.bernie.geckolib.model.GeoModel;

View file

@ -1,4 +1,4 @@
package com.atsuishio.superbwarfare.entity.model;
package com.atsuishio.superbwarfare.client.model.entity;
import com.atsuishio.superbwarfare.ModUtils;
import com.atsuishio.superbwarfare.entity.projectile.TaserBulletProjectileEntity;

View file

@ -1,11 +1,11 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.layer.CannonShellLayer;
import com.atsuishio.superbwarfare.entity.model.CannonShellEntityModel;
import com.atsuishio.superbwarfare.client.layer.CannonShellLayer;
import com.atsuishio.superbwarfare.client.model.entity.CannonShellEntityModel;
import com.atsuishio.superbwarfare.entity.projectile.CannonShellEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.mojang.math.Axis;
import com.atsuishio.superbwarfare.entity.projectile.CannonShellEntity;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.entity.EntityRendererProvider;

View file

@ -1,7 +1,7 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.client.model.entity.ClaymoreModel;
import com.atsuishio.superbwarfare.entity.ClaymoreEntity;
import com.atsuishio.superbwarfare.entity.model.ClaymoreModel;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.mojang.math.Axis;

View file

@ -1,10 +1,10 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.model.DroneModel;
import com.atsuishio.superbwarfare.client.model.entity.DroneModel;
import com.atsuishio.superbwarfare.entity.DroneEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.atsuishio.superbwarfare.entity.DroneEntity;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.entity.EntityRendererProvider;

View file

@ -1,7 +1,7 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.layer.GunGrenadeLayer;
import com.atsuishio.superbwarfare.entity.model.GunGrenadeModel;
import com.atsuishio.superbwarfare.client.layer.GunGrenadeLayer;
import com.atsuishio.superbwarfare.client.model.entity.GunGrenadeModel;
import com.atsuishio.superbwarfare.entity.projectile.GunGrenadeEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;

View file

@ -1,6 +1,6 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.model.HandGrenadeEntityModel;
import com.atsuishio.superbwarfare.client.model.entity.HandGrenadeEntityModel;
import com.atsuishio.superbwarfare.entity.projectile.HandGrenadeEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;

View file

@ -1,7 +1,7 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.layer.JavelinMissleLayer;
import com.atsuishio.superbwarfare.entity.model.JavelinMissileModel;
import com.atsuishio.superbwarfare.client.layer.JavelinMissleLayer;
import com.atsuishio.superbwarfare.client.model.entity.JavelinMissileModel;
import com.atsuishio.superbwarfare.entity.projectile.JavelinMissileEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;

View file

@ -1,9 +1,9 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.client.layer.Mk42DamageLayer;
import com.atsuishio.superbwarfare.client.layer.Mk42Layer;
import com.atsuishio.superbwarfare.client.model.entity.Mk42Model;
import com.atsuishio.superbwarfare.entity.Mk42Entity;
import com.atsuishio.superbwarfare.entity.layer.Mk42DamageLayer;
import com.atsuishio.superbwarfare.entity.layer.Mk42Layer;
import com.atsuishio.superbwarfare.entity.model.Mk42Model;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.mojang.math.Axis;

View file

@ -1,9 +1,9 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.client.layer.Mle1934DamageLayer;
import com.atsuishio.superbwarfare.client.layer.Mle1934Layer;
import com.atsuishio.superbwarfare.client.model.entity.Mle1934Model;
import com.atsuishio.superbwarfare.entity.Mle1934Entity;
import com.atsuishio.superbwarfare.entity.layer.Mle1934DamageLayer;
import com.atsuishio.superbwarfare.entity.layer.Mle1934Layer;
import com.atsuishio.superbwarfare.entity.model.Mle1934Model;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.mojang.math.Axis;

View file

@ -1,11 +1,11 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.layer.MortarLayer;
import com.atsuishio.superbwarfare.entity.model.MortarModel;
import com.atsuishio.superbwarfare.client.layer.MortarLayer;
import com.atsuishio.superbwarfare.client.model.entity.MortarModel;
import com.atsuishio.superbwarfare.entity.MortarEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.mojang.math.Axis;
import com.atsuishio.superbwarfare.entity.MortarEntity;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.entity.EntityRendererProvider;

View file

@ -1,6 +1,6 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.model.MortarShellEntityModel;
import com.atsuishio.superbwarfare.client.model.entity.MortarShellEntityModel;
import com.atsuishio.superbwarfare.entity.projectile.MortarShellEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;

View file

@ -1,8 +1,8 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.layer.ProjectileEntityInsideLayer;
import com.atsuishio.superbwarfare.entity.layer.ProjectileEntityLayer;
import com.atsuishio.superbwarfare.entity.model.ProjectileEntityModel;
import com.atsuishio.superbwarfare.client.layer.ProjectileEntityInsideLayer;
import com.atsuishio.superbwarfare.client.layer.ProjectileEntityLayer;
import com.atsuishio.superbwarfare.client.model.entity.ProjectileEntityModel;
import com.atsuishio.superbwarfare.entity.projectile.ProjectileEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;

View file

@ -1,6 +1,6 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.model.RgoGrenadeEntityModel;
import com.atsuishio.superbwarfare.client.model.entity.RgoGrenadeEntityModel;
import com.atsuishio.superbwarfare.entity.projectile.RgoGrenadeEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;

View file

@ -1,7 +1,7 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.layer.RpgRocketLayer;
import com.atsuishio.superbwarfare.entity.model.RpgRocketModel;
import com.atsuishio.superbwarfare.client.layer.RpgRocketLayer;
import com.atsuishio.superbwarfare.client.model.entity.RpgRocketModel;
import com.atsuishio.superbwarfare.entity.projectile.RpgRocketEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;

View file

@ -1,9 +1,9 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.model.SenpaiModel;
import com.atsuishio.superbwarfare.client.model.entity.SenpaiModel;
import com.atsuishio.superbwarfare.entity.SenpaiEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.atsuishio.superbwarfare.entity.SenpaiEntity;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.entity.EntityRendererProvider;

View file

@ -1,10 +1,10 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.client.layer.TargetLayer;
import com.atsuishio.superbwarfare.client.model.entity.TargetModel;
import com.atsuishio.superbwarfare.entity.TargetEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.atsuishio.superbwarfare.entity.TargetEntity;
import com.atsuishio.superbwarfare.entity.layer.TargetLayer;
import com.atsuishio.superbwarfare.entity.model.TargetModel;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.entity.EntityRendererProvider;

View file

@ -1,6 +1,6 @@
package com.atsuishio.superbwarfare.client.renderer.entity;
import com.atsuishio.superbwarfare.entity.model.TaserBulletProjectileModel;
import com.atsuishio.superbwarfare.client.model.entity.TaserBulletProjectileModel;
import com.atsuishio.superbwarfare.entity.projectile.TaserBulletProjectileEntity;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;