mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
26 lines
817 B
Java
26 lines
817 B
Java
package com.hbm.explosion.vanillant;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map.Entry;
|
|
|
|
import com.hbm.packet.ExplosionKnockbackPacket;
|
|
import com.hbm.packet.PacketDispatcher;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.entity.player.EntityPlayerMP;
|
|
import net.minecraft.util.Vec3;
|
|
import net.minecraft.world.World;
|
|
|
|
public class PlayerProcessorStandard implements IPlayerProcessor {
|
|
|
|
@Override
|
|
public void process(ExplosionVNT explosion, World world, double x, double y, double z, HashMap<EntityPlayer, Vec3> affectedPlayers) {
|
|
|
|
for(Entry<EntityPlayer, Vec3> entry : affectedPlayers.entrySet()) {
|
|
if(entry.getKey() instanceof EntityPlayerMP) {
|
|
PacketDispatcher.wrapper.sendTo(new ExplosionKnockbackPacket(entry.getValue()), (EntityPlayerMP)entry.getKey());
|
|
}
|
|
}
|
|
}
|
|
}
|