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.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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue