|
37 | 37 | import net.minecraft.network.protocol.Packet; |
38 | 38 | import net.minecraft.network.protocol.game.ClientGamePacketListener; |
39 | 39 | import net.minecraft.network.syncher.SynchedEntityData; |
40 | | -import net.minecraft.resources.ResourceLocation; |
| 40 | +import net.minecraft.resources.Identifier; |
41 | 41 | import net.minecraft.server.MinecraftServer; |
42 | 42 | import net.minecraft.server.level.ServerEntity; |
43 | 43 | import net.minecraft.server.level.ServerLevel; |
|
69 | 69 | import net.minecraft.world.entity.monster.Monster; |
70 | 70 | import net.minecraft.world.entity.monster.RangedAttackMob; |
71 | 71 | import net.minecraft.world.entity.player.Player; |
72 | | -import net.minecraft.world.entity.projectile.AbstractArrow; |
73 | 72 | import net.minecraft.world.entity.projectile.Projectile; |
74 | 73 | import net.minecraft.world.entity.projectile.ProjectileUtil; |
| 74 | +import net.minecraft.world.entity.projectile.arrow.AbstractArrow; |
75 | 75 | import net.minecraft.world.item.ItemStack; |
76 | 76 | import net.minecraft.world.item.Items; |
77 | 77 | import net.minecraft.world.item.ProjectileWeaponItem; |
@@ -291,11 +291,6 @@ public void onCrossbowAttackPerformed() { |
291 | 291 | noActionTime = 0; |
292 | 292 | } |
293 | 293 |
|
294 | | - @Override |
295 | | - public boolean canFireProjectileWeapon(ProjectileWeaponItem projectileWeapon) { |
296 | | - return projectileWeapon == Items.CROSSBOW; |
297 | | - } |
298 | | - |
299 | 294 | public boolean isChargingCrossbow() { |
300 | 295 | return isChargingCrossbow; |
301 | 296 | } |
@@ -725,7 +720,7 @@ public boolean saveAsPassenger(ValueOutput output, boolean includeAll, boolean i |
725 | 720 | if (type == EntityType.PLAYER) { |
726 | 721 | type = EntityType.MANNEQUIN; |
727 | 722 | } |
728 | | - ResourceLocation key = EntityType.getKey(type); |
| 723 | + Identifier key = EntityType.getKey(type); |
729 | 724 | String outputKey = key.toString(); |
730 | 725 | output.putString("id", outputKey); |
731 | 726 | this.saveWithoutId(output , includeAll, includeNonSaveable, forceSerialization); // CraftBukkit - pass on includeAll // Paper - Raw entity serialization API |
|
0 commit comments