正确设置noCulling
This commit is contained in:
parent
9c83e6d2a8
commit
2b466a0036
18 changed files with 36 additions and 3 deletions
|
@ -52,7 +52,7 @@ public class ClaymoreEntity extends Entity implements GeoEntity, OwnableEntity {
|
|||
}
|
||||
|
||||
public ClaymoreEntity(LivingEntity owner, Level level) {
|
||||
super(ModEntities.CLAYMORE.get(), level);
|
||||
this(ModEntities.CLAYMORE.get(), level);
|
||||
if (owner != null) {
|
||||
this.setOwnerUUID(owner.getUUID());
|
||||
}
|
||||
|
|
|
@ -62,6 +62,8 @@ public class Agm65Entity extends FastThrowableProjectile implements GeoEntity, E
|
|||
|
||||
public Agm65Entity(LivingEntity entity, Level level) {
|
||||
super(ModEntities.AGM_65.get(), entity, level);
|
||||
this.noCulling = true;
|
||||
|
||||
this.durability = 25;
|
||||
}
|
||||
|
||||
|
|
|
@ -61,6 +61,8 @@ public class CannonShellEntity extends FastThrowableProjectile implements GeoEnt
|
|||
|
||||
public CannonShellEntity(LivingEntity entity, Level world, float damage, float radius, float explosionDamage, float fireProbability, int fireTime, float gravity) {
|
||||
super(ModEntities.CANNON_SHELL.get(), entity, world);
|
||||
this.noCulling = true;
|
||||
|
||||
this.damage = damage;
|
||||
this.radius = radius;
|
||||
this.explosionDamage = explosionDamage;
|
||||
|
|
|
@ -46,6 +46,8 @@ public class GunGrenadeEntity extends FastThrowableProjectile implements GeoEnti
|
|||
|
||||
public GunGrenadeEntity(LivingEntity entity, Level level, float damage, float explosionDamage, float explosionRadius) {
|
||||
super(ModEntities.GUN_GRENADE.get(), entity, level);
|
||||
this.noCulling = true;
|
||||
|
||||
this.damage = damage;
|
||||
this.explosionDamage = explosionDamage;
|
||||
this.explosionRadius = explosionRadius;
|
||||
|
|
|
@ -52,6 +52,8 @@ public class HandGrenadeEntity extends FastThrowableProjectile implements GeoEnt
|
|||
|
||||
public HandGrenadeEntity(LivingEntity entity, Level level, int fuse) {
|
||||
super(ModEntities.HAND_GRENADE.get(), entity, level);
|
||||
this.noCulling = true;
|
||||
|
||||
this.fuse = fuse;
|
||||
}
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ public class HeliRocketEntity extends FastThrowableProjectile implements GeoEnti
|
|||
public HeliRocketEntity(EntityType<? extends ThrowableItemProjectile> pEntityType, double pX, double pY, double pZ, Level pLevel) {
|
||||
super(pEntityType, pX, pY, pZ, pLevel);
|
||||
this.noCulling = true;
|
||||
|
||||
this.durability = 20;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,6 +65,8 @@ public class JavelinMissileEntity extends FastThrowableProjectile implements Geo
|
|||
|
||||
public JavelinMissileEntity(LivingEntity entity, Level level, float damage, float explosionDamage, float explosionRadius, int guideType, Vec3 targetPos) {
|
||||
super(ModEntities.JAVELIN_MISSILE.get(), entity, level);
|
||||
this.noCulling = true;
|
||||
|
||||
this.damage = damage;
|
||||
this.explosionDamage = explosionDamage;
|
||||
this.explosionRadius = explosionRadius;
|
||||
|
|
|
@ -35,6 +35,7 @@ public class MelonBombEntity extends FastThrowableProjectile implements Explosiv
|
|||
|
||||
public MelonBombEntity(LivingEntity entity, Level level) {
|
||||
super(ModEntities.MELON_BOMB.get(), entity, level);
|
||||
this.noCulling = true;
|
||||
}
|
||||
|
||||
protected @NotNull Item getDefaultItem() {
|
||||
|
|
|
@ -42,6 +42,7 @@ public class Mk82Entity extends FastThrowableProjectile implements GeoEntity, Ex
|
|||
|
||||
public Mk82Entity(LivingEntity entity, Level level) {
|
||||
super(ModEntities.MK_82.get(), entity, level);
|
||||
this.noCulling = true;
|
||||
}
|
||||
|
||||
public Mk82Entity(EntityType<? extends ThrowableItemProjectile> pEntityType, double pX, double pY, double pZ, Level pLevel) {
|
||||
|
|
|
@ -70,15 +70,20 @@ public class MortarShellEntity extends FastThrowableProjectile implements GeoEnt
|
|||
|
||||
public MortarShellEntity(LivingEntity entity, Level level) {
|
||||
super(ModEntities.MORTAR_SHELL.get(), entity, level);
|
||||
this.noCulling = true;
|
||||
}
|
||||
|
||||
public MortarShellEntity(LivingEntity entity, Level world, float explosionDamage) {
|
||||
super(ModEntities.MORTAR_SHELL.get(), entity, world);
|
||||
this.noCulling = true;
|
||||
|
||||
this.explosionDamage = explosionDamage;
|
||||
}
|
||||
|
||||
public MortarShellEntity(LivingEntity entity, Level world, float explosionDamage, float radius) {
|
||||
super(ModEntities.MORTAR_SHELL.get(), entity, world);
|
||||
this.noCulling = true;
|
||||
|
||||
this.explosionDamage = explosionDamage;
|
||||
this.radius = radius;
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ public class ProjectileEntity extends Projectile implements GeoEntity, CustomSyn
|
|||
}
|
||||
|
||||
public ProjectileEntity(Level level) {
|
||||
super(ModEntities.PROJECTILE.get(), level);
|
||||
this(ModEntities.PROJECTILE.get(), level);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
|
|
@ -50,17 +50,21 @@ public class RpgRocketEntity extends FastThrowableProjectile implements GeoEntit
|
|||
public RpgRocketEntity(EntityType<? extends RpgRocketEntity> type, Level world) {
|
||||
super(type, world);
|
||||
this.noCulling = true;
|
||||
|
||||
this.durability = 20;
|
||||
}
|
||||
|
||||
public RpgRocketEntity(EntityType<? extends ThrowableItemProjectile> pEntityType, double pX, double pY, double pZ, Level pLevel) {
|
||||
super(pEntityType, pX, pY, pZ, pLevel);
|
||||
this.noCulling = true;
|
||||
|
||||
this.durability = 20;
|
||||
}
|
||||
|
||||
public RpgRocketEntity(LivingEntity entity, Level level) {
|
||||
super(ModEntities.RPG_ROCKET.get(), entity, level);
|
||||
this.noCulling = true;
|
||||
|
||||
this.durability = 2;
|
||||
}
|
||||
|
||||
|
|
|
@ -51,6 +51,8 @@ public class SmallCannonShellEntity extends FastThrowableProjectile implements G
|
|||
|
||||
public SmallCannonShellEntity(LivingEntity entity, Level level, float damage, float explosionDamage, float explosionRadius, boolean aa) {
|
||||
super(ModEntities.SMALL_CANNON_SHELL.get(), entity, level);
|
||||
this.noCulling = true;
|
||||
|
||||
this.damage = damage;
|
||||
this.explosionDamage = explosionDamage;
|
||||
this.explosionRadius = explosionRadius;
|
||||
|
|
|
@ -62,10 +62,13 @@ public class SwarmDroneEntity extends FastThrowableProjectile implements GeoEnti
|
|||
|
||||
public SwarmDroneEntity(double x, double y, double z, Level level) {
|
||||
super(ModEntities.SWARM_DRONE.get(), x, y, z, level);
|
||||
this.noCulling = true;
|
||||
}
|
||||
|
||||
public SwarmDroneEntity(LivingEntity entity, Level level, float explosionDamage, float explosionRadius) {
|
||||
super(ModEntities.SWARM_DRONE.get(), entity, level);
|
||||
this.noCulling = true;
|
||||
|
||||
this.explosionDamage = explosionDamage;
|
||||
this.explosionRadius = explosionRadius;
|
||||
}
|
||||
|
|
|
@ -54,6 +54,8 @@ public class TaserBulletEntity extends AbstractArrow implements GeoEntity {
|
|||
|
||||
public TaserBulletEntity(LivingEntity entity, Level level, float damage) {
|
||||
super(ModEntities.TASER_BULLET.get(), level);
|
||||
this.noCulling = true;
|
||||
|
||||
this.damage = damage;
|
||||
}
|
||||
|
||||
|
|
|
@ -57,6 +57,8 @@ public class WgMissileEntity extends FastThrowableProjectile implements GeoEntit
|
|||
|
||||
public WgMissileEntity(LivingEntity entity, Level level, float damage, float explosionDamage, float explosionRadius) {
|
||||
super(ModEntities.WG_MISSILE.get(), entity, level);
|
||||
this.noCulling = true;
|
||||
|
||||
this.damage = damage;
|
||||
this.explosionDamage = explosionDamage;
|
||||
this.explosionRadius = explosionRadius;
|
||||
|
|
|
@ -79,12 +79,13 @@ public class AnnihilatorEntity extends EnergyVehicleEntity implements GeoEntity,
|
|||
|
||||
public AnnihilatorEntity(EntityType<AnnihilatorEntity> type, Level world) {
|
||||
super(type, world);
|
||||
this.noCulling = true;
|
||||
|
||||
this.obb = new OBB(this.position().toVector3f(), new Vector3f(6.4375f, 1.84375f, 4.125f), new Quaternionf(), OBB.Part.BODY);
|
||||
this.obb2 = new OBB(this.position().toVector3f(), new Vector3f(5.0625f, 1.40625f, 1.5f), new Quaternionf(), OBB.Part.BODY);
|
||||
this.obb3 = new OBB(this.position().toVector3f(), new Vector3f(5.1875f, 1.84375f, 1.96875f), new Quaternionf(), OBB.Part.BODY);
|
||||
this.obb4 = new OBB(this.position().toVector3f(), new Vector3f(4.125f, 1.84375f, 0.75f), new Quaternionf(), OBB.Part.BODY);
|
||||
this.obb5 = new OBB(this.position().toVector3f(), new Vector3f(7.75f, 0.71875f, 1.46875f), new Quaternionf(), OBB.Part.BODY);
|
||||
this.noCulling = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -88,6 +88,7 @@ public class PrismTankEntity extends ContainerMobileVehicleEntity implements Geo
|
|||
public PrismTankEntity(EntityType<PrismTankEntity> type, Level world) {
|
||||
super(type, world);
|
||||
this.noCulling = true;
|
||||
|
||||
this.obb = new OBB(this.position().toVector3f(), new Vector3f(2.4f, 0.8125f, 3.71875f), new Quaternionf(), OBB.Part.BODY);
|
||||
this.obb2 = new OBB(this.position().toVector3f(), new Vector3f(2.4f, 0.5f, 0.375f), new Quaternionf(), OBB.Part.BODY);
|
||||
this.obb3 = new OBB(this.position().toVector3f(), new Vector3f(0.46875f, 0.78125f, 3.3125f), new Quaternionf(), OBB.Part.WHEEL_LEFT);
|
||||
|
|
Loading…
Add table
Reference in a new issue