Record Class SplineFloatGoalConfig

java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.SplineFloatGoalConfig
Record Components:
waypointCount - Number of waypoints to generate
splineSegments - Interpolation points between waypoints
searchRadiusHorizontal - Horizontal search range
searchRadiusVertical - Vertical search range
minWaypointDistance - Minimum distance between waypoints
arrivalThreshold - Distance to consider "arrived" at a point
pathRecalculationInterval - Recalculate path every N ticks
maxYLevelAboveWorld - Maximum height above world surface for pathfinding
averageHeightAboveGround - Average height above ground where pathfinding occurs (0 = at ground level)
requiredBiome - The biome the mob must stay in (if naturally spawned), or null for no constraint
requiredDimension - The dimension where biome constraint applies, or null for no constraint

public record SplineFloatGoalConfig(int waypointCount, int splineSegments, int searchRadiusHorizontal, int searchRadiusVertical, int minWaypointDistance, double arrivalThreshold, int pathRecalculationInterval, int maxYLevelAboveWorld, int averageHeightAboveGround, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> requiredBiome, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> requiredDimension) extends Record
Configuration record for SplineFloatGoal parameters.
  • Constructor Details

    • SplineFloatGoalConfig

      public SplineFloatGoalConfig(int waypointCount, int splineSegments, int searchRadiusHorizontal, int searchRadiusVertical, int minWaypointDistance, double arrivalThreshold, int pathRecalculationInterval, int maxYLevelAboveWorld, int averageHeightAboveGround, @Nullable @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> requiredBiome, @Nullable @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> requiredDimension)
      Creates an instance of a SplineFloatGoalConfig record class.
      Parameters:
      waypointCount - the value for the waypointCount record component
      splineSegments - the value for the splineSegments record component
      searchRadiusHorizontal - the value for the searchRadiusHorizontal record component
      searchRadiusVertical - the value for the searchRadiusVertical record component
      minWaypointDistance - the value for the minWaypointDistance record component
      arrivalThreshold - the value for the arrivalThreshold record component
      pathRecalculationInterval - the value for the pathRecalculationInterval record component
      maxYLevelAboveWorld - the value for the maxYLevelAboveWorld record component
      averageHeightAboveGround - the value for the averageHeightAboveGround record component
      requiredBiome - the value for the requiredBiome record component
      requiredDimension - the value for the requiredDimension record component
  • Method Details

    • wisp

      public static SplineFloatGoalConfig wisp()
    • evilEye

      public static SplineFloatGoalConfig evilEye(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • waypointCount

      public int waypointCount()
      Returns the value of the waypointCount record component.
      Returns:
      the value of the waypointCount record component
    • splineSegments

      public int splineSegments()
      Returns the value of the splineSegments record component.
      Returns:
      the value of the splineSegments record component
    • searchRadiusHorizontal

      public int searchRadiusHorizontal()
      Returns the value of the searchRadiusHorizontal record component.
      Returns:
      the value of the searchRadiusHorizontal record component
    • searchRadiusVertical

      public int searchRadiusVertical()
      Returns the value of the searchRadiusVertical record component.
      Returns:
      the value of the searchRadiusVertical record component
    • minWaypointDistance

      public int minWaypointDistance()
      Returns the value of the minWaypointDistance record component.
      Returns:
      the value of the minWaypointDistance record component
    • arrivalThreshold

      public double arrivalThreshold()
      Returns the value of the arrivalThreshold record component.
      Returns:
      the value of the arrivalThreshold record component
    • pathRecalculationInterval

      public int pathRecalculationInterval()
      Returns the value of the pathRecalculationInterval record component.
      Returns:
      the value of the pathRecalculationInterval record component
    • maxYLevelAboveWorld

      public int maxYLevelAboveWorld()
      Returns the value of the maxYLevelAboveWorld record component.
      Returns:
      the value of the maxYLevelAboveWorld record component
    • averageHeightAboveGround

      public int averageHeightAboveGround()
      Returns the value of the averageHeightAboveGround record component.
      Returns:
      the value of the averageHeightAboveGround record component
    • requiredBiome

      @Nullable public @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> requiredBiome()
      Returns the value of the requiredBiome record component.
      Returns:
      the value of the requiredBiome record component
    • requiredDimension

      @Nullable public @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> requiredDimension()
      Returns the value of the requiredDimension record component.
      Returns:
      the value of the requiredDimension record component