Originally Posted by
Toumou
Where are they located, what should i look at
Where ever you append the mask for the npc updating. No idea what base you're using so I couldn't tell ya.
Code:
/**
* {@link MobUpdateBlock} implementation that displays a single hit-splat on a
* mob.
*
* @author SeVen
*/
public class MobSingleHitUpdateBlock extends MobUpdateBlock {
private final Hit hit;
public MobSingleHitUpdateBlock(Hit hit) {
super(0x40, UpdateFlag.HIT);
this.hit = hit;
}
@Override
public void encode(Mob entity, PacketBuilder builder) {
builder
.put(hit.getDamage(), ByteModification.NEGATION)
.put(hit.getType().getId(), ByteModification.SUBTRACTION)
.put(hit.getDamageType().getId())
.put(entity.getCurrentHealth(), ByteModification.SUBTRACTION)
.put(entity.getMaximumHealth(), ByteModification.NEGATION);
}
}