use of net.minecraft.server.v1_11_R1.EntityPlayer in project FunnyGuilds by FunnyGuilds.
the class V1_14R1PacketAccessor method getOrInstallChannelHandler.
@Override
public FunnyGuildsChannelHandler getOrInstallChannelHandler(Player player) {
final EntityPlayer entityPlayer = ((CraftPlayer) player).getHandle();
final Channel channel = entityPlayer.playerConnection.networkManager.channel;
final ChannelPipeline pipeline = channel.pipeline();
return this.channelHandlerInstaller.installChannelHandlerInPipeline(pipeline);
}
use of net.minecraft.server.v1_11_R1.EntityPlayer in project FunnyGuilds by FunnyGuilds.
the class V1_16R3PacketAccessor method getOrInstallChannelHandler.
@Override
public FunnyGuildsChannelHandler getOrInstallChannelHandler(Player player) {
final EntityPlayer entityPlayer = ((CraftPlayer) player).getHandle();
final Channel channel = entityPlayer.playerConnection.networkManager.channel;
final ChannelPipeline pipeline = channel.pipeline();
return this.channelHandlerInstaller.installChannelHandlerInPipeline(pipeline);
}
use of net.minecraft.server.v1_11_R1.EntityPlayer in project FunnyGuilds by FunnyGuilds.
the class V1_9R2PacketAccessor method getOrInstallChannelHandler.
@Override
public FunnyGuildsChannelHandler getOrInstallChannelHandler(Player player) {
final EntityPlayer entityPlayer = ((CraftPlayer) player).getHandle();
final Channel channel = entityPlayer.playerConnection.networkManager.channel;
final ChannelPipeline pipeline = channel.pipeline();
return this.channelHandlerInstaller.installChannelHandlerInPipeline(pipeline);
}
use of net.minecraft.server.v1_11_R1.EntityPlayer in project Arcade2 by ShootGame.
the class GamePlayer method getAttribute.
@Override
public Attribute getAttribute(AttributeKey key) {
EntityPlayer mojang = this.getMojang();
if (this.attributeMap == null) {
try {
Field mojangMap = EntityLiving.class.getDeclaredField("attributeMap");
mojangMap.setAccessible(true);
this.attributeMap = new TrackingAttributeMap((AttributeMapBase) mojangMap.get(mojang));
} catch (ReflectiveOperationException ex) {
this.game.getPlugin().getLogger().log(Level.SEVERE, "Could not inject attribute map", ex);
return null;
}
}
return this.attributeMap.getAttribute(key);
}
use of net.minecraft.server.v1_11_R1.EntityPlayer in project Citizens2 by CitizensDev.
the class NMSImpl method sendTabListRemove.
@Override
public void sendTabListRemove(Player recipient, Collection<? extends SkinnableEntity> skinnableNPCs) {
Preconditions.checkNotNull(recipient);
Preconditions.checkNotNull(skinnableNPCs);
EntityPlayer[] entities = new EntityPlayer[skinnableNPCs.size()];
int i = 0;
for (SkinnableEntity skinnable : skinnableNPCs) {
entities[i] = (EntityPlayer) skinnable;
i++;
}
NMSImpl.sendPacket(recipient, new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.REMOVE_PLAYER, entities));
}
Aggregations