tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.Utils Member List

This is the complete list of members for Terraria.Utils, including all inherited members.

AngleFrom(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils)Terraria.Utilsstatic
AngleLerp(this float curAngle, float targetAngle, float amount) (defined in Terraria.Utils)Terraria.Utilsstatic
AngleTo(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils)Terraria.Utilsstatic
AngleTowards(this float curAngle, float targetAngle, float maxChange) (defined in Terraria.Utils)Terraria.Utilsstatic
Between(this Vector2 vec, Vector2 minimum, Vector2 maximum) (defined in Terraria.Utils)Terraria.Utilsstatic
Bottom(this Rectangle r) (defined in Terraria.Utils)Terraria.Utilsstatic
BottomLeft(this Rectangle r) (defined in Terraria.Utils)Terraria.Utilsstatic
BottomRight(this Rectangle r) (defined in Terraria.Utils)Terraria.Utilsstatic
Center(this Rectangle r) (defined in Terraria.Utils)Terraria.Utilsstatic
CenteredRectangle(Vector2 center, Vector2 size) (defined in Terraria.Utils)Terraria.Utilsstatic
charLengths (defined in Terraria.Utils)Terraria.Utilsstatic
Clamp< T >(T value, T min, T max) (defined in Terraria.Utils)Terraria.Utilsstatic
ClampWithinWorld(ref int minX, ref int minY, ref int maxX, ref int maxY, bool lastValuesInclusiveToIteration=false, int fluffX=0, int fluffY=0) (defined in Terraria.Utils)Terraria.Utilsstatic
ClosestPointInRect(this Rectangle r, Vector2 point) (defined in Terraria.Utils)Terraria.Utilsstatic
ClosestPointOnLine(this Vector2 P, Vector2 A, Vector2 B) (defined in Terraria.Utils)Terraria.Utilsstatic
CoinsCombineStacks(out bool overFlowing, params long[] coinCounts) (defined in Terraria.Utils)Terraria.Utilsstatic
CoinsCount(out bool overFlowing, Item[] inv, params int[] ignoreSlots) (defined in Terraria.Utils)Terraria.Utilsstatic
CoinsSplit(long count) (defined in Terraria.Utils)Terraria.Utilsstatic
ColorLerp_BlackToWhite(float percent) (defined in Terraria.Utils)Terraria.Utilsstatic
ColorLerpMethod(float percent) (defined in Terraria.Utils)Terraria.Utils
ConvertMonoArgsToDotNet(string[] brokenArgs) (defined in Terraria.Utils)Terraria.Utilsstatic
deepCompare(this int[] firstArray, int[] secondArray) (defined in Terraria.Utils)Terraria.Utilsstatic
DirectionFrom(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils)Terraria.Utilsstatic
DirectionTo(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils)Terraria.Utilsstatic
Distance(this Rectangle r, Vector2 point) (defined in Terraria.Utils)Terraria.Utilsstatic
Distance(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils)Terraria.Utilsstatic
DistanceSQ(this Vector2 Origin, Vector2 Target) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawBorderString(SpriteBatch sb, string text, Vector2 pos, Color color, float scale=1f, float anchorx=0f, float anchory=0f, int maxCharactersDisplayed=-1) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawBorderStringBig(SpriteBatch spriteBatch, string text, Vector2 pos, Color color, float scale=1f, float anchorx=0f, float anchory=0f, int maxCharactersDisplayed=-1) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawBorderStringFourWay(SpriteBatch sb, DynamicSpriteFont font, string text, float x, float y, Color textColor, Color borderColor, Vector2 origin, float scale=1f) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawCursorSingle(SpriteBatch sb, Color color, float rot=float.NaN, float scale=1f, Vector2 manualPosition=default(Vector2), int cursorSlot=0, int specialMode=0) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawInvBG(SpriteBatch sb, Rectangle R, Color c=default(Color)) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawInvBG(SpriteBatch sb, float x, float y, float w, float h, Color c=default(Color)) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawInvBG(SpriteBatch sb, int x, int y, int w, int h, Color c=default(Color)) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawLaser(SpriteBatch sb, Texture2D tex, Vector2 start, Vector2 end, Vector2 scale, LaserLineFraming framing) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawLine(SpriteBatch spriteBatch, Point start, Point end, Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawLine(SpriteBatch spriteBatch, Vector2 start, Vector2 end, Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawLine(SpriteBatch spriteBatch, Vector2 start, Vector2 end, Color colorStart, Color colorEnd, float width) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawPanel(Texture2D texture, int edgeWidth, int edgeShove, SpriteBatch spriteBatch, Vector2 position, float width, Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawRect(SpriteBatch spriteBatch, Rectangle rect, Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawRect(SpriteBatch spriteBatch, Vector2 start, Vector2 end, Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawRect(SpriteBatch spriteBatch, Vector2 topLeft, Vector2 topRight, Vector2 bottomRight, Vector2 bottomLeft, Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawRectangle(SpriteBatch sb, Vector2 start, Vector2 end, Color colorStart, Color colorEnd, float width) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawRectForTilesInWorld(SpriteBatch spriteBatch, Rectangle rect, Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawRectForTilesInWorld(SpriteBatch spriteBatch, Point start, Point end, Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawSettings2Panel(SpriteBatch spriteBatch, Vector2 position, float width, Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawSettingsPanel(SpriteBatch spriteBatch, Vector2 position, float width, Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
DrawSplicedPanel(SpriteBatch sb, Texture2D texture, int x, int y, int w, int h, int leftEnd, int rightEnd, int topEnd, int bottomEnd, Color c) (defined in Terraria.Utils)Terraria.Utilsstatic
FloatIntersect(float r1StartX, float r1StartY, float r1Width, float r1Height, float r2StartX, float r2StartY, float r2Width, float r2Height) (defined in Terraria.Utils)Terraria.Utilsstatic
Floor(this Vector2 vec) (defined in Terraria.Utils)Terraria.Utilsstatic
FormatWith(string original, object obj) (defined in Terraria.Utils)Terraria.Utilsstatic
Frame(this Asset< Texture2D > tex, int horizontalFrames=1, int verticalFrames=1, int frameX=0, int frameY=0, int sizeOffsetX=0, int sizeOffsetY=0) (defined in Terraria.Utils)Terraria.Utilsstatic
Frame(this Texture2D tex, int horizontalFrames=1, int verticalFrames=1, int frameX=0, int frameY=0, int sizeOffsetX=0, int sizeOffsetY=0) (defined in Terraria.Utils)Terraria.Utilsstatic
GetDayTimeAs24FloatStartingFromMidnight() (defined in Terraria.Utils)Terraria.Utilsstatic
GetDayTimeAsDirectionIn24HClock() (defined in Terraria.Utils)Terraria.Utilsstatic
GetDayTimeAsDirectionIn24HClock(float timeFrom0To24) (defined in Terraria.Utils)Terraria.Utilsstatic
GetLerpValue(float from, float to, float t, bool clamped=false) (defined in Terraria.Utils)Terraria.Utilsstatic
GetLerpValue(double from, double to, double t, bool clamped=false) (defined in Terraria.Utils)Terraria.Utilsstatic
GetTrueIndexes(this bool[] array) (defined in Terraria.Utils)Terraria.Utilsstatic
GetTrueIndexes(params bool[][] arrays) (defined in Terraria.Utils)Terraria.Utilsstatic
HasNaNs(this Vector2 vec) (defined in Terraria.Utils)Terraria.Utilsstatic
Height(this Asset< Texture2D > asset) (defined in Terraria.Utils)Terraria.Utilsstatic
Hex3(this Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
Hex4(this Color color) (defined in Terraria.Utils)Terraria.Utilsstatic
IndexInRange< T >(this T[] t, int index) (defined in Terraria.Utils)Terraria.Utilsstatic
IndexInRange< T >(this List< T > t, int index) (defined in Terraria.Utils)Terraria.Utilsstatic
IsPowerOfTwo(int x) (defined in Terraria.Utils)Terraria.Utilsstatic
LaserLineFraming(int stage, Vector2 currentPosition, float distanceLeft, Rectangle lastFrame, out float distanceCovered, out Rectangle frame, out Vector2 origin, out Color color) (defined in Terraria.Utils)Terraria.Utils
Left(this Rectangle r) (defined in Terraria.Utils)Terraria.Utilsstatic
LogAndConsoleErrorMessage(string message) (defined in Terraria.Utils)Terraria.Utilsstatic
LogAndConsoleInfoMessage(string message) (defined in Terraria.Utils)Terraria.Utilsstatic
MajorMinor(this Version v) (defined in Terraria.Utils)Terraria.Utilsstatic
MajorMinorBuild(this Version v) (defined in Terraria.Utils)Terraria.Utilsstatic
Max< T >(params T[] args) (defined in Terraria.Utils)Terraria.Utilsstatic
MaxCoins (defined in Terraria.Utils)Terraria.Utilsstatic
Modified(this Rectangle r, int x, int y, int w, int h) (defined in Terraria.Utils)Terraria.Utilsstatic
ModulusPositive(this int myInteger, int modulusNumber) (defined in Terraria.Utils)Terraria.Utilsstatic
MoveTowards(this Vector2 currentPosition, Vector2 targetPosition, float maxAmountAllowedToMove) (defined in Terraria.Utils)Terraria.Utilsstatic
MultiLerp(float percent, params float[] floats) (defined in Terraria.Utils)Terraria.Utilsstatic
MultiplyRGB(this Color firstColor, Color secondColor) (defined in Terraria.Utils)Terraria.Utilsstatic
MultiplyRGBA(this Color firstColor, Color secondColor) (defined in Terraria.Utils)Terraria.Utilsstatic
Next(this UnifiedRandom random, IntRange range) (defined in Terraria.Utils)Terraria.Utilsstatic
Next< T >(this UnifiedRandom r, T[] array)Terraria.Utilsstatic
Next< T >(this UnifiedRandom r, IList< T > list)Terraria.Utilsstatic
NextBool(this UnifiedRandom r)Terraria.Utilsstatic
NextBool(this UnifiedRandom r, int consequent)Terraria.Utilsstatic
NextBool(this UnifiedRandom r, int antecedent, int consequent)Terraria.Utilsstatic
NextEnum< T >(this T src) (defined in Terraria.Utils)Terraria.Utilsstatic
NextFloat(this UnifiedRandom r)Terraria.Utilsstatic
NextFloat(this UnifiedRandom random, FloatRange range) (defined in Terraria.Utils)Terraria.Utilsstatic
NextFloat(this UnifiedRandom r, float maxValue)Terraria.Utilsstatic
NextFloat(this UnifiedRandom r, float minValue, float maxValue)Terraria.Utilsstatic
NextFloatDirection(this UnifiedRandom r) (defined in Terraria.Utils)Terraria.Utilsstatic
NextFromCollection< T >(this UnifiedRandom random, List< T > objs) (defined in Terraria.Utils)Terraria.Utilsstatic
NextFromList< T >(this UnifiedRandom random, params T[] objs) (defined in Terraria.Utils)Terraria.Utilsstatic
NextVector2Circular(this UnifiedRandom r, float circleHalfWidth, float circleHalfHeight) (defined in Terraria.Utils)Terraria.Utilsstatic
NextVector2CircularEdge(this UnifiedRandom r, float circleHalfWidth, float circleHalfHeight) (defined in Terraria.Utils)Terraria.Utilsstatic
NextVector2FromRectangle(this UnifiedRandom r, Rectangle rect) (defined in Terraria.Utils)Terraria.Utilsstatic
NextVector2Square(this UnifiedRandom r, float min, float max) (defined in Terraria.Utils)Terraria.Utilsstatic
NextVector2Unit(this UnifiedRandom r, float startRotation=0f, float rotationRange=(float) Math.PI *2f) (defined in Terraria.Utils)Terraria.Utilsstatic
OffsetSize(this Rectangle rect, int xSize, int ySize) (defined in Terraria.Utils)Terraria.Utilsstatic
OpenFolder(string folderPath) (defined in Terraria.Utils)Terraria.Utilsstatic
OpenToURL(string url) (defined in Terraria.Utils)Terraria.Utilsstatic
OriginFlip(this Rectangle rect, Vector2 origin, SpriteEffects effects) (defined in Terraria.Utils)Terraria.Utilsstatic
ParseArguements(string[] args) (defined in Terraria.Utils)Terraria.Utilsstatic
PingPongFrom01To010(float value) (defined in Terraria.Utils)Terraria.Utilsstatic
PlotLine(Point16 p0, Point16 p1, TileActionAttempt plot, bool jump=true) (defined in Terraria.Utils)Terraria.Utilsstatic
PlotLine(Point p0, Point p1, TileActionAttempt plot, bool jump=true) (defined in Terraria.Utils)Terraria.Utilsstatic
PlotTileArea(int x, int y, TileActionAttempt plot) (defined in Terraria.Utils)Terraria.Utilsstatic
PlotTileLine(Vector2 start, Vector2 end, float width, TileActionAttempt plot) (defined in Terraria.Utils)Terraria.Utilsstatic
PlotTileTale(Vector2 start, Vector2 end, float width, TileActionAttempt plot) (defined in Terraria.Utils)Terraria.Utilsstatic
PoofOfSmoke(Vector2 position) (defined in Terraria.Utils)Terraria.Utilsstatic
PressingControl(this KeyboardState kb) (defined in Terraria.Utils)Terraria.Utilsstatic
PressingShift(this KeyboardState kb) (defined in Terraria.Utils)Terraria.Utilsstatic
PrettifyPercentDisplay(float percent, string originalFormat) (defined in Terraria.Utils)Terraria.Utilsstatic
PreviousEnum< T >(this T src) (defined in Terraria.Utils)Terraria.Utilsstatic
RandomConsecutive(double random, int odds) (defined in Terraria.Utils)Terraria.Utilsstatic
RandomFloat(ref ulong seed) (defined in Terraria.Utils)Terraria.Utilsstatic
RandomInt(ref ulong seed, int max) (defined in Terraria.Utils)Terraria.Utilsstatic
RandomInt(ref ulong seed, int min, int max) (defined in Terraria.Utils)Terraria.Utilsstatic
RandomNext(ref ulong seed, int bits) (defined in Terraria.Utils)Terraria.Utilsstatic
RandomNextSeed(ulong seed) (defined in Terraria.Utils)Terraria.Utilsstatic
RandomVector2(UnifiedRandom random, float min, float max) (defined in Terraria.Utils)Terraria.Utilsstatic
ReadEmbeddedResource(string path) (defined in Terraria.Utils)Terraria.Utilsstatic
ReadPackedVector2(this BinaryReader bb) (defined in Terraria.Utils)Terraria.Utilsstatic
ReadRGB(this BinaryReader bb) (defined in Terraria.Utils)Terraria.Utilsstatic
ReadVector2(this BinaryReader bb) (defined in Terraria.Utils)Terraria.Utilsstatic
ReceiveBitArray(int BitArrLength, BinaryReader reader)Terraria.Utilsstatic
RectangleLineCollision(Vector2 rectTopLeft, Vector2 rectBottomRight, Vector2 lineStart, Vector2 lineEnd) (defined in Terraria.Utils)Terraria.Utilsstatic
Remap(float fromValue, float fromMin, float fromMax, float toMin, float toMax, bool clamped=true) (defined in Terraria.Utils)Terraria.Utilsstatic
Repeat(int value, int length) (defined in Terraria.Utils)Terraria.Utilsstatic
Right(this Rectangle r) (defined in Terraria.Utils)Terraria.Utilsstatic
RotatedBy(this Vector2 spinningpoint, double radians, Vector2 center=default(Vector2)) (defined in Terraria.Utils)Terraria.Utilsstatic
RotatedByRandom(this Vector2 spinninpoint, double maxRadians) (defined in Terraria.Utils)Terraria.Utilsstatic
RotateRandom(this Vector2 spinninpoint, double maxRadians) (defined in Terraria.Utils)Terraria.Utilsstatic
rotateTowards(Vector2 currentPosition, Vector2 currentVelocity, Vector2 targetPosition, float maxChange) (defined in Terraria.Utils)Terraria.Utilsstatic
Round(Vector2 input) (defined in Terraria.Utils)Terraria.Utilsstatic
SafeNormalize(this Vector2 v, Vector2 defaultValue) (defined in Terraria.Utils)Terraria.Utilsstatic
SelectRandom< T >(UnifiedRandom random, params T[] choices) (defined in Terraria.Utils)Terraria.Utilsstatic
SendBitArray(BitArray arr, BinaryWriter writer)Terraria.Utilsstatic
ShowFancyErrorMessage(string message, int returnToMenu) (defined in Terraria.Utils)Terraria.Utilsstatic
Size(this Asset< Texture2D > tex) (defined in Terraria.Utils)Terraria.Utilsstatic
Size(this Texture2D tex) (defined in Terraria.Utils)Terraria.Utilsstatic
Size(this Rectangle r) (defined in Terraria.Utils)Terraria.Utilsstatic
SmoothStep(float min, float max, float x) (defined in Terraria.Utils)Terraria.Utilsstatic
Swap< T >(ref T t1, ref T t2) (defined in Terraria.Utils)Terraria.Utilsstatic
TileActionAttempt(int x, int y) (defined in Terraria.Utils)Terraria.Utils
ToByteArray(this string str) (defined in Terraria.Utils)Terraria.Utilsstatic
ToDirectionInt(this bool value) (defined in Terraria.Utils)Terraria.Utilsstatic
ToInt(this bool value) (defined in Terraria.Utils)Terraria.Utilsstatic
Top(this Rectangle r) (defined in Terraria.Utils)Terraria.Utilsstatic
TopLeft(this Rectangle r) (defined in Terraria.Utils)Terraria.Utilsstatic
ToPoint(this Vector2 v) (defined in Terraria.Utils)Terraria.Utilsstatic
ToPoint(this Point16 p) (defined in Terraria.Utils)Terraria.Utilsstatic
ToPoint16(this Vector2 v) (defined in Terraria.Utils)Terraria.Utilsstatic
TopRight(this Rectangle r) (defined in Terraria.Utils)Terraria.Utilsstatic
ToRotation(this Vector2 v) (defined in Terraria.Utils)Terraria.Utilsstatic
ToRotationVector2(this float f) (defined in Terraria.Utils)Terraria.Utilsstatic
ToScreenPosition(this Vector2 worldPosition) (defined in Terraria.Utils)Terraria.Utilsstatic
ToTileCoordinates(this Vector2 vec) (defined in Terraria.Utils)Terraria.Utilsstatic
ToTileCoordinates16(this Vector2 vec) (defined in Terraria.Utils)Terraria.Utilsstatic
ToVector2(this Point p) (defined in Terraria.Utils)Terraria.Utilsstatic
ToVector2(this Point16 p) (defined in Terraria.Utils)Terraria.Utilsstatic
ToWorldCoordinates(this Point p, float autoAddX=8f, float autoAddY=8f) (defined in Terraria.Utils)Terraria.Utilsstatic
ToWorldCoordinates(this Point16 p, float autoAddX=8f, float autoAddY=8f) (defined in Terraria.Utils)Terraria.Utilsstatic
ToWorldCoordinates(this Point p, Vector2 autoAddXY) (defined in Terraria.Utils)Terraria.Utilsstatic
ToWorldCoordinates(this Point16 p, Vector2 autoAddXY) (defined in Terraria.Utils)Terraria.Utilsstatic
ToWorldCoordinates(this Vector2 v, float autoAddX=8f, float autoAddY=8f) (defined in Terraria.Utils)Terraria.Utilsstatic
ToWorldCoordinates(this Vector2 v, Vector2 autoAddXY) (defined in Terraria.Utils)Terraria.Utilsstatic
TrimTextIfNeeded(ref string text, DynamicSpriteFont font, float scale, float maxWidth) (defined in Terraria.Utils)Terraria.Utilsstatic
TryCreatingDirectory(string folderPath) (defined in Terraria.Utils)Terraria.Utilsstatic
Turn01ToCyclic010(float value) (defined in Terraria.Utils)Terraria.Utilsstatic
UnclampedSmoothStep(float min, float max, float x) (defined in Terraria.Utils)Terraria.Utilsstatic
UnixTimeStampToDateTime(long unixTimeStamp) (defined in Terraria.Utils)Terraria.Utilsstatic
Vector2FromElipse(Vector2 angleVector, Vector2 elipseSizes) (defined in Terraria.Utils)Terraria.Utilsstatic
Width(this Asset< Texture2D > asset) (defined in Terraria.Utils)Terraria.Utilsstatic
WithinRange(this Vector2 Origin, Vector2 Target, float MaxRange) (defined in Terraria.Utils)Terraria.Utilsstatic
WordwrapString(string text, DynamicSpriteFont font, int maxWidth, int maxLines, out int lineAmount) (defined in Terraria.Utils)Terraria.Utilsstatic
WordwrapStringSmart(string text, Color c, DynamicSpriteFont font, int maxWidth, int maxLines) (defined in Terraria.Utils)Terraria.Utilsstatic
WrappedLerp(float value1, float value2, float percent) (defined in Terraria.Utils)Terraria.Utilsstatic
WritePackedVector2(this BinaryWriter bb, Vector2 v) (defined in Terraria.Utils)Terraria.Utilsstatic
WriteRGB(this BinaryWriter bb, Color c) (defined in Terraria.Utils)Terraria.Utilsstatic
WriteVector2(this BinaryWriter bb, Vector2 v) (defined in Terraria.Utils)Terraria.Utilsstatic
XY(this Vector4 vec) (defined in Terraria.Utils)Terraria.Utilsstatic
XZW(this Vector4 vec) (defined in Terraria.Utils)Terraria.Utilsstatic
YZW(this Vector4 vec) (defined in Terraria.Utils)Terraria.Utilsstatic
ZW(this Vector4 vec) (defined in Terraria.Utils)Terraria.Utilsstatic