public static ModWaterfallStyle GetWaterfallStyle(int style) { if (style < vanillaWaterfallCount || style >= nextWaterfallStyle) { return null; } return waterfallStyles[style - vanillaWaterfallCount]; }
/// <summary> /// Returns the ModWaterfallStyle with the given ID. /// </summary> public static ModWaterfallStyle GetModWaterfallStyle(int style) => WaterfallStyleLoader.GetWaterfallStyle(style);