TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ValidateType()

override void Terraria.ModLoader.InfoDisplay.ValidateType ( )
inlineprotectedvirtualinherited

Check for the correct overrides of different hook methods and fields and properties.

Reimplemented from Terraria.ModLoader.ModType< TEntity, TModType >.

Definition at line 141 of file InfoDisplay.cs.

142 {
143 base.ValidateType();
144 Type t = GetType();
146 {
147 throw new Exception($"{t} must override {"DisplayValue"}.");
148 }
149 }
static bool HasOverride(Type t, MethodInfo baseMethod)
static readonly MethodInfo displayValueMethodOld
static readonly MethodInfo displayValueMethodNew
virtual string DisplayValue(ref Color displayColor)

References Terraria.ModLoader.InfoDisplay.DisplayValue(), Terraria.ModLoader.InfoDisplay.displayValueMethodNew, Terraria.ModLoader.InfoDisplay.displayValueMethodOld, and Terraria.ModLoader.Core.LoaderUtils.HasOverride().

+ Here is the call graph for this function: