CTMUtils$TileOverrideIterator(Block block, Icon icon) { this.block = block; this.currentIcon = icon; this.blockOverrides = CTMUtils.access$100()[block.blockID]; this.iconOverrides = (ITileOverride[]) CTMUtils.access$200().get(this.currentIcon.getIconName()); }
private void resetForNextPass() { this.blockOverrides = null; this.iconOverrides = (ITileOverride[]) CTMUtils.access$200().get(this.currentIcon.getIconName()); this.blockPos = 0; this.iconPos = 0; this.foundNext = false; }
ITileOverride go() { for (int pass = 0; pass < CTMUtils.access$1000(); ++pass) { ITileOverride override; Icon newIcon; do { if (!this.hasNext()) { return this.lastMatchedOverride; } override = this.next(); newIcon = this.getTile(override, this.block, this.currentIcon); } while (newIcon == null); this.lastMatchedOverride = override; this.skipOverrides.add(override); this.currentIcon = newIcon; this.resetForNextPass(); } return this.lastMatchedOverride; }