command entities

This commit is contained in:
Sen 2025-03-26 15:43:58 +01:00
parent e88958e2f4
commit 460a58e062
32 changed files with 293 additions and 37 deletions

View file

@ -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;