Search in sources :

Example 1 with IWorldReader

use of net.minecraft.server.v1_14_R1.IWorldReader in project Citizens2 by CitizensDev.

the class PlayerPathfinder method a.

public PathEntity a(IWorldReader var0, EntityHumanNPC var1, Set<BlockPosition> var2, float var3, int var4) {
    this.a.a();
    this.e.a(var0, var1);
    PathPoint var5 = this.e.b();
    Map var6 = var2.stream().collect(Collectors.toMap((var0x) -> {
        return this.e.a((double) var0x.getX(), (double) var0x.getY(), (double) var0x.getZ());
    }, Function.identity()));
    PathEntity var7 = this.a(var5, var6, var3, var4);
    this.e.a();
    return var7;
}
Also used : PathEntity(net.minecraft.server.v1_14_R1.PathEntity) BlockPosition(net.minecraft.server.v1_14_R1.BlockPosition) Iterator(java.util.Iterator) Path(net.minecraft.server.v1_14_R1.Path) Pathfinder(net.minecraft.server.v1_14_R1.Pathfinder) Set(java.util.Set) Setting(net.citizensnpcs.Settings.Setting) Function(java.util.function.Function) Collectors(java.util.stream.Collectors) Sets(com.google.common.collect.Sets) EntityHumanNPC(net.citizensnpcs.nms.v1_14_R1.entity.EntityHumanNPC) List(java.util.List) Stream(java.util.stream.Stream) Lists(com.google.common.collect.Lists) PathDestination(net.minecraft.server.v1_14_R1.PathDestination) Map(java.util.Map) Optional(java.util.Optional) EntityInsentient(net.minecraft.server.v1_14_R1.EntityInsentient) Comparator(java.util.Comparator) IWorldReader(net.minecraft.server.v1_14_R1.IWorldReader) PathPoint(net.minecraft.server.v1_14_R1.PathPoint) PathPoint(net.minecraft.server.v1_14_R1.PathPoint) PathEntity(net.minecraft.server.v1_14_R1.PathEntity) Map(java.util.Map)

Example 2 with IWorldReader

use of net.minecraft.server.v1_14_R1.IWorldReader in project Citizens2 by CitizensDev.

the class PlayerPathfinder method a.

@Override
public PathEntity a(IWorldReader var0, EntityInsentient var1, Set<BlockPosition> var2, float var3, int var4) {
    this.a.a();
    this.e.a(var0, var1);
    PathPoint var5 = this.e.b();
    Map var6 = var2.stream().collect(Collectors.toMap((var0x) -> {
        return this.e.a((double) var0x.getX(), (double) var0x.getY(), (double) var0x.getZ());
    }, Function.identity()));
    PathEntity var7 = this.a(var5, var6, var3, var4);
    this.e.a();
    return var7;
}
Also used : PathEntity(net.minecraft.server.v1_14_R1.PathEntity) BlockPosition(net.minecraft.server.v1_14_R1.BlockPosition) Iterator(java.util.Iterator) Path(net.minecraft.server.v1_14_R1.Path) Pathfinder(net.minecraft.server.v1_14_R1.Pathfinder) Set(java.util.Set) Setting(net.citizensnpcs.Settings.Setting) Function(java.util.function.Function) Collectors(java.util.stream.Collectors) Sets(com.google.common.collect.Sets) EntityHumanNPC(net.citizensnpcs.nms.v1_14_R1.entity.EntityHumanNPC) List(java.util.List) Stream(java.util.stream.Stream) Lists(com.google.common.collect.Lists) PathDestination(net.minecraft.server.v1_14_R1.PathDestination) Map(java.util.Map) Optional(java.util.Optional) EntityInsentient(net.minecraft.server.v1_14_R1.EntityInsentient) Comparator(java.util.Comparator) IWorldReader(net.minecraft.server.v1_14_R1.IWorldReader) PathPoint(net.minecraft.server.v1_14_R1.PathPoint) PathPoint(net.minecraft.server.v1_14_R1.PathPoint) PathEntity(net.minecraft.server.v1_14_R1.PathEntity) Map(java.util.Map)

Aggregations

Lists (com.google.common.collect.Lists)2 Sets (com.google.common.collect.Sets)2 Comparator (java.util.Comparator)2 Iterator (java.util.Iterator)2 List (java.util.List)2 Map (java.util.Map)2 Optional (java.util.Optional)2 Set (java.util.Set)2 Function (java.util.function.Function)2 Collectors (java.util.stream.Collectors)2 Stream (java.util.stream.Stream)2 Setting (net.citizensnpcs.Settings.Setting)2 EntityHumanNPC (net.citizensnpcs.nms.v1_14_R1.entity.EntityHumanNPC)2 BlockPosition (net.minecraft.server.v1_14_R1.BlockPosition)2 EntityInsentient (net.minecraft.server.v1_14_R1.EntityInsentient)2 IWorldReader (net.minecraft.server.v1_14_R1.IWorldReader)2 Path (net.minecraft.server.v1_14_R1.Path)2 PathDestination (net.minecraft.server.v1_14_R1.PathDestination)2 PathEntity (net.minecraft.server.v1_14_R1.PathEntity)2 PathPoint (net.minecraft.server.v1_14_R1.PathPoint)2