热诱弹不可被攻击
This commit is contained in:
parent
f20aa72fda
commit
15621dbd09
1 changed files with 0 additions and 12 deletions
|
@ -8,7 +8,6 @@ import net.minecraft.network.protocol.Packet;
|
||||||
import net.minecraft.network.protocol.game.ClientGamePacketListener;
|
import net.minecraft.network.protocol.game.ClientGamePacketListener;
|
||||||
import net.minecraft.server.level.ServerLevel;
|
import net.minecraft.server.level.ServerLevel;
|
||||||
import net.minecraft.util.Mth;
|
import net.minecraft.util.Mth;
|
||||||
import net.minecraft.world.damagesource.DamageSource;
|
|
||||||
import net.minecraft.world.entity.Entity;
|
import net.minecraft.world.entity.Entity;
|
||||||
import net.minecraft.world.entity.EntityType;
|
import net.minecraft.world.entity.EntityType;
|
||||||
import net.minecraft.world.entity.LivingEntity;
|
import net.minecraft.world.entity.LivingEntity;
|
||||||
|
@ -36,12 +35,6 @@ public class FlareDecoyEntity extends Entity {
|
||||||
return NetworkHooks.getEntitySpawningPacket(this);
|
return NetworkHooks.getEntitySpawningPacket(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean hurt(DamageSource source, float amount) {
|
|
||||||
this.discard();
|
|
||||||
return super.hurt(source, amount);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void readAdditionalSaveData(CompoundTag compoundTag) {
|
protected void readAdditionalSaveData(CompoundTag compoundTag) {
|
||||||
|
|
||||||
|
@ -52,11 +45,6 @@ public class FlareDecoyEntity extends Entity {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isPickable() {
|
|
||||||
return !this.isRemoved();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void defineSynchedData() {
|
protected void defineSynchedData() {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue