コード例 #1
0
 @Override
 public boolean isAnalogousTo(ConfigFunction<BiomeConfig> other) {
   if (getClass() == other.getClass()) {
     try {
       CustomStructureGen otherO = (CustomStructureGen) other;
       return otherO.objectNames.size() == this.objectNames.size()
           && otherO.objectNames.containsAll(this.objectNames);
     } catch (Exception ex) {
       TerrainControl.log(LogMarker.WARN, ex.getMessage());
     }
   }
   return false;
 }
コード例 #2
0
 @Override
 public boolean isAnalogousTo(ConfigFunction<BiomeConfig> other) {
   return getClass() == other.getClass();
 }