mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-26 05:32:50 +02:00
Removed usages of Entity#setGravity
This commit is contained in:
parent
b900d0e73d
commit
e66fc2d200
@ -47,7 +47,6 @@ public class EntityProjectile extends Entity {
|
||||
if (getEntityMeta() instanceof ProjectileMeta) {
|
||||
((ProjectileMeta) getEntityMeta()).setShooter(this.shooter);
|
||||
}
|
||||
setGravity(0.02f, 0.04f, 1.96f);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
@ -17,7 +17,6 @@ public class ExperienceOrb extends Entity {
|
||||
|
||||
public ExperienceOrb(short experienceCount, @NotNull Position spawnPosition) {
|
||||
super(EntityType.EXPERIENCE_ORB, spawnPosition);
|
||||
setGravity(0.02f, 0.04f, 1.96f);
|
||||
setBoundingBox(0.5f, 0.5f, 0.5f);
|
||||
//todo vanilla sets random velocity here?
|
||||
this.experienceCount = experienceCount;
|
||||
|
@ -43,7 +43,6 @@ public class ItemEntity extends Entity {
|
||||
public ItemEntity(@NotNull ItemStack itemStack, @NotNull Position spawnPosition) {
|
||||
super(EntityType.ITEM, spawnPosition);
|
||||
setItemStack(itemStack);
|
||||
setGravity(0.02f, 0.04f, 1.96f);
|
||||
setBoundingBox(0.25f, 0.25f, 0.25f);
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,6 @@ public class LivingEntity extends Entity implements EquipmentHandler {
|
||||
*/
|
||||
public LivingEntity(@NotNull EntityType entityType, @NotNull UUID uuid) {
|
||||
this(entityType, uuid, new Position());
|
||||
setGravity(0.02f, 0.08f, 3.92f);
|
||||
initEquipments();
|
||||
}
|
||||
|
||||
@ -104,7 +103,6 @@ public class LivingEntity extends Entity implements EquipmentHandler {
|
||||
@Deprecated
|
||||
public LivingEntity(@NotNull EntityType entityType, @NotNull UUID uuid, @NotNull Position spawnPosition) {
|
||||
super(entityType, uuid, spawnPosition);
|
||||
setGravity(0.02f, 0.08f, 3.92f);
|
||||
initEquipments();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user