Record Class SplineFloatGoalConfig
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.SplineFloatGoalConfig
- Record Components:
waypointCount- Number of waypoints to generatesplineSegments- Interpolation points between waypointssearchRadiusHorizontal- Horizontal search rangesearchRadiusVertical- Vertical search rangeminWaypointDistance- Minimum distance between waypointsarrivalThreshold- Distance to consider "arrived" at a pointpathRecalculationInterval- Recalculate path every N ticksmaxYLevelAboveWorld- Maximum height above world surface for pathfindingaverageHeightAboveGround- 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 constraintrequiredDimension- 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 Summary
ConstructorsConstructorDescriptionSplineFloatGoalConfig(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) Creates an instance of aSplineFloatGoalConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thearrivalThresholdrecord component.intReturns the value of theaverageHeightAboveGroundrecord component.final booleanIndicates whether some other object is "equal to" this one.static SplineFloatGoalConfigevilEye(net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) final inthashCode()Returns a hash code value for this object.intReturns the value of themaxYLevelAboveWorldrecord component.intReturns the value of theminWaypointDistancerecord component.intReturns the value of thepathRecalculationIntervalrecord component.@Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> Returns the value of therequiredBiomerecord component.@Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> Returns the value of therequiredDimensionrecord component.intReturns the value of thesearchRadiusHorizontalrecord component.intReturns the value of thesearchRadiusVerticalrecord component.intReturns the value of thesplineSegmentsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thewaypointCountrecord component.static SplineFloatGoalConfigwisp()
-
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 aSplineFloatGoalConfigrecord class.- Parameters:
waypointCount- the value for thewaypointCountrecord componentsplineSegments- the value for thesplineSegmentsrecord componentsearchRadiusHorizontal- the value for thesearchRadiusHorizontalrecord componentsearchRadiusVertical- the value for thesearchRadiusVerticalrecord componentminWaypointDistance- the value for theminWaypointDistancerecord componentarrivalThreshold- the value for thearrivalThresholdrecord componentpathRecalculationInterval- the value for thepathRecalculationIntervalrecord componentmaxYLevelAboveWorld- the value for themaxYLevelAboveWorldrecord componentaverageHeightAboveGround- the value for theaverageHeightAboveGroundrecord componentrequiredBiome- the value for therequiredBiomerecord componentrequiredDimension- the value for therequiredDimensionrecord component
-
-
Method Details
-
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
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
waypointCount
public int waypointCount()Returns the value of thewaypointCountrecord component.- Returns:
- the value of the
waypointCountrecord component
-
splineSegments
public int splineSegments()Returns the value of thesplineSegmentsrecord component.- Returns:
- the value of the
splineSegmentsrecord component
-
searchRadiusHorizontal
public int searchRadiusHorizontal()Returns the value of thesearchRadiusHorizontalrecord component.- Returns:
- the value of the
searchRadiusHorizontalrecord component
-
searchRadiusVertical
public int searchRadiusVertical()Returns the value of thesearchRadiusVerticalrecord component.- Returns:
- the value of the
searchRadiusVerticalrecord component
-
minWaypointDistance
public int minWaypointDistance()Returns the value of theminWaypointDistancerecord component.- Returns:
- the value of the
minWaypointDistancerecord component
-
arrivalThreshold
public double arrivalThreshold()Returns the value of thearrivalThresholdrecord component.- Returns:
- the value of the
arrivalThresholdrecord component
-
pathRecalculationInterval
public int pathRecalculationInterval()Returns the value of thepathRecalculationIntervalrecord component.- Returns:
- the value of the
pathRecalculationIntervalrecord component
-
maxYLevelAboveWorld
public int maxYLevelAboveWorld()Returns the value of themaxYLevelAboveWorldrecord component.- Returns:
- the value of the
maxYLevelAboveWorldrecord component
-
averageHeightAboveGround
public int averageHeightAboveGround()Returns the value of theaverageHeightAboveGroundrecord component.- Returns:
- the value of the
averageHeightAboveGroundrecord component
-
requiredBiome
@Nullable public @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> requiredBiome()Returns the value of therequiredBiomerecord component.- Returns:
- the value of the
requiredBiomerecord component
-
requiredDimension
@Nullable public @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> requiredDimension()Returns the value of therequiredDimensionrecord component.- Returns:
- the value of the
requiredDimensionrecord component
-