コード例 #1
0
 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());
 }
コード例 #2
0
 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;
 }
コード例 #3
0
  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;
  }