command entities
This commit is contained in:
parent
e88958e2f4
commit
460a58e062
32 changed files with 293 additions and 37 deletions
|
@ -6,6 +6,7 @@ import game.block.Block;
|
|||
import game.enchantment.EnchantmentHelper;
|
||||
import game.entity.DamageSource;
|
||||
import game.entity.Entity;
|
||||
import game.entity.EntityType;
|
||||
import game.entity.npc.EntityNPC;
|
||||
import game.entity.types.EntityLiving;
|
||||
import game.entity.types.IObjectData;
|
||||
|
@ -631,4 +632,8 @@ public class EntityArrow extends Entity implements IProjectile, IObjectData
|
|||
public boolean hasSpawnVelocity() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public EntityType getType() {
|
||||
return EntityType.PROJECTILE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
|||
import game.enchantment.EnchantmentHelper;
|
||||
import game.entity.DamageSource;
|
||||
import game.entity.Entity;
|
||||
import game.entity.EntityType;
|
||||
import game.entity.types.EntityLiving;
|
||||
import game.entity.types.IObjectData;
|
||||
import game.entity.types.IProjectile;
|
||||
|
@ -403,4 +404,8 @@ public class EntityBullet extends Entity implements IProjectile, IObjectData
|
|||
public boolean hasSpawnVelocity() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public EntityType getType() {
|
||||
return EntityType.PROJECTILE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package game.entity.projectile;
|
||||
|
||||
import game.entity.DamageSource;
|
||||
import game.entity.EntityType;
|
||||
import game.entity.types.EntityLiving;
|
||||
import game.entity.types.EntityThrowable;
|
||||
import game.entity.types.IObjectData;
|
||||
|
@ -77,4 +78,8 @@ public class EntityDynamite extends EntityThrowable implements IObjectData
|
|||
// public boolean hasSpawnVelocity() {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
public EntityType getType() {
|
||||
return EntityType.EXPLOSIVE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ import game.block.Block;
|
|||
import game.enchantment.EnchantmentHelper;
|
||||
import game.entity.DamageSource;
|
||||
import game.entity.Entity;
|
||||
import game.entity.EntityType;
|
||||
import game.entity.item.EntityItem;
|
||||
import game.entity.item.EntityXp;
|
||||
import game.entity.npc.EntityNPC;
|
||||
|
@ -661,6 +662,10 @@ public class EntityHook extends Entity implements IObjectData
|
|||
public int getPacketData() {
|
||||
return this.angler != null ? this.angler.getId() : this.getId();
|
||||
}
|
||||
|
||||
public EntityType getType() {
|
||||
return EntityType.PROJECTILE;
|
||||
}
|
||||
|
||||
// public boolean hasSpawnVelocity() {
|
||||
// return false;
|
||||
|
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
|||
import game.block.Block;
|
||||
import game.entity.DamageSource;
|
||||
import game.entity.Entity;
|
||||
import game.entity.EntityType;
|
||||
import game.entity.types.EntityLiving;
|
||||
import game.init.BlockRegistry;
|
||||
import game.nbt.NBTTagCompound;
|
||||
|
@ -385,4 +386,8 @@ public abstract class EntityProjectile extends Entity
|
|||
// public boolean hasSpawnVelocity() {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
public EntityType getType() {
|
||||
return EntityType.PROJECTILE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue