Class GroupSteeringAccumulator
java.lang.Object
com.hypixel.hytale.server.npc.movement.GroupSteeringAccumulator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate Vector3dprivate intprivate doubleprivate doubleprivate final Vector3dprivate final Vector3dprivate final Vector3dprivate final Vector3dprivate static final ComponentType<EntityStore, TransformComponent> private doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin(double x, double y, double z, double xViewDirection, double yViewDirection, double zViewDirection) voidbegin(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidend()intgetCount()voidprocessEntity(Ref<EntityStore> ref, double distanceWeight, double positionWeight, double velocityWeight, ComponentAccessor<EntityStore> componentAccessor) voidprocessEntity(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidsetComponentSelector(Vector3d componentSelector) voidsetMaxRange(double maxRange) voidsetViewConeHalfAngleCosine(float collisionViewHalfAngleCosine)
-
Field Details
-
TRANSFORM_COMPONENT_TYPE
@Nonnull private static final ComponentType<EntityStore,TransformComponent> TRANSFORM_COMPONENT_TYPE -
sumOfVelocities
-
sumOfDistances
-
sumOfPositions
-
temp
-
count
private int count -
x
private double x -
y
private double y -
z
private double z -
xViewDirection
private double xViewDirection -
yViewDirection
private double yViewDirection -
zViewDirection
private double zViewDirection -
componentSelector
-
maxRangeSquared
private double maxRangeSquared -
maxDistance
private double maxDistance -
collisionViewHalfAngleCosine
private float collisionViewHalfAngleCosine
-
-
Constructor Details
-
GroupSteeringAccumulator
public GroupSteeringAccumulator()
-
-
Method Details
-
begin
public void begin(double x, double y, double z, double xViewDirection, double yViewDirection, double zViewDirection) -
begin
public void begin(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
processEntity
public void processEntity(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
processEntity
public void processEntity(@Nonnull Ref<EntityStore> ref, double distanceWeight, double positionWeight, double velocityWeight, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
end
public void end() -
setComponentSelector
-
setMaxRange
public void setMaxRange(double maxRange) -
setViewConeHalfAngleCosine
public void setViewConeHalfAngleCosine(float collisionViewHalfAngleCosine) -
getSumOfVelocities
-
getSumOfDistances
-
getSumOfPositions
-
getCount
public int getCount()
-